dsh-plugin-proxy-toggle: One-Click Outbound Proxy Toggle for DSH Desktop

Introduction

In the online scenarios of the DeepSeek Harness (DSH) Desktop, the outbound path often consists of several layers: the launcher’s built-in dispatcher, proxy variables in ~/.dsh/.env, the local Clash Mixed port, and potentially system proxy or TUN on macOS. When you need to switch between “following the startup strategy” and “temporarily using a local HTTP proxy,” troubleshooting becomes costly if you can only modify environment variables or restart the application, and it is difficult to confirm whether requests are actually sent via the proxy.

The following introduces the community plugin dsh-plugin-proxy-toggle (maintainer WosLovesLife, category: Networking Tools). It provides proxy toggles and a settings page in the DSH Desktop sidebar. It only modifies routing and environment variables within the Harness process; it does not alter Clash configuration, open macOS system proxy, or touch TUN, and uses Google’s generate_204 for connectivity verification.

What is this

dsh-plugin-proxy-toggle is a small plugin installed into DeepSeek Harness Desktop (Electron): it adds a proxy toggle at the bottom of the sidebar, allowing one-click switching of outbound traffic between the “network strategy at startup” and “local HTTP proxy”. Plugin version 1.0.0, license MIT.

The scope includes all outbound fetch within the process (e.g., web_fetch, model requests, HTTP MCP), as well as newly launched child processes (e.g., curl, git, pnpm in bash). Existing child processes will not inherit the updated environment variables.

Community directory page: SkillHub - dsh-plugin-proxy-toggle. Source code and documentation: GitHub - WosLovesLife/dsh-plugin-proxy-toggle. SkillHub is an independent community site with no official affiliation to DeepSeek / Quant.

Core Features

  • Sidebar Switch: Click to turn on/off; a dot indicates idle, connecting, available, or failed.
  • Settings Page (Network Proxy): Same switch, proxy address editor, “Test Now”, and the last check result.
    The switch and address are written to the plugin’s configuration in the profile and automatically restored after a DSH restart. Each DSH profile saves its own switch state individually.

Connectivity Test

When the proxy is enabled, the address is modified, or “Test Now” is clicked, the plugin initiates a request via the current proxy configuration:

GET https://www.google.com/generate_204

It has a 10-second timeout and retries once. It does not use cookies or credentials, and the user-agent is dsh-proxy-toggle/1.0. The README states that a direct connection to Google is usually unreachable in China; receiving a 204 indicates that the request was sent via the proxy, rather than silently falling back to direct connection. The page displays “Connectable · 204 · Latency” and does not show the exit IP or region.

If the test fails, the switch remains on and turns red, displaying the underlying error (e.g., connect ECONNREFUSED 127.0.0.1:7898), and will not silently switch back to direct connection.

System Layer Read-Only Hints

The settings page displays macOS system proxy and TUN routing in read-only mode. If utun is found to be handling traffic, it warns, “Turning off the switch does not mean true direct connection.”

Meaning of Turning Off the Switch

Turning off the switch reverts the proxy layer installed by the plugin, restoring the dispatcher and proxy environment variables as they were at startup. If a proxy is configured in ~/.dsh/.env, Harness may still use it after the switch is turned off; if Clash TUN is enabled, traffic may still be intercepted at the IP layer after the switch is turned off.

Installation and Enablement

Requires DSH Desktop (Electron). Choose any installation method:

  1. Install the external bundle on the sidebar Plugins page; repository address:
https://github.com/WosLovesLife/dsh-plugin-proxy-toggle
  1. In a chat, ask the agent to install the same address via plugin_manager’s install_bundle (the README also mentions using a local clone path, but this article does not cover the clone steps).

  2. When the CLI is available:

dsh plugin add https://github.com/WosLovesLife/dsh-plugin-proxy-toggle

After installation, refresh the page (⌘R / Ctrl+R); an Earth icon button should appear at the bottom of the sidebar.

The plugin runs with the permissions of the current DSH process. It is recommended to check the source code and MIT license on GitHub before installing. The proxy address is stored in plain text in the DSH profile configuration. If the address contains a username or password, please pay attention to the access permissions of the profile file.

Typical Usage

  1. On / Off: Click the sidebar Earth button or the switch in Settings → “Network Proxy”.
  2. Change Address: Go to Settings → “Network Proxy” → Proxy Address; the default is http://127.0.0.1:7897 (the README notes this is an example of the Clash Mixed port).
  3. Test: Click “Test Now”, or automatically test each time the switch is turned on.

Only HTTP/HTTPS proxies are supported; socks5:// will be rejected by the transport layer.

Suitable Scenarios and Notes

Suitable For: Developers who mainly use DSH Desktop on macOS, already have a local HTTP proxy (e.g., Clash Mixed), and need to quickly switch outbound paths within Harness while using a simple probe to verify “whether the proxy is actually effective.”

Compatibility (according to README):

  • Tested environment: DSH Desktop 0.2.2-rc.1 (macOS).
  • The host loads the built-in dsh-http-proxy and undici from process.resourcesPath/app.asar/dsh/node_modules, sharing the strategy with the launcher; running from source or npm CLI-installed DSH is not within the supported scope, and other DSH versions may also fail due to internal path changes.
  • Windows / Linux Desktop has not been tested; system layer hints rely on macOS scutil / netstat, and the item will simply not be displayed if they are missing.

Privacy: It only accesses google.com when the proxy is enabled or “Test Now” is clicked; system proxy and routing information are only read locally and are not uploaded. The two local HTTP endpoints /plugin/proxy-toggle/{state,action} only accept connections from the owner.

Known Limitations: Does not display the exit IP or region; existing child processes will not inherit new proxy variables.

Conclusion

dsh-plugin-proxy-toggle consolidates outbound proxy switching into the sidebar and settings page. It uses the Google 204 probe to distinguish between “going through the proxy” and “potentially still being affected by the environment or TUN,” and clearly does not modify Clash or system proxy settings. If you use DSH Desktop and rely on a local HTTP proxy, you can install it using the method mentioned above, and then verify the address and test results in the settings page.

  • Directory page: https://www.skillhub.cn/plugins/WosLovesLife/dsh-plugin-proxy-toggle
  • GitHub: https://github.com/WosLovesLife/dsh-plugin-proxy-toggle
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye