Preface¶
The DSH (DeepSeek Harness) Web GUI is typically accessed via a browser only on the local machine or within a local area network (LAN). To operate the same interface from a browser on a mobile phone, tablet, or another computer, common practices involve memorizing the LAN address or setting up a reverse proxy. Furthermore, DSH rotates the launch token upon every startup, causing remote bookmarks to easily become invalid.
The dsh-remote-access-proxy introduced below is published by community maintainer citydirector and categorized under admin-security. It runs a miniature reverse proxy within the DSH process: it provides an external entry point with a random path, uses HttpOnly cookies for access gating, and bridges with the DSH launch token on the proxy side, eliminating the need for remote users to re-enter the token after every restart. Configuration is centralized within the settings page card provided by the plugin.
What is this¶
dsh-remote-access-proxy is a web-side remote access proxy plugin for DSH. The entry point follows the format <address>:<port>/<random-path>/ (default listening port is 13337, bound to all network interfaces); upon first startup, it generates and saves a random path, generally requiring no additional configuration to function.
The plugin requires DSH 0.1.7-rc.1 or higher (the README notes testing on 0.2.0-rc.2 and 0.2.1-alpha.3). The current package version is 1.4.1 with an MIT license. Community directory page: skillhub plugin entry; Source code and documentation: GitHub Repository.
Core Functions¶
Reverse Proxy and Launch Token Bridging¶
The proxy forwards requests to the local DSH Web instance on the loopback interface (rewriting the Host to 127.0.0.1:<port> and stripping the Origin header). Remote users do not directly interact with the launch token which changes upon every startup: the proxy handles the token exchange and retains the dsh-auth-* cookie; if the upstream returns a 401, it discards the cookie and re-exchanges it.
Access Gating¶
- Random Path: The entry path is generated by the system’s CSPRNG and should be kept as secure as a password; the configuration page allows you to “Regenerate Path”, and the old address becomes invalid immediately upon saving.
- Optional Access Password: When enabled, a login page appears first; successfully logged-in devices are remembered via a signed
dsh_et_gatecookie for approximately 30 days (HttpOnly, SameSite=Strict; Secure flag enabled when TLS is active). Changing the password or path invalidates all devices. Five consecutive errors will temporarily lock the client address;<entry>/__rap/logoutallows logging out. - Allowed Client Addresses: Can be filled with IP, CIDR, or ranges; leaving it empty means no restriction (README suggests filling it as needed). “LAN and VPN only” can be used to fill in common private network segments with one click. Connections outside the list are dropped before data exchange; the configuration page displays the most recently rejected address. Local loopback is always allowed.
Configuration Page¶
Open Remote Access Proxy in the plugin list, then enter the Remote Access Proxy component underneath. The page displays the running status, failure reasons (e.g., port occupation, certificate loading failure), the Entry Address corresponding to each network interface (copyable), as well as the aforementioned switches and fields. After saving, the proxy restarts in-place without requiring a full DSH restart.
Optional TLS: Requires a .pfx certificate and password; the README indicates that plain HTTP is sufficient for home LAN / VPN scenarios, but enabling TLS or placing a Caddy, nginx, or Cloudflare Tunnel HTTPS reverse proxy in front is recommended for public exposure.
Installation and Activation¶
Graphical Interface (README Quick start):
- Sidebar Plugins → Add plugin, enter the repository address and enable the plugin:
https://github.com/citydirector/dsh-remote-access-proxy
- Open Remote Access Proxy in the plugin list, enter the corresponding component, check the top status and entry address, and click Copy.
Command Line (web profile):
dsh plugin --profile web add github:citydirector/dsh-remote-access-proxy
The README also mentions that you can pin the version using a tag, e.g., github:citydirector/dsh-remote-access-proxy#v1.4.0; while DSH is running, you can update via the configuration page or Plugins page, or use pnpm add with a different tag in the profile directory after stopping DSH.
After enabling the plugin, remember to turn on both the plugin master switch and the component switch; if the status cannot be read, the README troubleshooting table suggests checking these two locations.
Typical Usage¶
- Install and open the plugin on the local DSH as described above, copy the entry address provided by the configuration page, e.g.,
http://192.168.1.20:13337/k3x9q2m7p1zt/. - Open this full URL in a browser on another device within the same LAN (or connected VPN / Tailscale / ZeroTier, etc.); it can be bookmarked or added to the home screen.
- If source restriction is needed, fill in Allowed client addresses or click LAN and VPN only on the configuration page; set an Access password if required.
The README emphasizes: Some DSH settings can only be modified on the host machine’s local page (e.g., API keys), while remote pages allow normal session creation, chatting, and workspace selection; on version 0.2.0, the configuration page is only visible to the host machine, but starting from 0.2.1, the configuration page can be opened remotely, though one-click updates are still only provided on the host.
Use Cases and Notes¶
Suitable for: Users already using DSH behind a LAN, home VPN, mesh network, or self-hosted reverse proxy, who wish to access the Web GUI from a mobile phone or another computer using a fixed “address + secret path” without dealing with the launch token after every startup.
Notes:
- The plugin runs with the same process privileges as DSH; please review the source code and MIT license yourself before installation. Do not leak the entry address to the public internet without TLS or access control.
- If two DSH applications share the same
$DSH_HOME, they will compete for the same listening port; you must close one or change the port. - Remote
forbiddenerrors are mostly due to an incomplete path; connection resets are mostly due to not being added to the allowlist; plain textbad gatewayis mostly because the proxy cannot connect to the upstream DSH. The README suggests keepingupstreamHost/upstreamPortempty /0to follow the current instance.
Configuration items are written to the current profile’s cordis.patch.yml. Field descriptions can be found in config/cordis.patch.example.yml within the repository (e.g., enabled, listenPort, etc.).
Conclusion¶
dsh-remote-access-proxy consolidates “random path + optional password and IP whitelist + launch token bridging” into a DSH plugin, providing a copyable entry address via a single configuration page card. It is suitable for DSH users who need to use the Web GUI across multiple devices.