dsh-remote: Enabling Remote Network Access to DeepSeek Harness

The dsh web command in DeepSeek Harness (DSH) binds the web server to the local loopback address by default, which limits the scope of access. When access to the web interface is required on the same machine or from other network nodes, the binding address needs to be modified. The dsh-remote plugin achieves this by changing the binding address from 127.0.0.1 to 0.0.0.0.

What is it

dsh-remote is a plugin maintained by anthony1x6000. By modifying the configuration layer, it switches the DeepSeek Harness web server’s listening address from the local loopback (127.0.0.1) to all network interfaces (0.0.0.0), thereby enabling remote network access.

Core Features

  • Enables remote network access for dsh web.
  • Binds the web server to 0.0.0.0.
  • Automatically discovers non-internal IPv4 addresses within the local area network (LAN).
  • Generates LAN access URLs containing authentication tokens.
  • Provides a verification test (selfcheck).

Installation and Activation

Before installation, confirm that the current profile includes the webserver line (e.g., the default web profile).

  1. Execute the installation command:
    dsh plugin --profile web add "github:anthony1x6000/dsh-remote#main"
  1. Verify that the configuration has taken effect (no restart required):
    dsh --profile web --dump-config | grep -B 1 -A 4 webserver
  1. Restart dsh web. Package installations require a restart to take effect; repository plugins do not.

Typical Usage

After installation and restart, simply launch dsh web:

dsh web

Upon successful startup, the terminal will output the current access address and the LAN access address, including the authentication token:

dsh web: http://127.0.0.1:3080?token=... (LAN: http://192.168.x.x:3080?token=...)

If you prefer not to modify the persistent configuration file, you can start it using a temporary patch parameter:

dsh web --patch <path-to>/cordis.patch.yml

Use Cases and Notes

  • Profile Restriction: The plugin must be installed into the web profile, and that profile must contain the webserver line. Installing it on a profile that only contains the base bundle will result in an error.
  • Environment Dependency: The installation process requires pnpm.
  • Restart Requirement: Package installations require a process restart to load the new configuration layer.
  • License: MIT License.

Summary

dsh-remote solves the issue of the DSH web interface being inaccessible from the LAN through a minimal configuration change. It is suitable for scenarios where you need to debug DeepSeek Harness on a local development machine or from other devices within the same LAN.

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

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

Xiaoye