dsh-plugins/dsh-network-settings ↗★ 0
@dsh-plugin/dsh-network-settings
DSH 网络插件:在设置中统一配置 User-Agent 重写、HTTP/SOCKS5 代理及请求自动重试
AI 分析
为 DSH 的所有全局请求提供统一的代理、UA 修改和重试机制。适合处于受限网络环境、需要配置代理或自定义请求头以顺利连接 LLM 服务的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dsh-plugins/dsh-network-settings說明文件
閱讀完整 README ↗Configuration
Plugin entry (cordis.patch.yml / profile override) — the values act as the composition base layer and are merged with the user-settings section:
| Field | Type | Default | Meaning |
|---|---|---|---|
uaEnabled | boolean | true | UA rewriting master switch; when off the caller's User-Agent passes through. |
userAgent | string | DeepSeek-Harness/0.1 (+https://github.com/deepseek-ai/dsh) | The User-Agent applied to every rewritten request. |
proxyEnabled | boolean | false | Proxy master switch; when off requests go direct. |
proxyProtocol | string | http | Proxy protocol: http (CONNECT tunnel) or socks5. |
proxyHost | string | 127.0.0.1 | Proxy address. |
proxyPort | number | 7890 | Proxy port. |
proxyUsername | string | '' | Optional proxy username. |
proxyPassword | string | '' | Optional proxy password. |
proxyNoProxy | string[] | ['127.0.0.1','localhost','::1'] | Direct-connection host list; matched requests bypass the proxy. |
proxyTimeoutMs | number | 60000 | Proxy request timeout in ms. |
retryEnabled | boolean | true | Auto-retry master switch. |
maxRetries | number | 2 | Maximum request retry count (0 = no retries). |