Jack-jiang421/dsh-smart-proxy ↗★ 0

dsh-smart-proxy

管理网络代理以解决传输失败和证书问题 适合遇到网络连接失败或TLS证书拦截问题的桌面端用户。

包名
dsh-smart-proxy
兼容性
待验证
Cordis 依赖范围
^4.0.1
版本
1.2.1
许可证
MIT
最近更新
2026年10月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jack-jiang421/dsh-smart-proxy

配置

在 ~/.dsh/profiles/ /cordis.patch.yml 中覆盖 smart-proxy 的配置:

- id: smart-proxy
  config:
    mode: manual
    proxyUrl: "http://127.0.0.1:7890"
参数类型默认值说明
modestringsystem代理模式:system / manual / direct
proxyUrlstringhttp://127.0.0.1:7890manual 模式使用的代理地址
streamTimeoutnumber600000SSE 流式超时(毫秒)
connectTimeoutnumber30000TCP 连接超时(毫秒)
keepAlivebooleantrue启用 TCP Keep-Alive
retryOnTransportErrorbooleantrue传输层错误自动重试
maxRetriesnumber3最大重试次数
ignoreTlsErrorsbooleanfalse忽略 TLS 证书错误(仅在自签/中间人环境开启)
bypassDomainsstring[]["localhost", "127.0.0.1", "::1"]不走代理的域名
autoTestbooleantrue启动时自动测试连通性

ignoreTlsErrors 会降低安全性,只在明确知道证书被拦截时临时开启。

在对话中使用

插件注册了三个 Agent 工具,直接用自然语言触发即可:

说法工具
「看一下当前代理状态,顺便测下连通性」smart-proxy.status
「切换到直连模式」smart-proxy.switch-mode

status 返回当前模式、代理地址、TLS 豁免状态、连通性结果与延迟;switch-mode 支持 direct / manual / system,可同时传入新的 proxyUrl。