DeepSeek Harness Hub
← 返回列表

登录门禁javaxiaov/deepseek-herness-login

DeepSeek Harnessspec-screened在 GitHub 查看 ↗
未验证

为应用加上登录页与账号管理,未登录无法操作

尚未跑自动兼容性验证,可查看页面内的依赖与入口分析。 · 最近上游提交 2026/8/15 · 已提供中文文档
综合分
27.6
GitHub 分
27.6
用户评分
★ Stars
1
周下载量
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add javaxiaov/deepseek-herness-login
该插件未发布到 npm,走 GitHub 源安装(pnpm 若拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑)
数据截至 2026/9/16(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动

README

DeepSeek Harness 登录门禁插件 (auth-gate)

简体中文 · English

简体中文

一个为 DeepSeek Harness Web 界面提供登录门禁 + 账号管理的插件 bundle。

预览

登录页面

功能

- 登录门禁:未登录时全屏登录页覆盖整个应用,无法操作任何功能。
- 账号设置:系统设置里新增「账号设置」页面,可修改账号名和密码。
- 退出登录:设置页头部和账号设置页均有红色「退出登录」按钮,点击后立即切回登录页(只退出账号,不影响应用)。
- 多语言:跟随 DeepSeek Harness 界面语言自动切换(设置 → 外观 → 语言),支持中文与 English。
- 安全存储:密码以加盐 scrypt 哈希持久化到本地文件,绝不保存明文。
- 持久化:账号、密码修改重启应用后依然保留(默认账号 admin / 密码 admin123)。

安装

本插件作为 DeepSeek Harness 用户 profile 的 bundle 安装:

1. 将 dsh-login-gate 目录(本仓库内容)放入 profile 的 bundles 目录,例如:
~/.dsh/profiles/web/bundles/auth-gate/
2. 在 profile 的 package.json 中添加 bundle 引用:

{
"dsh": {
"profile": {
"bundles": [
"@dsh-login-gate/auth-gate"
]
}
},
"dependencies": {
"@dsh-login-gate/auth-gate": "link:./bundles/auth-gate"
}
}

3. 在 profile 目录执行 pnpm install 建立链接。
4. 重启 DeepSeek Harness 应用。

结构

dsh/
index.js           Host 端:HTTP 路由(登录/状态/退出/改密)
account-store.js   Host 端:scrypt 哈希 + 本地持久化存储
client.js          浏览器端:登录遮罩 + 账号设置页(lazy-CJS bundle)
cordis.patch.yml     插件装载配置
package.json         包声明(dsh.bundle / dsh.client)

数据文件

账号数据保存在 /login-gate-accounts.json:

{
"username": "admin",
"password": "scrypt$16384$8$1$$",
"sessionToken": null
}

接口

| 方法 | 路径 | 说明 |
| --- | --- | --- |
| GET | /login-gate/status?token=... | 校验会话 |
| POST | /login-gate/login | 登录,返回 token |
| POST | /login-gate/logout | 退出登录,清空会话 |
| POST | /login-gate/update | 修改账号名/密码(需当前密码) |

许可证

MIT

English

A plugin bundle that adds a login gate and account management to the DeepSeek Harness web UI.

Preview

Login page

Features

- Login gate: a full-screen login page covers the whole app until you sign in; nothing is operable without a session.
- Account settings: a new "Account Settings" page in the system settings for changing the username and password.
- Log out: red "Log out" buttons in the settings header and on the account settings page; clicking returns to the login page immediately (logs the account out only, never the app).
- Multi-language: follows the DeepSeek Harness UI language automatically (Settings → Appearance → Language), supporting Chinese and English.
- Secure storage: the password is persisted locally as a salted scrypt hash — plaintext is never stored.
- Persistent: account and password changes survive app restarts (default account admin / password admin123).

Installation

Install the plugin as a bundle in your DeepSeek Harness user profile:

1. Put the dsh-login-gate directory (this repository's contents) into the profile's bundles directory, e.g.:
~/.dsh/profiles/web/bundles/auth-gate/
2. Add the bundle reference to the profile's package.json:

{
"dsh": {json
"profile": {
"bundles": [
"@dsh-login-gate/auth-gate"
]
}
},
"dependencies": {
"@dsh-login-gate/auth-gate": "link:./bundles/auth-gate"
}
}

3. 在 profile 目录中运行 pnpm install 以创建链接。
4. 重启 DeepSeek Harness 应用。

结构

dsh/
index.js           宿主端:HTTP 路由(login/status/logout/update)
account-store.js   宿主端:scrypt 哈希 + 本地持久化存储
client.js          浏览器端:登录网关 + 账户设置页面(懒加载 CJS 包)
cordis.patch.yml     插件挂载配置
package.json         包声明(dsh.bundle / dsh.client)

数据文件

账户数据存储在 /login-gate-accounts.json 中:
json
{
"username": "admin",
"password": "scrypt$16384$8$1$$",
"sessionToken": null
}

API

| 方法 | 路径 | 描述 |
| --- | --- | --- |
| GET | /login-gate/status?token=... | 验证会话 |
| POST | /login-gate/login | 登录,返回令牌 |
| POST | /login-gate/logout | 登出,清除会话 |
| POST | /login-gate/update | 更改用户名/密码(需要当前密码) |

许可证

MIT

上游仓库有新提交时邮件通知你(每天最多一封,无更新不打扰),随时一键退订。

💬 加入 DPharness 群聊

插件用法、部署报错、新插件第一时间同步——群里问,比一个人翻文档快。

点击加入 QQ 群
DPharness 群聊二维码,手机 QQ 扫码进群
扫码进群