DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Clash Proxy — DSH Plugin for DeepSeek Harness
← Plugins
C

dsh-clash-proxy

Clash Proxy

Smart routing (智能分流), self-contained and zero-config rule-splitting proxy plugin for DeepSeek Harness: subscription-based routing (domestic direct / international via ss/trojan/vless/vmess/hysteria2/socks5/http nodes) confined to the harness process tree, with a native Web GUI management page — no e

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:elevenmoon999/dsh-clash-proxy#eb859d739767569a401faf0f6662bc506c97a957
READMECompatibilityVersions

Description

Smart routing (智能分流), self-contained and zero-config rule-splitting proxy plugin for DeepSeek Harness: subscription-based routing (domestic direct / international via ss/trojan/vless/vmess/hysteria2/socks5/http nodes) confined to the harness process tree, with a native Web GUI management page — no external Clash/mihomo dependency

Compatibility and provenance

Clash Proxy is published as dsh-clash-proxy and currently resolves to version 0.2.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
8/25/2026

Versions

0.2.0stable
8/25/2026

Related plugins

Loading related plugins…

Latest
0.2.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
8/25/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in security-access.

Doctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consolePocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Auto Reviewdsh-auto-reviewSecond-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent decides allow/deny on the approval answerer chain, with fail-closed fallback and full session-log audit.

README

dsh-clash-proxy

Smart routing · Self-contained · Easy to start — a self-contained, zero-config rule-splitting proxy plugin.

A self-contained rule-splitting proxy plugin for DeepSeek Harness (DSH). No external Clash/mihomo client: a built-in rule engine plus your subscription nodes give the Harness process tree smooth access to both domestic (direct) and international (proxied) networks — while the rest of your system is untouched.

Features

  • Self-contained, zero external dependencies — mostly pure JavaScript over node:net / node:tls / node:crypto; hysteria2 and vless reality go through a bundled Go native connector (see "Native connector" below)
  • Built-in rule engine — embedded domestic domain suffixes (~110K entries, 467KB gzipped) and domestic IP ranges (IPv4/IPv6), plus subscription rules and custom DOMAIN / DOMAIN-SUFFIX / DOMAIN-KEYWORD / IP-CIDR / REJECT rules
  • Subscription parsing — full Clash configs, bare node lists, base64 bodies, node groups
  • Node transports (international egress):
    • ✅ socks5 / http upstream proxies
    • ✅ ss (shadowsocks AEAD: aes-128-gcm / aes-256-gcm / chacha20-ietf-poly1305)
    • ✅ trojan (tcp / tls / ws)
    • ✅ vless (tcp / tls / ws)
    • ✅ vless reality (xtls-rprx-vision + reality-opts, via the native connector)
    • ✅ vmess (AEAD alterId=0, tcp / ws, AES-128-GCM)
    • ✅ hysteria2 (QUIC, via the native connector)
    • ❌ tuic (QUIC variant, not implemented)
  • One port, two protocols — HTTP CONNECT + SOCKS5 on a single loopback port
  • Harness-only scope:
    • Listens on 127.0.0.1, no system proxy, no TUN
    • DSH subprocesses (pwsh/terminal, jobs, workflows) inherit the proxy via env vars
    • DSH's own fetch (web search, LLM, MCP) is routed through a runtime dispatcher
    • Loopback always bypasses (NO_PROXY) — no proxy loops
  • Native Web GUI — Settings → Clash Proxy: status, enable/restart, subscription update, node list, per-node latency tests, group selection, live traffic
  • Node selection — url-test (auto-fastest) / select (manual, persisted) / fallback
  • Auto subscription refresh — configurable interval in hours, 0 disables

Install

dsh plugin --profile web add dsh-clash-proxy
# or from a local path / git repo:
dsh plugin --profile web add <path/to/dsh-clash-proxy>

Restart DSH (dsh web), open Settings → Clash Proxy, and fill in your subscription URL. Nothing else is needed.

Configuration

The Clash Proxy settings card (or a profile patch overlay):

FieldDefaultMeaning
enabledtrueMaster switch; nothing listens or is injected when false
subscriptionUrlemptyClash subscription URL; CLASH_SUBSCRIPTION_URL env var also works
fetchProxyUrlemptyOptional upstream proxy for fetching the subscription itself
autoUpdateHours24Subscription refresh interval in hours, 0 disables
groupTypeurl-testAuto group type: url-test / select / fallback
latencyTestUrlgstatic 204Node health-check / latency-test URL
latencyTimeoutMs3000Per-node latency test timeout
noProxyloopbackExtra NO_PROXY entries (loopback is always forced)
extraRules[]Extra rule lines, e.g. DOMAIN-SUFFIX,example.com,DIRECT
excludeRules[]Subscription rules to drop (substring match)

