⚙️ Clash 自动化配置脚本集合 - 一键配置、自动更新、订阅转换
| 功能 | 说明 |
|---|---|
| 🔄 自动更新 | 自动检测并更新订阅 |
| 🎯 一键配置 | 快速配置 Clash 客户端 |
| 🔁 订阅转换 | 格式转换兼容多客户端 |
| ⏰ 定时任务 | 自动定时更新规则 |
| 🛠️ 跨平台 | 支持 Windows / macOS / Linux |
| 脚本 | 功能 | 平台 |
|---|---|---|
| update-sub.sh | 订阅自动更新 | Linux/macOS |
| convert.py | 订阅格式转换 | 通用 |
| �atch-update.sh | 批量更新规则 | Linux/macOS |
`�ash
git clone https://github.com/clashhub-net/clash-scripts.git cd clash-scripts
chmod +x *.sh
./update-sub.sh `
`powershell
.\update-sub.ps1 `
`�ash
./update-sub.sh -u "你的订阅URL" -o "输出文件.yaml" `
`�ash
python convert.py -i input.yaml -o output.yaml
python convert.py -i input.yaml -o surge.conf -t surge `
`�ash
0 3 * * * /path/to/clash-scripts/update-sub.sh -u "你的订阅URL" -o "~/.config/clash/config.yaml" >> /var/log/clash-update.log 2>&1 `
- 打开「任务计划程序」
- 创建基本任务
- 设置触发器和操作
- 指向脚本路径
| 依赖 | 说明 |
|---|---|
| curl | 用于下载订阅 |
| git | 用于克隆仓库 |
| python3 | 用于转换脚本 (可选) |
| 资源 | 链接 |
|---|---|
| ClashHub 论坛 | bbs.clashhub.net |
| ClashVIP 导航 | nav.clashvip.net |
| Clash 下载 | clash-for-windows.net |
| ClashHub 主站 | clashhub.net |
欢迎提交 Issue 和 Pull Request!
MIT License
Made with ❤️ by ClashHub