返回目录
模型与 MCP 插件

dsh-http-local-proxy

DerikZhang/dsh-http-local-proxy

支持 deepseek harness 的代理工具,避免组件升级时因为网络问题阻塞

Stars
0
Forks
0
Issues
0
更新
6 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:DerikZhang/dsh-http-local-proxy

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-local-http-proxy

Configure one HTTP proxy for plugin and package installs in DeepSeek Harness, and switch it on or off from the Web UI.

English | 中文

What it does

DeepSeek Harness installs plugins by running pnpm add — and git, when the spec is a GitHub address — inside your profile directory. When GitHub or a package registry is unreachable from your network, those installs fail. This plugin writes one proxy address into the Harness process environment, so every install it starts goes through that proxy instead of connecting directly.

It sets http_proxy, HTTPS_PROXY, all_proxy and their siblings for child processes, keeps the usual loopback entries in no_proxy so local services stay local, and sets NODE_USE_ENV_PROXY=1 so a Node child honors those variables too.

Turning the switch on applies the address immediately, with no restart. Turning it off restores the environment this process started with.

Use it

After installing the bundle and reloading the page, the proxy panel is in three places:

  • Plugins page — a Proxy tab beside Installed.
  • Settings → Plugins — a Proxy tab.
  • Settings → General — a row titled HTTP proxy for plugin installs.

The panel has one switch and one address box. The box starts at http://127.0.0.1:7897; type another http:// or https:// address, then press Enter, click Save, or move focus out of the box. An address that is not an http:// or https:// URL is refused with a message and cannot be saved.

Install

From npm:

dsh plugin --profile <profile> add dsh-local-http-proxy

Or straight from this repository:

dsh plugin --profile <profile> add github:DerikZhang/dsh-http-local-proxy

Then select the bundle in that profile if it is not enabled yet.

Limitations

  • Child processes only. The proxy reaches installs and newly spawned commands. Requests the Harness process itself makes — model traffic, web search, web fetch — are not affected, so enabling it cannot interrupt a running conversation.
  • A launch-time policy wins. If you started dsh with HTTP_PROXY/HTTPS_PROXY exported, the launcher installs its own outbound policy before any plugin loads, and that policy takes precedence over the address set here.
  • Commands already running keep their environment. Only processes started after the switch is on inherit the proxy.
  • HTTP proxies only. SOCKS and PAC URLs are refused; the host itself supports only http:// and https:// proxy URLs.
  • no_proxy is merged, not replaced. Your existing bypass entries are kept and the loopback entries are appended.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。