Preface¶
The default Web access method for DeepSeek Harness (DSH) requires the Token link printed at startup, and it only listens on local addresses. In local development or multi-device collaboration scenarios, this approach is not sufficiently convenient. The dsh-lan-web-access plugin adds a layer of logic before DSH’s login check, providing a Token-free channel for local machines, and independently starts a LAN port, allowing multiple devices to simultaneously access the same DSH host via a browser in LAN or remote networking environments.
Plugin Positioning¶
This is a networking tool plugin maintained by Colin900726, released under the MIT open-source license. It does not replace or remove any components of DSH; when incompatible, it automatically falls back to the official authentication mechanism.
Core Features¶
- Local Token-Free Access: On the computer where the plugin is installed, simply open a browser to use it without needing a Token.
- Password-Free SSH Tunnel Access: When accessing through an SSH tunnel, it is treated as local access—no Token, no password required.
- LAN Access (disabled by default): Independently listens on a port with access control via an allowlist and an admin password.
- Device Management: Supports adding devices to the allowlist, setting admin passwords, viewing the device status table, and kicking devices.
- Login Page States: Provides five login page states (normal, wrong password, locked, device not in list, not ready).
- Access Log: Records events such as login, rejection, and logout, retaining up to 200 entries.
- Runtime Checks & Safe Exit: Performs five checks at startup; if incompatible, automatically disables itself and returns control to the official authentication.
- One-Click Update: Supports checking for and updating to the latest version within the plugin settings.
- Dual-Mode & Dual-OS: Supports both Desktop and Web modes, as well as macOS and Windows systems.
Installation & Activation¶
Ensure that DSH is installed on your computer. Install via command line:
# Desktop mode
dsh plugin --profile desktop add dsh-lan-web-access@latest
# Web mode
dsh plugin --profile web add dsh-lan-web-access@latest
Alternatively, in the DSH interface: Settings → Plugins → Add Plugin, enter the package name dsh-lan-web-access.
After installation, go to the “Plugins” page to confirm that the plugin toggle is enabled, and configure it in “Settings → LAN Web Access”.
Typical Usage¶
The DSH default port is the main port (Desktop 19387, Web 3080), and the default LAN port is the main port + 1.
- Local Access on Host
Openhttp://127.0.0.1:<main port>— no Token required. - LAN Access
Openhttp://<host IP>:<LAN port>. If the device is not in the allowlist, you must first add the device IP to the allowlist in the host settings and enter the admin password. - SSH Tunnel Access
Establish an SSH tunnel on the accessing machine:
ssh -N -L <main port>:127.0.0.1:<main port> <host username>@<host IP>
Then access `http://127.0.0.1:<main port>` — no password required.
Notes & Security¶
- Network Security: LAN mode uses HTTP, with credentials transmitted in plaintext; devices on the same network segment may capture packets. It is recommended to use this only on trusted internal networks or when using remote networking solutions (such as Tailscale).
- Configuration Security: Passwords are stored only as scrypt hashes, config file permissions are set to 0600, and they will not appear in logs or conversations.
- Read-Only Limit: LAN devices can only view the “Connections” and “About” sections of settings; they cannot modify configurations or passwords.
- Password Reset: If the admin password is forgotten, the config file must be deleted (
~/.dsh/remote-access.json, slightly different path on Windows) and DSH restarted. - Conflict Warning: Do not run Desktop and Web modes simultaneously on the same computer, otherwise settings may overwrite each other.
Conclusion¶
This plugin addresses the access pain points of DSH in local and multi-device scenarios, providing a complete solution ranging from local login-free access to secure LAN management. For code and documentation, see GitHub.