Lequait/dsh-proxy-router ↗★ 0

dsh-proxy-router

订阅链接 → 本地代理内核 → 直连优先、直连失败自动切代理;内核自动探测/自动下载,用户只需填订阅地址。 | Subscription link to a local core: direct-first fetching with automatic proxy fallback; the core is auto-detected or auto-downloaded, so the subscription link is the only input. 适合需要通过订阅链接自动配置本地代理,实现网络直连与代理自动切换的用户。

패키지
dsh-proxy-router
호환성
미검증
버전
0.2.0
라이선스
MIT
최근 업데이트
2026. 9. 26.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Lequait/dsh-proxy-router

配置(全部可选)

在 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)
autoStartfalse是否随 harness 启动内核
mixedPort / controllerPort19097 / 19098本地混合端口与控制器端口(避开 Clash Verge 的 7897/9097)
directTimeoutMs / proxyTimeoutMs8000 / 12000两条路的超时预算
healthUrlcloudflare 204节点健康探测目标