dsh-remote-access: Remotely Accessing Your Local DSH Web UI via a Tailscale Tailnet

Introduction

The daily use of DeepSeek Harness (DSH) is often tied to the local machine: the Web UI defaults to listening only on 127.0.0.1, so switching to a phone or tablet means you can’t continue with the same batch of sessions, models, and permission settings. Exposing DSH directly to the public internet is inappropriate; creating a controlled entry point within a tailnet is a more common practice.

Below is an introduction to the community plugin @game25011/dsh-remote-access (repository game25011/dsh-remote-access). It does not modify DSH’s own authentication logic; instead, under the premise that the local Web UI still only binds to loopback, it uses Tailscale Serve to expose the entry point to devices within the same tailnet, and provides a settings page and the /remote command to manage login links and Serve toggles.

What is This

@game25011/dsh-remote-access is released by maintainer game25011, current npm version is 0.4.2, license MIT. The plugin relies on a running DSH Web UI (desktop app or dsh web), and does not handle starting the Web service; the externally reachable path only goes through Tailscale (WireGuard, inside the tailnet), not Tailscale Funnel.

Runtime requirements: DSH >=0.2.2-rc.0 <0.3.0 (requires host to provide webServer, connection, commands services), Node >=20. The plugin has no extra runtime npm dependencies, the README states no telemetry; QR codes are vendored (MIT).

Core Capabilities

Upon activation, the plugin reads the local Web UI port, generates a login URL with a process-level token, writes it to $DSH_HOME/remote-access/url.txt, and executes:

tailscale serve --bg --https=<端口> http://127.0.0.1:<web端口>

On the command line side:

  • /remote: Prints the login link (including per-process token); if prerequisites are not met, it provides a readable error instead of silently failing.
  • /remote on / /remote off: Toggles the Tailscale Serve mapping.
  • When the application exits, the Serve mapping will be closed.

The Web side provides in Settings → Remote Access (Tailscale) (also written as “Remote Control (Tailscale)” in the Chinese README): link and copy, QR code for tablet scanning, Serve status and toggle, and trusted-host self-check.

Configurable items (in profile patch id: remote-access-link) include:

- id: remote-access-link
  config:
    serve: true          # manage tailscale serve on/off
    servePort: 443       # https port served to the tailnet
    publicUrl: ''        # default: https://<MagicDNS name>/ from tailscale status --json
    tailscalePath: ''    # default: platform autodetect / PATH
    statusTimeoutMs: 5000

When using --https=443, you need to enable HTTPS Certificates for the tailnet in the Tailscale admin console (Admin → DNS → HTTPS Certificates).

Prerequisites

The following three must be met simultaneously:

  1. DSH Web UI is running on the PC; the plugin only hooks into the existing Web UI, it does not start it for you.
  2. Tailscale is installed, logged in, and online on both the PC and phone/tablet within the same tailnet; the tailnet hostname must be added to DSH’s connection.trustedHosts (see next section).
  3. PC must stay on, awake, and DSH must not exit; the remote entry point becomes invalid when the PC sleeps, shuts down, or DSH exits.

Installation & Enablement

Install from npm (replace <profile> with your profile name):

dsh plugin --profile <profile> add @game25011/dsh-remote-access

Local directory installation:

dsh plugin --profile <profile> add /path/to/dsh-remote-access

Restart DSH after installation; the profile patch takes effect at startup.

Trusted Hosts (Required)

DSH’s browser trust fence only accepts loopback or addresses in connection.trustedHosts. The bundle patch can be injected via environment variable, for example:

DSH_REMOTE_TRUSTED_HOSTS=host.tailnet.ts.net,100.x.y.z

Or override in your own profile patch (applied after the bundle patch):

- id: connection
  config:
    trustedHosts:
      - host.tailnet.ts.net

If the public hostname does not appear in trustedHosts, /remote will print a warning.

Typical Usage

  1. On the PC, confirm that DSH Web UI and Tailscale are ready, and complete the trustedHosts configuration.
  2. After restarting DSH, execute /remote on the PC or copy/link/scan in the settings page, then open it in the phone or tablet browser that is logged into the same tailnet.
  3. Execute /remote off to temporarily close the remote entry point; execute /remote on again when needed.

Remote side sessions are still constrained by DSH’s original token/cookie and permission system; the README suggests using a lower-privilege preset for remote use (e.g., workspace-write with approval), and treating the printed link as a password (including the process-level login token). See the repository SECURITY.md for the threat model.

Suitable Scenarios & Notes

Suitable for: Running DSH on a personal PC, where the PC and mobile devices belong to the same Tailscale tailnet, and you want to continue with the same DSH instance on a phone/tablet without changing the 127.0.0.1 binding.

Notes:

  • The plugin runs with the current DSH process permissions; it is advisable to read the source code and MIT license before installation to evaluate risks yourself.
  • The repository states that code and documentation are produced with the participation of DeepSeek Harness agent, while real-device debugging and long-term maintenance are the responsibility of the user/maintainer (see AI-DISCLOSURE.md).
  • The DSH ecosystem is “everything is a plugin”; the SkillHub directory page is a community site and has no official affiliation with DeepSeek / Hypersphere.

Roadmap (listed in README, not committed to a schedule): Optional automatic revocation when idle; and non-Serve transport methods (explicit bind + custom proxy).

Conclusion

dsh-remote-access consolidates “local loopback Web UI + Tailscale Serve within the tailnet” into a reproducible path: the command line /remote and the settings page uniformly manage links, QR codes, and Serve status. For details, refer to the GitHub repository and the SkillHub plugin page.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye