AI Agent Hub
Back to plugins
🖥️

dsh-auth-proxy

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install wxyzh/dsh-auth-proxy

Paste the following prompt into your AI chat to install this plugin:

Open a terminal in DeepSeek Harness and run dsh plugin install wxyzh/dsh-auth-proxy to install the plugin; the source code is available at https://github.com/wxyzh/dsh-auth-proxy .

About this plugin

DSH Web GUI ships without an authentication layer, and the webserver listens on loopback by default. Exposing the port to a LAN feels risky, and patching source code to add a password is a maintenance burden. dsh-auth-proxy places a static-token login wall in front of dsh web: the host side holds an extra listening socket, unauthenticated requests see a built-in login page, and once the token is verified a stateless HMAC session cookie is issued while all HTTP and WebSocket traffic is forwarded to the original 3080 port over loopback. Removing the plugin restores everything; the webserver never changes.

Capabilities span everyday auth to experience customization. Token comparison uses SHA-256 with timingSafeEqual to prevent timing side-channels; session cookies are stateless and survive restarts, while changing the token takes every session down instantly. CIDR IP allowlists, per-IP fail lockout, and real-time hot-reloadable configuration are all included. The brand layer, when enabled, rewrites the page title, favicon, PWA manifest, and sidebar visuals on the proxy path only, leaving direct loopback access to 3080 untouched. The plugin also handles /remote prefix restoration for web-all remote-web-ui compatibility, a two-step interaction pattern for the settings dialog on narrow screens, and transform containing-block neutralization, so the settings panel actually works on mobile.

It is well suited for teams running DSH on a LAN who want a lightweight login gate without deploying a full SSO stack, and for individuals who want a rebranded Web UI with zero backend modification. Listening addresses are restricted to loopback and private ranges; binding to wildcard or public IPs is rejected at both save time and startup. External access should front the proxy with a TLS-terminating reverse proxy.

Use Cases

  • Add a token-based login gate for DSH Web GUI on a shared LAN
  • Rebrand the Web UI title, favicon, and sidebar without touching source code
  • Make the settings dialog usable on narrow mobile screens

Best For

  • Teams running DSH on a LAN who want a lightweight login gate for colleagues
  • Individuals who want to secure the Web GUI with zero DSH source changes
  • DSH users needing a rebranded front-end without maintaining an extra client package