Data directory: $DSH_HOME/clash-proxy/ (subscription cache, selection state). Routing data ships inside the package (lib/core/data/*.json.gz) and works offline; rebuild it with npm run build:cn-data.

How it works

DSH process tree
 ├─ DSH's own fetch ──(runtime dispatcher)─┐
 ├─ pwsh / terminal / jobs ──(env vars)────┤
 └─ workflow / subagents ───(inherited)────┘
                                           ▼
                        rule proxy (127.0.0.1:random port)
                          ├─ domestic domains/IPs → direct (fast)
                          └─ foreign → subscription node (ss/trojan/vless/vmess/hysteria2/socks5/http)
Other system programs ── unaffected (no system proxy / TUN)
  • Every connection is decided per-target: direct / proxy / reject
  • The GUI talks to the manager through the DSH webserver's /clash-proxy/* JSON API
  • Disabling/uninstalling restores env vars and the fetch dispatcher — no leftovers
  • Per-process random ports; multiple DSH instances never collide

The plugin reuses these DSH capabilities (no reinvented wheels):

DSH capabilityHow it is reused
timer serviceSubscription auto-update + periodic full latency-test loop
webServer serviceRegisters the /clash-proxy/* prefix route for the browser's JSON API
Settings system (dsh-settings)installSettingsSection mounts an editable settings card shared with the browser
Client slots / locale / settingsScopeMounts the management panel into Settings; registers EN/ZH dictionaries
Runtime fetch dispatcherInjects a dispatcher so DSH's own fetch (search/LLM/MCP) goes through the proxy
Environment injectionSpawned subprocesses (pwsh/jobs/workflow) inherit HTTP(S)_PROXY

Usage & verification

Usage example (run inside DSH):

curl -x http://127.0.0.1:<proxy-port> https://ipinfo.io   # see the foreign exit IP
curl https://www.baidu.com                                # domestic direct, instant

Verification status (layered):

  • ✅ Verified:
    • Rule engine / subscription parsing / SS AEAD (test/smoke.mjs)
    • vmess(ws), trojan(ws+tls), vless(ws) end-to-end (local xray oracle)
    • hysteria2 / vless-reality manually verified against real nodes (script not published to avoid leaking credentials)
    • Real splitting + socks5/ss nodes via curl (test/proxy-e2e.mjs)
  • ⏳ To verify (recommended before publish):
    • Fresh-profile install smoke test (dsh plugin add then first boot)
    • npm pack --dry-run package completeness (confirm lib/native/connector.exe and cordis.patch.yml are included)
    • Multi-instance random ports never collide

Development & tests

npm install
npm run build:cn-data              # regenerate CN routing data (needs internet)
node test/smoke.mjs                # rule engine / subscription / SS AEAD unit tests
node test/vmess-e2e.mjs            # vmess(ws) end-to-end (local xray server)
node test/trojan-ws-echo.mjs       # trojan(ws+tls) end-to-end (local xray server)
node test/vless-ws-echo.mjs        # vless(ws) end-to-end (local xray server)
node test/proxy-e2e.mjs            # end-to-end: real splitting + socks5/ss nodes via curl

The E2E tests ship minimal socks5/ss protocol fixtures; the vmess/trojan/vless tests need .clash-test/xray/xray.exe (a local oracle server). Set TEST_UPSTREAM_PROXY=http://127.0.0.1:7890 to let the fixture path reach the international internet through any HTTP proxy (test-only convenience).

Native connector

hysteria2 (QUIC) and vless reality (uTLS fingerprint) cannot be implemented in pure JavaScript, so the plugin ships a self-compiled Go native connector lib/native/connector.exe (source in native/, rebuild with go build -o ../lib/native/connector.exe .). Node bridges to it over stdio. It only does "dial + bidirectional relay" for those two protocols; the rule engine, subscription parsing, and node selection stay on the pure-JS side, with no dependency on any external Clash/mihomo binary.

FAQ

  • "No subscription" — fill subscriptionUrl (or set CLASH_SUBSCRIPTION_URL) and click "Update subscription".
  • Subscription update fails — the subscription may itself need a proxy; set fetchProxyUrl.
  • Nodes won't connect — check the node type in the GUI; ss / trojan / vless / vmess / hysteria2 / socks5 / http are supported, tuic is not.
  • Verify splitting — inside DSH run curl -x http://127.0.0.1:<port> ipinfo.io to see your exit IP; Baidu should feel instant.
  • Coexists with existing Clash clients — fully independent, random ports.

Known limitations

LimitationCauseMitigation
hysteria2 / vless-reality depend on a bundled Go connector (Windows amd64 binary)QUIC / uTLS fingerprinting cannot be implemented in pure JSOn other platforms/arches run go build -o ../lib/native/connector.exe . from native/
tuic not supportedAnother QUIC variant, not implementedPick ss/trojan/vless/vmess/hysteria2/socks5/http nodes in the GUI
Some nodes have unstable egress to google / wikipedia / x.com (observed timeouts)Depends on the subscription node's exit routeTest each node in the GUI and switch to a more stable one
Only affects the Harness process tree; no system proxyBy design (safety boundary)Use a separate system tool if you need system-wide proxying
Pure-JS transports have limited throughput at extreme concurrencynode:net / node:tls event-loop modelDomestic traffic is direct; use proxied egress on demand

Changelog

  • 0.2.0 — pure-JS transports for ss / trojan / vless(tcp/tls/ws) / vmess / socks5 / http; added hysteria2 and vless-reality (bundled Go native connector); Web GUI (status/subscription update/node list/latency tests/selection/traffic); rule engine + CN routing data + subscription parsing.

License & compliance

MIT. This plugin provides technical capability only; ensure your proxy service and usage comply with local laws and regulations.