dsh-proxy-router
提供本地代理内核,支持直连优先与自动切换代理 适合需要通过订阅链接自动配置本地代理,实现网络直连与代理自动切换的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Lequait/dsh-proxy-router说明文档
阅读完整 README ↗配置(全部可选)
在 profile 的 cordis.patch.yml 里改 proxy-router 条目的 config:
- id: proxy-router
name: dsh-proxy-router
config:
subscriptionUrl: 'https://你的订阅链接' # 必填,含 token,请自行保管
corePath: '' # 留空自动探测 mihomo / verge-mihomo
autoStart: true # 随 harness 启动内核
mixedPort: 19097
controllerPort: 19098
directTimeoutMs: 8000
proxyTimeoutMs: 12000
healthUrl: 'http://cp.cloudflare.com/generate_204'
| 字段 | 默认 | 说明 |
|---|---|---|
subscriptionUrl | '' | 订阅链接;支持 Clash YAML 与 base64 节点列表 |
corePath | 自动探测→自动下载 | 通常不用填;要强制指定内核路径时才填(或设 DSH_PROXY_CORE) |
autoStart | false | 是否随 harness 启动内核 |
mixedPort / controllerPort | 19097 / 19098 | 本地混合端口与控制器端口(避开 Clash Verge 的 7897/9097) |
directTimeoutMs / proxyTimeoutMs | 8000 / 12000 | 两条路的超时预算 |
healthUrl | cloudflare 204 | 节点健康探测目标 |