dsh-qr-phone-login: QR Code Phone Login to the Same DSH

Introduction

The DeepSeek Harness (DSH) web interface is typically used for login and configuration within desktop browsers. To open the same deployed DSH instance on a mobile phone, common practices include copying links, manually entering addresses, or relying on environment-specific redirect methods. These steps are often cumbersome and prone to configuration errors regarding externally accessible HTTPS addresses.

Below is an introduction to the community plugin dsh-qr-phone-login (maintainer: yoggu, category: admin-security). It adds a Plugins → QR phone login page to the DSH Web interface. Logged-in users can display a QR code; after scanning it with a mobile phone, they can complete login on the same installation instance via DSH’s launch-token mechanism. The plugin is not responsible for HTTPS, DNS, Tailscale, or reverse proxies. It only streamlines “how to connect a phone to this DSH” into a reproducible process, provided you can already serve HTTPS externally.

What is this

dsh-qr-phone-login targets users already logged into DSH Web: it generates a QR code in the management interface pointing to your configured public HTTPS origin. Scanning the code with a mobile phone opens the same DSH instance and completes the login. The README defines its positioning as: implementing QR-code phone login on the public HTTPS origin already configured for the Harness.

The plugin is released under the MIT license. The version referenced in the current materials is v0.1.4. Interface text, descriptions, and Host status/error messages are in English, with no plugin-level language switching available.

Core Features

Verified via the README, the plugin currently offers the following capabilities:

  1. Web Admin Page: Adds a QR phone login entry under the Plugins menu in DSH Web.
  2. QR Code Display: Logged-in users can display a QR code on this page. The encoded content relies on DSH’s launch-token mechanism to open the same installation on a mobile device and complete login.
  3. publicOrigin Configuration: Sets the publicOrigin on the plugin page. The value should be the HTTPS origin actually accessed by the mobile phone (e.g., https://dsh.example.com), excluding paths or query parameters.
  4. Security Boundary Description: The SVG route for generating the QR is protected by DSH’s existing browser authentication and Origin validation. Launch tokens are not written into the plugin configuration, but are reusable within the process until the DSH process restarts.

Installation and Activation

Before installation, ensure your runtime environment matches the requirements in package.json: Node >= 22.19.0, DSH engine ^0.1.5-rc.2 || ^0.2.0-rc.1. If the active profile is not web, replace --profile web in the install and uninstall commands with your active profile.

The official recommendation is to install from the GitHub release with a tag:

dsh plugin --profile web add 'https://github.com/yoggu/dsh-qr-phone-login.git#v0.1.4'

If using a local source code directory link (requires the checkout to persist), the README flow is: checkout v0.1.4, run pnpm install, then execute dsh plugin --profile web add "link:$(pwd)" (adjust the path to your local machine).

After installation, restart DSH Web and refresh the page if necessary. Uninstall command:

dsh plugin --profile web remove dsh-qr-phone-login

Typical Usage

  1. Complete plugin installation and ensure your mobile phone can access your DSH external address via HTTPS (the plugin does not configure certificates or proxies for you).
  2. Log into DSH Web in a desktop browser and navigate to Plugins → QR phone login.
  3. Set publicOrigin to the origin actually used by your mobile browser, e.g., https://dsh.example.com.
  4. Display the QR code in a private environment, scan it with your phone to open, and complete login.

The README emphasizes: the mobile phone must be able to access the configured origin; if the origin does not match the actual external service, scanning the code will fail to connect to the expected instance.

Use Cases and Cautions

Suitable for: You have deployed a trusted DSH Web with a stable public or intranet HTTPS entry; you need to quickly “extend” an existing logged-in desktop session to a mobile phone within a personal or team-controlled environment without repeatedly manually constructing URLs.

Security (Must Read README):

  • Anyone who sees or photographs the QR code may log in with the same permissions; do not share screenshots, logs, or SVG responses.
  • The token in the QR is reusable until the DSH process restarts; if leaked, restart DSH to rotate the token and separately revoke any still-valid login sessions via DSH capabilities (default cookie validity can be up to 30 days).
  • The plugin runs with current DSH process privileges; review the source code and MIT license before installation, and use only with installations and users you trust.

The DSH ecosystem emphasizes “everything is a plugin”; the community directory site SkillHub has no official affiliation with DeepSeek / High-Flyer. The installation and behavior described here are based on the plugin repository’s README.

Links

  • Directory Page: https://www.skillhub.cn/plugins/yoggu/dsh-qr-phone-login
  • GitHub: https://github.com/yoggu/dsh-qr-phone-login

Following the steps above, you can use a controlled QR code display to log a mobile phone into the same DSH instance as your desktop, provided you have an existing HTTPS entry. Before use, please ensure the publicOrigin is configured to match the real external address and adhere to the security tips in the README.

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

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

Xiaoye