dsh-web-loginv1.0.0

simpleobj/dsh-web-login

安全管理 MIT 最近更新 2026-11-17
0Stars
0Forks
0待解决 Issue
安装命令 dsh plugin --profile web add github:simpleobj/dsh-web-login#eb05165995d58d335aa51f056e2539c88320b555

介绍

轻量版 DSH Web 登录插件:用账号密码替代启动 token 链接,单实例单用户,scrypt 加密存储,无额外依赖。

标签

deepseek-harness dsh-plugin plugin dsh web login password

概述

dsh-web-login

中文 | English

Username/password sign-in for the DeepSeek Harness (DSH) Web UI. One global account replaces the launch-token URL: every device gets a login page, and a successful sign-in mints the normal DSH session cookie (30 days by default).

Features

  • Single global account — one username and one password for every device.
  • No more token copying — sign in with a password; the launch-token URL remains available as the recovery path.
  • Manage in the UI — change the username or password under Settings → Web login, with the current password required.
  • Secure by default — scrypt hashing (N=16384, r=8, p=1) with a 16-byte salt; account file is 0600.
  • Rate limited — 5 failed attempts per IP per minute, then 429.
  • Native session handling — reuses DSH's token exchange and signed cookies; no cookie logic is re-implemented.
  • Bilingual UI — login page follows Accept-Language; settings page follows the DSH locale.

Install

dsh plugin --profile web add github:simpleobj/dsh-web-login

Then make sure dsh-web-login is listed in dsh.profile.bundles in ~/.dsh/profiles/web/package.json:

{
  "dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-web-login"] } }
}

Restart dsh web and open http://<host>:<port>/. When no account exists yet, the login page offers Create account; otherwise it asks you to sign in.

Requirements: DSH 0.2.x, Node.js ≥ 24.9.

Usage

TaskHow
Sign inOpen http://<host>:<port>/ and enter the account credentials
Change username / passwordSettings → Web login, current password required
Forgot passwordOpen the launch-token URL printed by dsh web, then reset under Settings → Web login — or delete ~/.dsh/web-login.json and set up again

Configuration

VariableDefaultPurpose
DSH_HOME~/.dshDSH data directory; the account file lives here
DSH_WEB_LOGIN_FILE$DSH_HOME/web-login.jsonOverride the account file path

Security notes

  • The account file stores only a salted scrypt hash, never the plaintext password.
  • TLS is recommended; behind plain HTTP, restrict the port to trusted networks.
  • Changing the password does not revoke sessions already signed in on other devices — they stay valid until the cookie expires. To revoke everything, remove the client-connection/browser-session record from $DSH_HOME/.credentials.yaml and restart dsh.
  • One account per instance by design.

Troubleshooting

  • 403 forbidden on submit — the request was rejected by DSH's Host/Origin fence. Make sure the address in your browser matches dsh web --trusted-host (e.g. --trusted-host 1.2.3.4:3080). Browsers may also send Origin: null when a form is resubmitted after refresh; current versions handle that case.
  • 429 — login rate limit; retry after the Retry-After seconds.
  • 405 on /dsh-login/authenticate — expected; that route only accepts POST from the login page.

License

MIT

星级评价

0.0 按 GitHub Stars 换算的社区热度,非用户打分
Stars0
Forks0
待解决 Issue0
最近更新2026-11-17

基本信息

作者simpleobj
版本1.0.0
开源许可MIT
默认分支main
入库时间2026-11-17

插件信息来自公开 GitHub 仓库与 SkillHub,版权归原作者所有;安装前请自行审查仓库代码。