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.

Network Settings — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@dsh-plugin/dsh-network-settings

Network Settings

DSH (DeepSeek Harness) network plugin that bundles User-Agent rewriting, an HTTP/CONNECT/SOCKS5 proxy, and configurable request auto-retry for every outgoing global-fetch request, all configured from a single “网络设置” (Network) settings tab.

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

npx -y @deepseek-ai/dsh plugin --profile web add github:dsh-plugins/dsh-network-settings#8f0c8db2cfe8213dcffdc94e5aec30514ad25190
READMECompatibilityVersions

Compatibility and provenance

Network Settings is published as @dsh-plugin/dsh-network-settings and currently resolves to version 1.1.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/21/2026

Versions

1.1.2stable
9/3/2026
1.1.1stable
8/29/2026
1.1.0stable
8/24/2026
Show 7 more versionsCollapse versions
1.1.2-dev.33723606345dev
9/3/2026
1.1.1-dev.33219013076dev
8/28/2026
1.1.1-dev.32934571287dev
8/26/2026
1.0.1stable
8/21/2026
1.0.1-dev.32513468026dev
8/21/2026
0.1.0-dev.32510082692dev
8/21/2026
0.1.0stable
8/21/2026
Latest
1.1.2
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
146
Last push
9/3/2026
View source ↗Project homepage ↗
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

README

@dsh-plugin/dsh-network-settings

A DeepSeek Harness plugin that bundles three network capabilities — User-Agent rewriting (from @dsh-plugin/dsh-user-agent), a HTTP / HTTPS-CONNECT / SOCKS5 proxy (from dsh-net-proxy), and configurable request auto-retry — all driven from a single 网络设置 (Network) tab in the Web settings.

Features

  • User-Agent rewriting — force a custom User-Agent on every outgoing request that uses global fetch (LLM API calls from dsh-llm-deepseek, web search, HTTP tools, …), overriding the caller's own header. Toggle on/off, edit the string, applies to the very next request.
  • Network proxy — route the agent's network requests through an HTTP (CONNECT tunnel) or SOCKS5 proxy, with optional username/password, NO_PROXY direct-connection list (host / suffix / host:port / IPv4 CIDR / * / <local>), and a request timeout. A 测试连接 (Test connection) button runs a real connectivity + latency probe (proxy TCP handshake, total round-trip, target HTTP status) from the settings page.
  • Request auto-retry — configure the maximum request retry count (0 = off): when an outbound request fails with a network-layer error (undici connect/timeout/reset codes) or a retryable status (429, 500, 502, 503, 504), it is retried automatically with bounded exponential backoff (500 ms base, 10 s cap) + 10% jitter. Aborts (user cancellation) and non-replayable streaming bodies are never retried; the request body is replayed only when it is replayable (string / URLSearchParams / ArrayBuffer / Blob / FormData).
  • One settings tab, three independent sections — the UA, proxy, and retry sections each have their own 保存 (Save) button; changes are applied live on the next request without a restart. All values live in the standard dsh-network-settings user-settings namespace.
  • Clean lifecycle — globalThis.fetch is wrapped only while the plugin runs; the original fetch is captured once and restored on stop / update / removal.
  • Same-origin probe route — /_dsh/dsh-network-settings/probe performs the proxy connectivity test (read-only, never writes config).

Install

The package is a dsh bundle plugin (dsh.bundle.patch), installable with the standard dsh plugin add command:

dsh plugin add @dsh-plugin/dsh-network-settings
# or, with a specific profile
dsh plugin --profile web add @dsh-plugin/dsh-network-settings

Then open Settings → 网络设置 in the Web GUI: edit any of the three sections and hit its 保存 button.

Replacing the old plugins

This plugin supersedes both @dsh-plugin/dsh-user-agent and dsh-net-proxy (it implements their full functionality). Remove them from the profile once installed:

dsh plugin remove @dsh-plugin/dsh-user-agent
dsh plugin remove net-proxy

Existing data is migrated automatically: if the old ~/.dsh/net-proxy.json (or $DSH_HOME/net-proxy.json) exists, its proxy fields are merged into the plugin's base layer on startup (values you save in the 网络设置 tab always win).

Configuration

Plugin entry (cordis.patch.yml / profile override) — the values act as the composition base layer and are merged with the user-settings section:

FieldTypeDefaultMeaning
uaEnabledbooleantrueUA rewriting master switch; when off the caller's User-Agent passes through.
userAgentstringDeepSeek-Harness/0.1 (+https://github.com/deepseek-ai/dsh)The User-Agent applied to every rewritten request.
proxyEnabledbooleanfalseProxy master switch; when off requests go direct.
proxyProtocolstringhttpProxy protocol: http (CONNECT tunnel) or socks5.
proxyHoststring127.0.0.1Proxy address.
proxyPortnumber7890Proxy port.
proxyUsernamestring''Optional proxy username.
proxyPasswordstring''Optional proxy password.
proxyNoProxystring[]['127.0.0.1','localhost','::1']Direct-connection host list; matched requests bypass the proxy.
proxyTimeoutMsnumber60000Proxy request timeout in ms.
retryEnabledbooleantrueAuto-retry master switch.
maxRetriesnumber2Maximum request retry count (0 = no retries).

How it works

  • The host half installs the dsh-network-settings settings namespace (installSettingsSection) and wraps globalThis.fetch once with a three-layer stack, read per request: retry → User-Agent rewrite → proxy → original fetch. Each attempt of a retried request re-reads the latest resolved config, so saved changes apply to the very next request.
  • The proxy engine is the ported dsh-net-proxy implementation (HTTP absolute-URL forwarding, HTTPS via CONNECT, SOCKS5 negotiation with RFC 1929 auth, streaming response bodies with gzip / br / deflate decoding, HTTP/2 via ALPN, redirect following, NO_PROXY matching).
  • The browser half registers the settings.section tab and reads/writes the namespace through the connection's ApiProxy (api.settings.describe / update), the same seam the aux/mainline DSH plugins use; the proxy connectivity test goes through the same-origin probe route.

Development

npm install          # dev deps + auto-installed peers
npm run build        # tsc (host + client) + strip client module-ification artifact
npm test             # node --test (TypeScript tests run natively on Node ≥ 23.6)
npm pack --dry-run   # inspect published contents

All source — host, proxy engine, settings UI, and tests — is TypeScript.

License

MIT