Back to catalog

naitoupi /

naitoupi/dsh-outbound-proxy

Verified

DeepSeek Harness (DSH) plugin: set a global outbound proxy from Settings

0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
READMESource: main@8b5337e6

dsh-outbound-proxy

DeepSeek Harness (DSH) 插件:在「设置」里配置一个全局出站代理,写入 ~/.dsh/.env,重启后对 LLM / 网页搜索 / HTTP MCP 生效。

A DeepSeek Harness (DSH) plugin that configures a global outbound proxy from Settings, persisting it to ~/.dsh/.env (takes effect on the LLM / web-search / HTTP-MCP traffic after restart).

功能 / Features

  • 设置 → 出站代理:输入 http(s):// 代理地址并保存
  • 「恢复默认」= 清空代理、恢复直连
  • 合并式写入 ~/.dsh/.env,保留文件里其它行
  • 只接受 http(s)://,拒绝 SOCKS;localhost / 127.0.0.1 永远直连

原理 / How it works

DSH 自带 @deepseek-ai/dsh-http-proxy:启动时读取环境变量 / ~/.dsh/.env 里的 http_proxy / https_proxy,安装为 undici 全局 dispatcher。本插件只负责把设置页填写的地址 落盘到 ~/.dsh/.env,因此代理在 DSH 启动时读取一次,修改后需重启 DSH 生效

安装 / Install

# 1. 把包加进 profile 依赖
dsh plugin --profile web add github:naitoupi/dsh-outbound-proxy

# 2. 在 ~/.dsh/profiles/web/package.json 的 dsh.profile.bundles 里加上 "dsh-outbound-proxy"

# 3. 安装并重启 DSH
dsh plugin --profile web install

License

MIT

/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.