packages/dsh-remote-web-ui
zhu1090093659/dsh-web手机/PC 远程操控 dsh web 工作区:扫码配对、令牌门控通道、SSE 实时同步,提供移动端与完整桌面 GUI 两种远程形态。
让 DeepSeek Harness 的出网流量走本地 Clash 代理,代理关闭时自动回落直连。
English | 中文
Route DeepSeek Harness outbound HTTP through a local forward proxy (Clash, V2Ray, …), with automatic bypass of loopback and private networks.
When your harness needs to reach the public internet through a proxy (for example, Clash running on 127.0.0.1:7897), this plugin makes every outbound request take that route:
fetch (web search, web fetch, LLM API calls) through an undici dispatchergit, curl, npm, pnpm, …) through the standard HTTP_PROXY / HTTPS_PROXY / NO_PROXY env vars>= 22 (matches the harness engine range)web)dsh plugin --profile web add github:<your-org>/dsh-clash-proxy
# or, once published to npm:
dsh plugin --profile web add dsh-clash-proxy
Then configure the proxy in the profile's cordis.patch.yml:
- id: dsh-clash-proxy
config:
proxy: 'http://127.0.0.1:7897'
Restart the harness. The proxy URL defaults to $HTTPS_PROXY / $HTTP_PROXY / $ALL_PROXY when config.proxy is omitted.
| key | type | default | meaning |
|---|---|---|---|
proxy | string | proxy env vars | forward-proxy URL, e.g. http://127.0.0.1:7897 |
enabled | boolean | true | set false to disable the plugin entirely |
noProxy | string[] | [] | extra hosts / IPs / CIDRs to bypass |
These always bypass the proxy, so loopback and local services keep working:
localhost, 127.0.0.0/8, ::1, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16
plus $NO_PROXY and config.noProxy. IPv4 CIDR matching is supported.
HTTP_PROXY / HTTPS_PROXY / ALL_PROXY / NO_PROXY so child processes inherit the same routeGET /dsh-clash-proxy/status → { "reachable": boolean }, which the web client polls to show a "proxy unreachable" toastThe plugin restores the previous dispatcher and env vars when unloaded.
git clone git@… (SSH, port 22) is not proxied — only HTTP/HTTPS traffic.fetch directly do not read HTTP_PROXY; only the harness's own fetch uses the dispatcher.pnpm install
pnpm build # tsc (host) + tsdown (client)
pnpm test
MIT