dsh-plugins/dsh-network-settings0

@dsh-plugin/dsh-network-settings

DSH 网络插件:在设置中统一配置 User-Agent 重写、HTTP/SOCKS5 代理及请求自动重试

AI 分析

为 DSH 的所有全局请求提供统一的代理、UA 修改和重试机制。适合处于受限网络环境、需要配置代理或自定义请求头以顺利连接 LLM 服务的用户。

包名
@dsh-plugin/dsh-network-settings
版本
1.0.1
许可证
NOASSERTION
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dsh-plugins/dsh-network-settings

Configuration

Plugin entry (cordis.patch.yml / profile override) — the values act as the composition base layer and are merged with the user-settings section:

FieldTypeDefaultMeaning
uaEnabledbooleantrueUA rewriting master switch; when off the caller's User-Agent passes through.
userAgentstringDeepSeek-Harness/0.1 (+https://github.com/deepseek-ai/dsh)The User-Agent applied to every rewritten request.
proxyEnabledbooleanfalseProxy master switch; when off requests go direct.
proxyProtocolstringhttpProxy protocol: http (CONNECT tunnel) or socks5.
proxyHoststring127.0.0.1Proxy address.
proxyPortnumber7890Proxy port.
proxyUsernamestring''Optional proxy username.
proxyPasswordstring''Optional proxy password.
proxyNoProxystring[]['127.0.0.1','localhost','::1']Direct-connection host list; matched requests bypass the proxy.
proxyTimeoutMsnumber60000Proxy request timeout in ms.
retryEnabledbooleantrueAuto-retry master switch.
maxRetriesnumber2Maximum request retry count (0 = no retries).