mirror of
https://github.com/Giveupmoon/OpenClash_Overwrite.git
synced 2026-06-13 07:04:50 +00:00
OpenClash覆写模块相关文件
- Shell 100%
Change the Yaml format to standard block yaml and abandon the yaml format Yaml. 修改yaml格式为标准块状yaml放弃json格式yaml |
||
|---|---|---|
| Backup | ||
| Overwrite | ||
| Yaml | ||
| .gitattributes | ||
| README.md | ||
🌀 OpenClash_Overwrite 覆写模块
💬 欢迎 Issue 提出您的建议和想法!
🧩 适配版本:OpenClash v0.47.006 及以上
🧱 建议新装 OpenClash 用户使用,请勿修改任何 LuCI 设置
📖 目录
📌 使用建议
- 建议切换更新分支为 Dev 并 启用 Smart 内核。
- 分流规则与策略组基于以下项目:
👉 Aethersailor/Custom_OpenClash_Rules
⚡ Smart 配置说明
- 模型类型:
Model-large - 节点选择策略:粘性会话(
sticky-sessions) - 权重加成:
Premium: 0.9SG: 1.3HK: 1.5
- 模型更新策略:每 24 小时 自动更新
💬 Smart 使用建议
- 推荐 Smart 使用 无 LGBM 配置(默认模型)。
- 当收集到足够数据后,自行替换 模型文件,以提升智能分流效果。
- 训练与替换模型无需修改 OpenClash 界面设置,仅需导入模型文件即可。
⚙️ 使用方法
1️⃣ 新增覆写模块
- 文件名:可自定义
- 类型:
http - 订阅链接:根据使用场景选择
🔹 主路由用户 - Url-test
https://raw.githubusercontent.com/Giveupmoon/OpenClash_Overwrite/refs/heads/main/Overwrite/Overwrite.conf
🔹 主路由用户 - Smart-LGBM
https://raw.githubusercontent.com/Giveupmoon/OpenClash_Overwrite/refs/heads/main/Overwrite/Overwrite-smart-LGBM.conf
🔹 主路由用户 - Smart(默认模型 + 数据收集)
https://raw.githubusercontent.com/Giveupmoon/OpenClash_Overwrite/refs/heads/main/Overwrite/Overwrite-smart.conf
🔹 主路由无需 IPv6 用户 - Url-test
https://raw.githubusercontent.com/Giveupmoon/OpenClash_Overwrite/refs/heads/main/Overwrite/Overwrite-noipv6.conf
🔹 主路由无需 IPv6 用户 - Smart-LGBM
https://raw.githubusercontent.com/Giveupmoon/OpenClash_Overwrite/refs/heads/main/Overwrite/Overwrite-smart-noipv6-LGBM.conf
🔹 主路由无需 IPv6 用户 - Smart(默认模型 + 数据收集)
https://raw.githubusercontent.com/Giveupmoon/OpenClash_Overwrite/refs/heads/main/Overwrite/Overwrite-smart-noipv6.conf
🔹 旁路由用户 - Url-test
https://raw.githubusercontent.com/Giveupmoon/OpenClash_Overwrite/refs/heads/main/Overwrite/Overwrite-bypass.conf
🔹 旁路由用户 - Smart-LGBM
https://raw.githubusercontent.com/Giveupmoon/OpenClash_Overwrite/refs/heads/main/Overwrite/Overwrite-smart-bypass-LGBM.conf
🔹 旁路由用户 - Smart(默认模型 + 数据收集)
https://raw.githubusercontent.com/Giveupmoon/OpenClash_Overwrite/refs/heads/main/Overwrite/Overwrite-smart-bypass.conf
2️⃣ 配置环境变量
在 OpenClash 中启用覆写模块前,请根据需要设置以下环境变量:
✴️ 必填变量 — 机场订阅链接
- 仅支持单一订阅,多机场用户建议搭配Sub-store聚合后载入配置。
EN_KEY=你的机场订阅链接
配置完成后,保存 → 应用配置重启即可。
💡 温馨提示
- 仓库文件均使用 GitHub 原始链接,请确保路由器可正常访问 GitHub。
- 默认 OpenClash 不包含 Geo 数据库:
- 建议手动提前更新 Geo 数据库。
- 26/4/13 虽然当前yaml文件完全不依赖geo数据库运行但是依然建议保持数据库更新
- 如未提前下载 GeoIP 数据库,初次运行可能提示 内核错误,多次重启后或手动下载数据库后即可恢复。
📂 项目来源
✨ 如果本项目对你有帮助,请点个 Star 支持一下!有配置错误之类的相关的问题,欢迎issue交流如您有更好的建议和设置,欢迎pr。