DeepSeek Harness plugin

dsh-plugin-auth-webserver

DeepSeek Harness plugin providing HTTP Basic Authentication, Web UI Settings Card, remote IP access, and Web Cryptography UUID polyfill for self-hosted server deployments.

Jump to install

Source facts

Repository
kolawong/dsh-plugin-auth-webserver
Latest update
Aug 21, 2026
Category
UI Enhancements
GitHub stars
2
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/kolawong/dsh-plugin-auth-webserver
Plugin: dsh-plugin-auth-webserver
Author: kolawong

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.mdSource · read only
README language

<p align="center"> <img src="assets/hero.png" alt="DeepSeek Harness Web Authentication Plugin" width="100%"> </p>

<div align="center">

dsh-plugin-auth-webserver

![GitHub license](LICENSE) ![GitHub stars](https://github.com/kolawong/dsh-plugin-auth-webserver/stargazers) ![DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)

Native Web authentication bundle for DeepSeek Harness (DSH). Give your self-hosted deployment a DSH-styled web login page, cookie sessions, Basic Auth fallback, a Web UI settings card, and a Web Crypto polyfill — in English and Simplified Chinese.

简体中文 | English

</div>

---

Features

  • DSH-themed web login page

- Replaces native browser authentication popups with a dark, glassmorphism login interface matching DeepSeek Harness's design system. - Bilingual (English / Simplified Chinese, following the browser's language), password show/hide toggle, error animations, Enter-to-submit, responsive on mobile and desktop.

  • HMAC cookie sessions and logout

- Issues 30-day cryptographically signed HMAC session tokens on login. - Dedicated /api/auth.logout endpoint and a Web UI logout button.

  • Web GUI settings card

- Live configuration in the DSH Web UI (Settings -> Plugins -> Web authentication). - Hot-updates credentials in memory instantly and persists them to a plugin-owned state file under $DSH_HOME/plugins/dsh-plugin-auth-webserver/, so they survive restarts without touching your config layers.

  • Dual-mode authentication and WebSocket protection

- Prefers web form / cookie sessions while staying backward-compatible with HTTP Basic Auth for CLI tools, curl, and automated API clients. - Full authentication coverage for both HTTP routes and WebSocket (upgrade) channels.

  • Remote IP privileged RPC trust delegation

- Normalizes request Host and Origin headers for authenticated sessions, eliminating HTTP 403 errors when accessing privileged RPC endpoints via a public IP.

  • Web Crypto UUID auto-polyfill

- Injects a safe UUID generator into the HTML <head> for non-HTTPS and direct-IP environments, preventing client-side crashes.

---

Installation

Install the bundle into a profile with dsh plugin:

# From a git host (pin a commit so later pushes cannot change what runs):
dsh plugin --profile web add github:kolawong/dsh-plugin-auth-webserver#<commit-sha>

# Or from a tarball / npm registry once published:
dsh plugin --profile web add ./dsh-plugin-auth-webserver-0.3.0.tgz
dsh plugin --profile web add dsh-plugin-auth-webserver

The package declares dsh.bundle, so dsh plugin appends it to the profile's bundle list automatically; its patch disables the stock webserver row and inserts the auth-gated server. Then boot:

dsh --profile web

Open http://your-server-ip:3080 to see the login page.

Configuration

Every option has a default; override the webserver-auth row in your profile's own patch ($DSH_HOME/profiles/web/cordis.patch.yml), which is applied after every bundle layer:

- id: webserver-auth
  config:
    host: '0.0.0.0'
    port: 3080
    username: 'admin'
    password: 'your_secure_password'

Changes made in the Web UI settings card apply immediately and are stored in $DSH_HOME/plugins/dsh-plugin-auth-webserver/state.json (mode 0600). Environment variables DSH_AUTH_USER and DSH_AUTH_PASS override both the config and the saved state.

OptionTypeDefaultDescription
hoststring'0.0.0.0'Listening interface (0.0.0.0 or 127.0.0.1).
portnumber3080HTTP/WebSocket listen port.
usernamestring'admin'Authentication username.
passwordstring''Authentication password (leave empty to disable authentication).
realmstring'DeepSeek Harness Authentication'Realm string used for fallback Basic Auth.

---

API endpoints

  • POST /api/auth.login — Authenticate and receive a session cookie ({ username, password }).
  • POST /api/auth.logout — Invalidate the current session and clear the cookie.
  • GET /api/auth.get — Retrieve the current username, password, and realm (requires authentication).
  • POST /api/auth.update — Live-update credentials and persist them (requires authentication).

---

License

[MIT License](LICENSE) © 2026 kola