dsh-http-proxy
Wraps globalThis.fetch to route DeepSeek Harness model-API requests through an HTTP/SOCKS proxy by target domain, leaving all other requests on the direct connection, without modifying Harness source.
把 globalThis.fetch 包一层,按目标域名让 DeepSeek Harness 的模型 API 请求走 HTTP/SOCKS 代理、其它请求保持直连,全程不改 Harness 源码。
How to install
dsh plugin add dsh-http-proxy About
dsh-http-proxy 给 DeepSeek Harness(DSH)加「模型请求走代理、其它请求直连」的能力,**不修改任何 DSH 官方代码**。 本机访问不到大模型、但代理服务器能访问时,装上本插件并配好代理,DSH 就把所有模型 API 请求走代理发出;web 搜索、网页抓取、MCP 等其它请求仍走本机直连。 原理 插件在运行时把 globalThis.fetch 包一层(DSH 的 DeepSeek 适配器和 pi-ai 的 OpenAI/Anthropic SDK 都调用它),按**目标域名**决定走哪条路: 域名是模型 API 域名 → 走代理(undici ProxyAgent,支持 HTTP/SOCKS5) 其它域名 → 本机直连(原来的 fetch) 整个过程不改 DSH 源码;卸载后 globalThis.fetch 恢复原样,不残留任何东西。 安装(一条命令) bash dsh plugin --profile web add github:elizax/dsh-http-proxy web 是 profile 名,换成你自己的 profile 名(如 headless)。仓库里已带构建好的 lib/,安装时无需编译。 重启 bash dsh --profile web 配置 有两种方式,效果相同: **方式 A:网页 UI(推荐)** 安装并重启后,…
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 0
- mo. downloads
- –
- Last push
- 2026-08-27
- Created
- 2026-08-26
Links
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- deepseek-harness, dsh-plugin
Related plugins
claude-code-router
musistudio/claude-code-router
One local control plane for every AI agent: route across models, fuse new capabilities, orchestrate tools, and stay fully in control.