chickmat/dsh-system-net ↗★ 1

dsh-system-net

使客户端自动跟随系统代理与证书设置 适合在公司内网或需要网络代理环境下的用户。

包名
dsh-system-net
兼容性
待验证
Harness 依赖范围
*
Cordis 依赖范围
*
版本
0.2.0
许可证
MIT
最近更新
2026年10月2日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:chickmat/dsh-system-net

Configuration

Override in your profile's cordis.patch.yml:

- id: system-net
  name: dsh-system-net
  config:
    proxyMode: auto
    noProxy: 'internal.example.com'
    extraCaFiles:
      - 'C:/certs/corporate-ca.pem'

Proxy

FieldDefaultDescription
proxyModeautoauto: honour existing env → read system proxy → probe ports. manual: only proxyUrl. off: never touch the proxy
proxyUrl''proxy URL for manual, e.g. http://127.0.0.1:7890
probePortscommon portslocal ports probed in auto
probeTimeoutMs600per-port probe timeout
watchProxytrueretry at an interval when no proxy was found at startup
watchIntervalMs10000retry interval (ms)
noProxy''extra bypass entries (comma separated). loopback is always guaranteed by the official library

Certificates

FieldDefaultDescription
includeSystemtruemerge the operating system certificate store
includeDefaulttruekeep Node's bundled Mozilla root set (recommended)
extraCaFiles[]extra PEM files to trust
propagateToChildrentrueextend the same trust to Node child processes spawned later (appends --use-system-ca to NODE_OPTIONS). Only applies where Node allows that flag — see below

Shared

FieldDefaultDescription
enabledtruemaster switch
statusFile''status file path; empty means $DSH_HOME/system-net-status.json
selfChecktrueperform one real request after loading
selfCheckUrlGitHub APIself-check target. If your accelerator does not cover GitHub, change this to something it does cover — otherwise the self-check fails (which does not mean the plugin failed; read proxy.installed)
selfCheckTimeoutMs15000self-check timeout