naitoupi/dsh-outbound-proxy ↗★ 0

dsh-outbound-proxy

通过设置写入全局出站代理,重启后影响模型、搜索与HTTP MCP流量 适合统一网络出口控制的场景;仅接受http(s)格式,改动后需要重启服务并可设置本地直连例外。

包名
dsh-outbound-proxy
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年9月14日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:naitoupi/dsh-outbound-proxy

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