Preface¶
The default web profile of DeepSeek Harness (DSH) typically requires local access. If you need to access the default DSH web profile remotely and it serves only a single user, you can use dsh-auth-remote. It runs inside DSH, securing browser routes, APIs, streams, and WebSockets.
What is this¶
dsh-auth-remote is a single-user remote authentication plugin designed for DeepSeek Harness (DSH). It is maintained by ChenLuoi and licensed under the MIT License.
It solves the authentication problem for single-user remote access, supporting passwords, TOTP (Time-based One-Time Passwords), and one-time backup codes, while providing revocable sessions.
Core Features¶
- Authentication Methods: Supports passwords, TOTP, and one-time backup codes.
- Session Management: Supports session revocation. Sessions have a fixed default lifespan (168 hours) and survive service restarts.
- Access Control: Secures browser routes, APIs, streams, and WebSockets.
- Management Tools: Provides CLI management commands (initialization, status query, password reset, TOTP reset, session revocation).
- Ecosystem Integration: Supports PWA manifest integration and automatically declares native bridge authorization.
Installation and Activation¶
Before installation, ensure the DSH version is within the supported range (0.1.7-rc.1 to 0.2.1-alpha.3). Use the following commands to install the plugin to the default web profile:
dsh --version
dsh plugin --profile web add dsh-auth-remote@0.1.9
dsh plugin --profile web list
Configuration and Startup¶
Starting the Service¶
When starting the web service, the plugin automatically derives the root path from the listener. If publicUrl is not configured, simply access the listen address directly.
dsh web --no-open --port 13090
After startup, please check the /auth-remote/ready endpoint to ensure the service is ready. If publicUrl is not explicitly configured, the plugin generates the root path based on the actual listen protocol, address, and port.
Configuring Public Access (Optional)¶
To configure a public HTTPS entry point, you need to set publicUrl, host, and port. DSH 0.2.1-alpha.2 and 0.2.1-alpha.3 also support native IPv6 and TLS pairing configurations.
Note: Setting the URL does not configure proxy routing or TLS. The host configuration trusted by the CLI is preserved, but external public origin and login checks remain in effect.
Account Management¶
Initializing the Account¶
For first-time use, you need to initialize the account under the same default web profile:
dsh plugin --profile web exec dsh-auth-remote init --lang en
The system will prompt for a username and password (password length 12-256 characters, not echoed on the command line). The first password login requires setting up TOTP by default. During initialization, 10 one-time backup codes will be displayed; each code can only be used once, and the list cannot be recovered later.
Common Management Commands¶
- View Status:
dsh plugin --profile web exec dsh-auth-remote status --lang en
Use the `--json` parameter to obtain machine-readable status.
- Reset Password:
dsh plugin --profile web exec dsh-auth-remote reset-password --lang en
- Reset TOTP:
dsh plugin --profile web exec dsh-auth-remote reset-totp --lang en
- Revoke Sessions:
dsh plugin --profile web exec dsh-auth-remote revoke-sessions --lang en
All the above mutating commands require interactive confirmation.
Notes¶
- Profile Isolation: Account state belongs to the default web profile and is not shared with other profiles.
- TOTP Enabled by Default: The default configuration is
requireTotp: true; TOTP must be set up during the first password login. - Version Compatibility: The plugin supports DSH 0.1.7-rc.1 through 0.2.1-alpha.3. Native IPv6/TLS features are only available in 0.2.1-alpha.2 and 0.2.1-alpha.3.
- Resource Access: PWA manifests and favicons are readable before login, but business pages and APIs still require authentication.
- Capability Check: If DSH lacks the necessary WebServer/Connection APIs, the plugin will indicate that authentication is unavailable via diagnostics.
Ecosystem Background¶
DSH’s design philosophy is “Everything is a plugin.” This plugin is maintained by community developers and is independent of DeepSeek or High-Flyer (the official entities); it is one of the tools in the DSH ecosystem.