forked from clash-verge-rev/clash-verge-rev
-
Notifications
You must be signed in to change notification settings - Fork 9
Deep Links zh
Nemu-x edited this page Jul 14, 2026
·
1 revision
SlothClash 可以直接从链接导入订阅。打开这样的链接(在浏览器、聊天或面板的「添加到应用」按钮中)会启动 SlothClash,显示确认对话框,并将订阅作为命名配置文件导入。
slothclash://install-config?url=<URL 编码后的订阅 URL>&name=<可选名称>
-
url(必填)— 你的订阅 URL,需百分号编码。 -
name(可选)— 导入配置文件的显示名称。
也接受带路径的形式:
slothclash:///install-config?url=<编码后>&name=<name>
示例
订阅 URL:
https://panel.example.com/sub/abc123
深度链接(URL 编码后):
slothclash://install-config?url=https%3A%2F%2Fpanel.example.com%2Fsub%2Fabc123&name=SwiftVPN
务必对
url值进行 URL 编码。订阅 URL 中未编码的?、&、=、/会破坏解析。
- 打开链接从不静默导入——在添加任何内容前,你会看到标明订阅名称的确认对话框,因为深度链接可被任意网页触发。
- 目标 URL 在被抓取前会经过校验(SSRF 防护)——无法借此让 SlothClash 探测内网/回环地址。
- 导入的配置文件与手动添加的完全一致(自动更新等)。
- 若未安装 SlothClash,链接不会有任何反应——请将其置于带下载兜底的普通网页之后。
生成按用户的安装链接,订阅 URL 需已百分号编码:
slothclash://install-config?url=<编码后的订阅URL>&name=<USERNAME>
📖 User Guide
- Getting Started
- Profiles & Nodes
- Routing & Rules
- Settings
- Deep Links
- Encrypted Subscriptions
- Troubleshooting
📺 Companion
🏢 For Operators