Preface¶
The DeepSeek Harness (DSH) Web interface requires a login token by default; the Desktop version uses IPC and often does not print that token-bearing link to the console, and the token is process-level, changing upon restart. If you simply want to connect to the DSH on your computer using your phone while traveling or commuting, common approaches include SSH tunnels, intranet penetration (NAT traversal), or self-hosted reverse proxies—all of which add an extra layer of operations overhead and may involve third-party relays.
dsh-tailscale-remote is a community-maintained DSH plugin: while DSH is running, it utilizes the locally logged-in Tailscale account to expose the Web GUI to a tailnet HTTPS address via Tailscale Serve. When DSH exits normally, it removes the routes and trust entries created during that session. No relay services other than those by the plugin author are introduced, provided your local Tailscale is already set up.
What is this¶
- Name:
dsh-tailscale-remote(consistent with the npm / plugin package name) - Maintainer: Ckarefulon
- Category: Networking tool (Community directory SkillHub Plugin Page)
- Positioning: For use with DeepSeek Harness; it does only one thing: “connect to local DSH via mobile phone anytime, anywhere.”
For source code and instructions, see GitHub: Ckarefulon/dsh-tailscale-remote. The package version in the current materials is 0.6.4, License MIT. The plugin is loaded within the DSH process and has the same permissions as the current dsh; please review the source code and license yourself before installing.
Core Features¶
On Startup¶
- Use
tailscale status --jsonto checkBackendStateand confirm that the Tailscale backend is actually running (not just checking the exit code oftailscale up). - Proxy
https://<your-machine>.<tailnet>.ts.net:7259(default port, configurable) to the port actually monitored by the DSHwebServer. - Add
<your-machine>.<tailnet>.ts.net:7259to the DSH/apiHost trust list (tailscale servepreserves the client Host header; otherwise, the mobile phone can open the page but will get a 403 when sending messages). - Generate a mobile-friendly link, write it to the status file, and log it.
- Lite mode is enabled by default: it only affects the first-screen plugin size for mobile pages rendered via HTTP (materials claim it reduces gzip size from ~5.3 MB to ~1.1–1.3 MB); desktop Electron is unaffected.
On Exit¶
Rollback the changes made during this run: remove the port 7259 route and remove the corresponding trust entry. tailscale down is only executed if Tailscale was started by DSH. If there is already a route pointing to a previous crashed instance of this process on port 7259, the plugin will claim it and remove it upon exit.
Stable Login Entry Point¶
Without a token, the DSH Web interface only displays dsh web authentication required; .... The plugin provides an entry point that remains unchanged across restarts:
https://<your-machine>.<tailnet>.ts.net:7259/remote/<persistent-key>
Accessing this URL triggers a 302 redirect to the tokenized address and sets a cookie; afterwards, you can directly open https://<machine>.<tailnet>.ts.net:7259/. The default cookie validity is about 10 years (cookieMaxAgeDays defaults to 3650), which is more suitable for “connecting via mobile anytime” compared to the DSH default of 30 days.
Settings Page & Status File¶
In DSH Settings → General → Mobile Connection, you can copy the link; it supports “Rotate Key” (by default, this also revokes old sessions). If not ready, it will prompt the reason (e.g., Tailscale is not running).
Default status file path:
cat ~/.dsh/tailscale-remote.json
Fields include loginUrl (stable entry), url, plainUrl. For Windows PowerShell:
Get-Content "$env:USERPROFILE\.dsh\tailscale-remote.json"
Other Documented Optimizations¶
- Lite Mode (
lite, defaulttrue): Modifies the renderedindex.htmlto reduce preloads via a whitelist; a switch for lite/full mode is available at the bottom of the sidebar (takes effect after refresh). If the whitelist fails to match, the full page is served and logged. - WebSocket Compression (
websocketCompression, defaulttrue): Lazily enablespermessage-deflatefor/api/remote.muxto reduce traffic for mobile clients fetching history and sessions.
Prerequisites¶
- Tailscale is installed and logged in on the local machine.
- HTTPS Certificates has been enabled for this tailnet in the Tailscale admin console (DNS → HTTPS Certificates). If not enabled,
tailscale servewill fail, and the log will indicate this.
Installation & Enablement¶
dsh plugin --profile <your-profile> add dsh-tailscale-remote
For development installation from a local directory:
dsh plugin --profile <profile> add -w /path/to/dsh-tailscale-remote
After installation, restart DSH (new plugins require a restart to load). After that, every time DSH starts, the plugin will execute automatically according to the configuration.
Common configuration options (see README for the full table):
| Field | Default | Description |
|---|---|---|
enabled |
true |
If disabled, the plugin does nothing |
httpsPort |
7259 |
tailnet HTTPS port |
loginRoute |
true |
Whether to register /remote/<key> |
revokeSessionsOnRotate |
true |
Whether to revoke all logged-in sessions when rotating the key |
teardownOnExit |
true |
Whether to rollback routes and trust entries on exit |
lite |
true |
Lite plugin set for mobile pages |
Typical Usage¶
The two simplest steps:
- Open DSH on the computer → Settings → General → Mobile Connection, and click “Copy”.
- Open the link once in the mobile browser, save it as a bookmark or add it to the home screen; afterwards, you can directly use the
loginUrlor the clean address.
If the link is leaked: Rotate Key (by default, this kicks all devices, and the client automatically re-issues the cookie). If you only want to change the link without kicking devices, you can set revokeSessionsOnRotate: false (note that if the link was leaked and the other party is already logged in, the old cookie may still be valid; please weigh the risks yourself).
If a stable login route is not needed, you can set loginRoute: false.
Use Cases & Cautions¶
Suitable for: Users already using Tailscale who want to access local DSH via mobile phone on any network, and want the Serve route on the tailnet to be removed when DSH is closed.
Cautions:
- The persistent key in the login link is on the same level as the DSH token and should be treated as a secret; it relies on the tailnet and HTTPS certificates and does not replace DSH’s own authentication model.
- The README states that the DSH 0.2.0-rc.2 Web frontend does not have a dedicated mobile shell, but daily viewing of sessions and sending messages work well under the flexible layout; if drawer sidebars etc. are needed, a separate client plugin must be written.
- The community plugin directory and DeepSeek / High-Flyer have no official affiliation; the DSH ecosystem is “everything is a plugin,” and this package is a third-party contribution.
Conclusion¶
dsh-tailscale-remote integrates “Tailscale Serve + Host Trust + Persistent /remote Login + Optional Mobile Lite Page” into a single DSH plugin, solving the pain points of the Desktop version not printing Web login links and tokens becoming invalid after restart. Please refer to the README for installation commands, and see the repository for details and issues.
- Directory Page: https://www.skillhub.cn/plugins/Ckarefulon/dsh-tailscale-remote
- GitHub: https://github.com/Ckarefulon/dsh-tailscale-remote