dsh-lan-web-access: LAN Web Access Plugin for DeepSeek Harness

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

  1. Local Token-Free Access: On the computer where the plugin is installed, simply open a browser to use it without needing a Token.
  2. Password-Free SSH Tunnel Access: When accessing through an SSH tunnel, it is treated as local access—no Token, no password required.
  3. LAN Access (disabled by default): Independently listens on a port with access control via an allowlist and an admin password.
  4. Device Management: Supports adding devices to the allowlist, setting admin passwords, viewing the device status table, and kicking devices.
  5. Login Page States: Provides five login page states (normal, wrong password, locked, device not in list, not ready).
  6. Access Log: Records events such as login, rejection, and logout, retaining up to 200 entries.
  7. Runtime Checks & Safe Exit: Performs five checks at startup; if incompatible, automatically disables itself and returns control to the official authentication.
  8. One-Click Update: Supports checking for and updating to the latest version within the plugin settings.
  9. 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.

  1. Local Access on Host
    Open http://127.0.0.1:<main port> — no Token required.
  2. LAN Access
    Open http://<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.
  3. 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.

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

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

Xiaoye