Jack-jiang421/dsh-smart-proxy ↗★ 0
dsh-smart-proxy
Smart network proxy manager for DeepSeek Harness — fixes desktop Transport Failed and TLS interception problems 适合遇到网络连接失败或TLS证书拦截问题的桌面端用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jack-jiang421/dsh-smart-proxyドキュメント
README 全文を読む ↗配置
在 ~/.dsh/profiles/ /cordis.patch.yml 中覆盖 smart-proxy 的配置:
- id: smart-proxy
config:
mode: manual
proxyUrl: "http://127.0.0.1:7890"
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
mode | string | system | 代理模式:system / manual / direct |
proxyUrl | string | http://127.0.0.1:7890 | manual 模式使用的代理地址 |
streamTimeout | number | 600000 | SSE 流式超时(毫秒) |
connectTimeout | number | 30000 | TCP 连接超时(毫秒) |
keepAlive | boolean | true | 启用 TCP Keep-Alive |
retryOnTransportError | boolean | true | 传输层错误自动重试 |
maxRetries | number | 3 | 最大重试次数 |
ignoreTlsErrors | boolean | false | 忽略 TLS 证书错误(仅在自签/中间人环境开启) |
bypassDomains | string[] | ["localhost", "127.0.0.1", "::1"] | 不走代理的域名 |
autoTest | boolean | true | 启动时自动测试连通性 |
ignoreTlsErrors会降低安全性,只在明确知道证书被拦截时临时开启。
在对话中使用
插件注册了三个 Agent 工具,直接用自然语言触发即可:
| 说法 | 工具 |
|---|---|
| 「看一下当前代理状态,顺便测下连通性」 | smart-proxy.status |
| 「切换到直连模式」 | smart-proxy.switch-mode |
status 返回当前模式、代理地址、TLS 豁免状态、连通性结果与延迟;switch-mode 支持 direct / manual / system,可同时传入新的 proxyUrl。