DSH Hub

chenjiyan2001/dsh-proxy-routing

dsh-proxy-routing

BundleWorkflow0 GitHub stars· updated 2026-08-21

dsh-proxy-routing is a community DeepSeek Harness plugin. Read the repository README before installing.

Install

npx @deepseek-ai/dsh plugin --profile web add github:<owner>/dsh-proxy-routing

Restart `dsh web` after install. Bundle APIs can change during the developer preview.

README badge

dsh-proxy-routing DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/dsh-proxy-routing.svg)](https://dshhub.dev/plugins/dsh-proxy-routing)

Paste this into your README. The star count updates with every catalog sync.

From the README

Excerpt from chenjiyan2001/dsh-proxy-routing, cleaned of badges and images.

dsh-proxy-routing

English | 中文

A DeepSeek Harness egress-routing plugin that connects to an already running HTTP or SOCKS5 proxy in the environment, routing shell commands and LLM provider traffic per execution without mutating the host process environment.

This plugin does not provide proxy functionality. It does not create a proxy service, manage nodes or subscriptions, or implement split-routing rules. An accessible HTTP or SOCKS5 proxy endpoint must already exist before using it.

Overview

  • Connects to an existing local HTTP (including CONNECT) or SOCKS5 proxy.
  • Keeps direct connection as the default. NO_PROXY excludes loopback addresses and api.deepseek.com by default.
  • Routes foreground and background Bash/PowerShell subprocesses, including nested git, curl, npm, and pnpm commands.
  • Applies provider-specific routes to LLM streams while isolating concurrent direct and proxied requests.
  • Persists configuration through the official proxy-routing settings namespace in $DSH_HOME/settings.yaml and applies changes without restarting DSH.
  • Requires human approval for enabling or disabling a proxy route (except under the Full Access permission tier).

Pain Points and Use Cases

Concrete examples

ScenarioDirect-connection pain pointWhat this plugin does
gh repo clone, git clone from GitHubFailed to connect to github.com port 443: Connection timed outAfter enabling, every git/gh subprocess the Agent spawns inherits HTTP(S)_PROXY; no ~/.gitconfig or git config http.proxy changes
curl/wget downloads of external filesDownloads hang or drop (connect timed out)Command-line subprocesses started by DSH inherit the injected proxy environment for both foreground and background runs
Agent installs dependencies with npm/pnpm/cargoETIMEDOUT, ESOCKETTIMEDOUT, interrupted downloadsDependency-install subprocesses go through the proxy automatically; prefer package mirrors when available
LLM provider API domains blocked or rate-limitedInterrupted streaming, provider unreachableConfigure a per-provider proxy route without touching direct traffic
docker pull image pullsdial tcp ... i/o timeout, net/http: TLS handshake timeoutNot applicable: the Docker daemon performs image pulls, not this plugin; configure the proxy or a registry mirror in Docker Desktop / the daemon

Not applicable

  • Docker daemon image pulls and BuildKit-side network traffic.
  • Programs that ignore proxy environment variables, such as browsers and WinHTTP/WinINET applications.
  • Providing a proxy service: this plugin only connects to a proxy already running in the environment.

Install

For development or local use, add the plugin directory to the profile's cordis.patch.yml using an absolute path:

- insert:
    - id: proxy-routing
      name: '/path/to/dsh-proxy-routing'

After release:

dsh plugin --profile web add github:<owner>/dsh-proxy-routing

Restart DSH after installation so the plugin can load and register the net_proxy_* tools.

Configuration

Default state

A new v2 settings namespace resolves to a default structure that works out of the box in direct mode:

Related plugins