dsh-plugin-mobile-ui: Remotely Operating Local DeepSeek Harness via Mobile Phone

Introduction

The DeepSeek Harness (DSH) web interface is designed for desktop browsers by default. When running dsh web locally, accessing it from a mobile device on the same LAN often requires manually setting up a reverse proxy, domain, or VPS. If you simply want to view sessions or issue commands while commuting or away from your desk, the common solution involves adding another layer of tunneling plugins and authentication, leading to scattered components.

Here we introduce the community plugin dsh-plugin-mobile-ui (maintained by dexwebcode). Classified under the “Client” category in the DSH plugin directory, it bundles password gates, public tunnels, and a mobile UI into a single package. Once embedded in local DSH, it automatically starts web services and tunnels (ngrok by default, switchable to Cloudflare Tunnel), provides a React PWA to the outside world, requires no custom domain or VPS, can be added to the phone’s home screen, and includes login protection and WebSocket streaming capabilities.

What is this

dsh-plugin-mobile-ui is a mobile access plugin for DeepSeek Harness. After installing to the DSH web profile, it adds a narrow-screen adaptation layer on top of the official Web UI. It also embeds a relay (password and TLS gate) and a tunnel (publishing public HTTPS links via ngrok or cloudflared). Desktop wide screens (width greater than 1023px) continue to use the native interface; the mobile layer is only enabled on narrow screens.

The license is MIT (see repository README). The package version referenced in current materials is 3.6.0 (package.json).

Core Features

The following capabilities are derived from the repository README and package.json descriptions.

Public Access & Tunneling

  • Automatically creates public HTTPS links without relying on self-purchased domains or VPS.
  • Uses ngrok for tunneling by default; if ngrok is unavailable (e.g., ERR_NGROK_9040), you can set the environment variable DSH_TUNNEL_PROVIDER=cloudflared before starting DSH and use the cloudflared binary from PATH or ~/.dsh/bin/ (Cloudflare option requires no account).
  • Supports configuring multiple ngrok authtokens (with names); if monthly traffic is exhausted (ERR_NGROK_725), it can automatically switch to the next one, or you can switch manually in settings. The interface provides an ngrok traffic bar and a manually adjustable baseline counter.

Security & Mobile Connection

  • The public entry requires a custom password with a minimum length of 10 characters.
  • The “Mobile Connection” card provides a QR code and a one-time 8-digit connection code (valid for approximately 24 hours); scan the code or open the public link and enter the password to use it. The login cookie is valid for about 30 days.
  • The relay applies brotli compression to static resources and combines it with Service Worker caching to reduce repeated tunnel traffic.

Mobile Interface (PWA)

Additions to the official DSH Web UI on narrow screens:

  • Top bar buttons to open the sidebar session list and create new sessions;
  • Top status and statistics bar, loading indicators when switching sessions;
  • “Scroll to latest” button above the input box;
  • Keyboard and viewport handling, standalone PWA manifest and icons, allowing installation to the home screen.

Others

  • The Mobile UI section is placed first in the settings navigation; ngrok tokens, public links, connection codes, and passwords are all configured via the interface, requiring no config file edits.
  • If the page fails to load or requests fail within 12 seconds, the interface prompts that accessing DeepSeek from certain regions may require a VPN (regional hint from README).

Environment & Dependencies

Requirement Description
DeepSeek Harness Installed and able to start via dsh web
Node.js ^22.19.0 or >=24 (package engines)
ngrok authtoken Free token for default tunneling
cloudflared Required when choosing Cloudflare tunneling
pnpm dsh plugin manages profile packages via pnpm; must be in PATH

Tunnel binaries (ngrok or cloudflared) must be located in PATH or ~/.dsh/bin/ (Windows example: ~/.dsh/bin/ngrok.exe).

Installation & Activation

The plugin is installed into the DSH web profile. The README provides several methods; choose one.

From npm (Plugin Hub one-line install):

dsh plugin --profile web add dsh-plugin-mobile-ui

From GitHub:

dsh plugin --profile web add github:dexwebcode/dsh-plugin-mobile-ui

The repository already includes build artifacts (lib/, vendor/relay.js), so it is ready to use when installed from a git source.

From a local package file:

Run npm run build or npm pack in the cloned repository, then install the generated dsh-plugin-mobile-ui-<version>.tgz:

dsh plugin --profile web add "/absolute/path/dsh-plugin-mobile-ui-3.6.0.tgz"

You can also add the GitHub repository or tarball in the DSH Web interface under Settings → Plugins.

After installation, run dsh web and open Settings. If Mobile UI appears near the top of the list, the plugin has loaded into the current profile; if the section is missing, check if --profile web matches the running profile.

Typical Usage

The README “Quick Start” flow can be summarized as follows:

  1. Complete the installation as described in the previous section.
  2. Start the Harness:
dsh web
  1. Open Settings → Mobile UI in the local Web UI.
  2. Paste the authtoken from the ngrok dashboard into the ngrok token field and save; you can add multiple “name + token” pairs via “Add token”.
  3. Wait for the public link to appear in the Tunnel card.
  4. Set a password of at least 10 characters in Login Password (must be completed before sharing the link).
  5. Scan the QR code in the Mobile Connection card with your phone, or open the public link and enter the 8-digit code shown on the screen, then enter the password.

If you need to switch to a Cloudflare tunnel, set the following before starting DSH:

export DSH_TUNNEL_PROVIDER=cloudflared

Confirm cloudflared is available, then execute dsh web.

Scenarios & Notes

Suitable for: Developers running DSH locally who want to operate the same instance via mobile phone on any network; those who do not want to maintain a separate domain, VPS, or extra tunneling plugin, and can accept ngrok free quotas or self-hosted cloudflared.

Notes:

  • The plugin and DSH belong to the same local process ecosystem: dsh plugin installs packages via pnpm within the profile directory, and plugin logic runs with the current DSH process permissions. Before installation, it is recommended to read the GitHub source code and the MIT license, and assess the risks of public links and password policies yourself.
  • The public exposure is the local Web UI protected by the relay, which is still equivalent to remotely controlling the local Harness. Do not use weak passwords or leak QR/connection codes for long periods.
  • The community plugin directory (e.g., entry on SkillHub) is maintained by the community and has no official affiliation with DeepSeek / High-Flyer; DSH itself follows the “everything is a plugin” extension approach, and this plugin is a supplementary client-oriented path within it.

Conclusion

dsh-plugin-mobile-ui consolidates tunneling, password gates, and the mobile PWA layer into a single dsh plugin --profile web add … installation. By configuring ngrok (or cloudflared) and the password in settings, you can manage local DSH via mobile phone. Refer to the repository README for further details on parameters and security sections.

  • Plugin Directory Page: https://www.skillhub.cn/plugins/dexwebcode/dsh-plugin-mobile-ui
  • Source Code & Documentation: https://github.com/dexwebcode/dsh-plugin-mobile-ui
羽毛球分组比赛记分
小程序二维码

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

Xiaoye