Preface¶
The DeepSeek Harness (DSH) web interface only listens on the local machine at 127.0.0.1 by default. For security reasons, upstream does not allow binding the web service directly to 0.0.0.0, otherwise it would expose the remote code execution surface to the LAN. If you want to view sessions, modify settings, or follow tasks from a phone browser on the same Wi-Fi, the common approaches are port forwarding or building your own reverse proxy. You also have to deal with the browser session authentication introduced in DSH 0.1.5, and mobile devices easily get stuck on dsh web authentication required.
Below we introduce the community plugin dsh-mobile-access (maintainer: MacilyDots, category: client). Without modifying the DSH source code, it starts a standalone HTTPS gateway inside the DSH process, uses a PIN and reverse proxy to route access to the local web port, and bridges DSH’s browser session handshake, so a phone can get started by scanning a QR code.
What is this¶
dsh-mobile-access is a mobile access plugin for DeepSeek Harness: within the same LAN, use a phone to scan the QR code on the settings page (or manually enter the address) to access a running DSH from outside the local browser.
The implementation draws on the secure gateway concept of the community project dsh-mobile, but narrows the scope to “LAN + mobile browser”: it does not include remote tunnels like Tailscale/cpolar/FRP, nor a standalone Android client; the code is visible in the plugin repository and you install and audit it yourself.
- Directory page: https://www.skillhub.cn/plugins/MacilyDots/dsh-mobile-access
- Source code: https://github.com/MacilyDots/dsh-mobile-access
- Current package version: 0.2.0 (MIT license)
- Disabled by default; if it was enabled last time, it automatically resumes the enabled state after DSH restarts (still subject to PIN and certificate cache constraints)
Core mechanism and security boundary¶
The plugin does not modify the DSH web server; the DSH web always stays on 127.0.0.1. Inside the DSH process it will:
- Start an HTTPS gateway listening on
0.0.0.0:<port>(self-signed certificate); - Reverse proxy requests to
127.0.0.1:<DSH webServer port>; - Perform PIN authentication on the gateway side: the mobile browser must enter a PIN on first opening; after passing, the gateway sets an httpOnly session cookie, and subsequent requests (including WebSocket) must be authenticated;
- Rewrite
Host/Origin/sec-fetch-sitewhen forwarding, so that DSH’s browser trust boundary still treats/apiand SSE/WebSocket as same-origin; - Bridge DSH ≥ 0.1.5 browser session authentication: on the server side, use the in-process startup token to call
connection.authenticatedUrl(), exchangeGET /?token=…for thedsh-auth-<authority>cookie and cache it, then inject it into subsequent forwarding; the token is not sent to the phone. When the session becomes invalid (restart, port change, cookie expiration), the gateway receives a 401, clears the cache, re-exchanges, and retries once.
Starting with 0.2.0, the gateway PIN session token is persisted, so after a DSH restart the phone does not need to re-enter the PIN; concurrent unauthenticated requests to the DSH session cookie exchange are merged into a single one.
Security boundary (emphasized in the README original): once enabled, the gateway is visible on the LAN and relies only on the PIN for protection. It is recommended only for trusted home or office LANs, and the PIN must be sufficiently strong; it cannot replace a full security solution when exposed to the public internet.
Dependencies (runtime): selfsigned (self-signed certificates), qrcode (QR code for the access address), http-proxy (HTTP/SSE/WebSocket passthrough).
Installation¶
The installation commands follow the repository README. Replace <profile> with your DSH profile name:
# Install from GitHub (recommended)
dsh plugin --profile <profile> add github:MacilyDots/dsh-mobile-access
# Or install from a local clone
dsh plugin --profile <profile> add file:<absolute path to this repository>
dsh --profile <profile>
dsh plugin add installs via pnpm add and writes to the profile’s bundles layer for plugins that declare dsh.bundle. You must restart DSH after installation for the plugin to load.
The plugin runs with the permissions of the current DSH process; before installing, read index.js, client.js, and LICENSE yourself to confirm they meet your trust and compliance requirements.
Typical usage¶
After the installation and restart above, follow these steps to enable LAN access:
- Open the DSH settings page and go to the Mobile access card.
- Set an access PIN of at least 4 digits and click Enable LAN access; the default port is 3443 and can be changed.
- The panel displays the access address (of the form
https://<local LAN IPv4>:<port>) and the QR code. - Connect the phone to the same LAN, scan the code with the system browser or manually enter the address.
- First visit: the browser prompts you to trust the self-signed certificate (confirmation required); then enter the PIN to operate the DSH web.
- When done, click Disable mobile access on the settings page to turn off the gateway.
Notes:
- The self-signed certificate is generated on first enable and cached at
$DSH_HOME/mobile-access/cert.pemandkey.pem(2048-bit RSA, valid for 400 days). “Certificate not trusted” on the mobile browser is expected; the “continue visiting” entry differs across browsers (on iOS it is usually “Show details → Visit this website”). - If you upgrade to DSH ≥ 0.1.5 and the phone still shows
dsh web authentication required, you should use the 0.2.0 gateway logic that includes session bridging; no extra steps are needed on the phone side. - Only IPv4 LAN addresses are supported; after switching networks you typically need to re-enable it (or rely on the persistence policy after a DSH restart).
The local browser can also access the control API via the DSH loopback web server (not through the external gateway):
GET /dsh-mobile-access/status— status (including the dataURL of the QR)POST /dsh-mobile-access/enable— body:{ pin, port? }POST /dsh-mobile-access/disablePOST /dsh-mobile-access/pin— body:{ pin }
Runtime state and certificate directory: $DSH_HOME/mobile-access/.
Use cases and limitations¶
Suitable for: DSH already running on a desktop or laptop, wanting to temporarily view or operate it from a phone browser on the same Wi-Fi, and accepting the “PIN + self-signed HTTPS + trusted LAN” security model.
Not suitable for or not implemented: public internet exposure, device pairing, remote tunnels, standalone Android app — these belong to broader solutions like dsh-mobile; this plugin deliberately does not do them.
Limitations (listed in the README):
- IPv4 LAN only;
- After switching networks you need to enable again (or rely on the recovery behavior after a restart to re-confirm);
- No device pairing or remote tunnel capabilities of dsh-mobile.
Conclusion¶
dsh-mobile-access breaks apart the conflict between “DSH only listens on the local machine” and “the phone wants to use a browser over the LAN” by using a standalone HTTPS gateway, PIN, reverse proxy, and DSH 0.1.5+ session bridging; the DSH web remains bound to 127.0.0.1. If your need is exactly scan-to-access within a trusted LAN, you can install with the official command and explicitly enable it in the settings.
- Community directory: https://www.skillhub.cn/plugins/MacilyDots/dsh-mobile-access
- GitHub: https://github.com/MacilyDots/dsh-mobile-access
The DeepSeek Harness ecosystem emphasizes “everything is a plugin”; directories such as SkillHub are community-maintained and have no official affiliation with DeepSeek / High-Flyer. Before choosing a third-party plugin, verify the source code, license, and your own security policy.