dsh-web-password-auth: Add Username/Password Login to DSH Web UI

dsh-web-password-auth is a DSH web profile plugin maintained by Lstions (v0.7.1, MIT) that provides username/password login, HttpOnly persistent sessions, an in-app Settings→Security management page, and optional TOTP for the DeepSeek Harness Web UI. It preserves dsh web's launch token as a local recovery path; credentials are stored as scrypt hashes in $DSH_HOME/.credentials.yaml. Install it with `dsh plugin --profile web add <absolute local path>`, which requires restarting dsh web; `sessionDays` must not exceed the Host's `cookieMaxAgeDays`. When exposed on non-loopback interfaces, TLS should be used and 2FA is recommended.

Read More
dsh-totp-proxy: A Reverse Proxy Adding TOTP and Revocable Sessions to DSH

dsh-totp-proxy is a DSH/Cordis plugin and reverse proxy maintained by realjhen123 that listens on port 3090 between Nginx and DSH 3080. After logging in with TOTP or a fixed token, it issues revocable dsg_session cookies to the browser while keeping the original dsh-auth cookie on the server side. Requires Node.js 22+, with credentials stored in ~/.dsh/dsh-totp-proxy/. During deployment, only expose the reverse proxy on 3090, with 3080 accessible only locally; set COOKIE_SECURE when using HTTPS. MIT 0.2.0.

Read More
twoFactor Skill: Implementing TOTP/OTP Two-Factor Authentication in Better Auth

twoFactor is the official Better Auth Agent Skill that explains how to configure the twoFactor plugin and twoFactorClient in an application, covering the complete 2FA lifecycle, including TOTP authenticators, email/SMS OTP, backup codes, the twoFactorRedirect login flow, trusted devices, and encrypted storage. Based on the official SKILL documentation, this article compiles installation commands, migration steps, and typical code examples. It is suitable for developers who need MFA and already use Better Auth, enabling coding assistants to generate configurations according to official practices rather than fragile single-factor approaches.

Read More
dsh-login-gateway: Add TOTP Login to the DeepSeek Harness Web UI

`dsh-login-gateway` is a security authentication plugin for DeepSeek Harness (DSH) that adds username, password, and TOTP two-factor authentication in front of the Web UI. It listens on a dedicated port, performs server-side token exchange with Harness using an HMAC cookie, and supports traffic forwarding, rate limiting, and initial setup. It must be placed behind a reverse proxy (such as Caddy), and accounts should be managed using scripts. Installation requires specific environment prerequisites; if build issues occur during installation, configure `allowBuilds`. This plugin addresses the security risks associated with exposing DSH's default authentication mechanisms to the public internet.

Read More
DeepSeek Harness Plugin: dsh-otp (One-Time Password TOTP/HOTP)

The DeepSeek Harness plugin dsh-otp is designed specifically to address network dependency and privacy risks associated with two-factor authentication (2FA) code generation in agent development. Implemented purely in Node.js, the plugin generates TOTP and HOTP codes locally without requiring an internet connection. After installing it via the command line and configuring `dsh.profile.bundles`, users can invoke one-time password generation directly within a session. Please review the source code before use to ensure security.

Read More