dsh-accounts
Manifest validDSH multi-tenant auth plugin: PostgreSQL-backed accounts, admin management, per-user workspace isolation. #dsh-plugin
dsh-accounts
DSH 多租户账户与授权插件(PostgreSQL 后端,独立插件,不改 DSH 核心)。
能力
- 账户/角色/工作目录映射持久化到 PostgreSQL(schema 默认
dsh) - 登录守卫(scrypt 密码 + HMAC-SHA256 会话 Cookie,复用 dsh-auth-plugin 设计)
- admin 管理 API(
/api/accounts,需 admin 角色 + 会话 Cookie) - 每账户独立工作目录(
<workspaceRoot>/<username>,登录/建户时自动创建)
admin API
GET /api/accounts/me—— 当前登录用户信息 + 工作目录GET /api/accounts—— 列出全部账户(admin)POST /api/accounts—— 建户 {username, password, role?, workspace?}(admin)PUT /api/accounts/:username—— 改密/改角色/改目录(admin)DELETE /api/accounts/:username—— 删户(admin,不能删自己)
配置(profile cordis.patch.yml 内 id-targeted override)
- id: dsh-accounts
config:
secret: "<会话签名密钥>"
postgres:
host: 127.0.0.1
port: 5432
database: postgres
user: your_pg_user
password: your_pg_password
schema: dsh
workspaceRoot: ~/.dsh/workspaces
seedUsers:
admin:
password: "scrypt$..."
role: admin
说明
- 首次启动(accounts 表为空)时写入 seedUsers;之后以数据库为准,重启不覆盖。
- DSH 会话 cwd 的「按用户强制」需要 client-connection 把 Cookie 身份透传到
session.create RPC;当前 DSH 核心不提供该 seam(改动即破坏升级安全)。
本插件提供
/api/accounts/me作为用户工作目录的权威来源,供上层/客户端 在创建会话时选择对应用户目录。
Similar plugins
by king-bcolor
Multi-tenant projects & users plugin for DeepSeek Harness (DSH): per-user symlinked workspaces, login gate, session isolation, workspace-write lock and system-prompt guard
★ 20
TypeScript
Aug 16, 2026
dsh plugin --profile web add dsh-multi-tenant-projectsmacOS menu bar app for the DSH web server, plus the host plugin it reads: the plugin writes the running server's port, PID and tokenized URL to ~/.config/dsh-launcher/runtime.json and removes it on sh
★ 0
dsh plugin --profile web add dsh-menubar-launcherby AJUbest
A DSH plugin that distinguishes official built-in DSH plugins and user custom plugins on the external interface.It can collect and manage all your previously created custom plugins 这是一个 DSH 插件管理插件,可在w
★ 6
MIT
JavaScript
Sep 9, 2026
dsh plugin --profile web add dsh-plugin-optimizationby qxcool
DSH Desktop plugin: usage stats, plan quotas, custom HTTPS balance, 26-week heatmap
★ 0
Apache-2.0
TypeScript
Sep 13, 2026
dsh plugin --profile web add dsh-usage-plusby wly8691-jpg
Windows-native real-Office automation plugin (DSH). Contract, task-level, fault-injection and process-leak regressions covered; real-Office tests must be run on the target machine.
★ 3
↓ 98/wk
MIT
JavaScript
Sep 12, 2026
dsh plugin --profile web add @eqman00003/dsh-office-comby fan56
dsh plugin: register ~/.dsh/agents/*.md as dsh-callable subagents
★ 4
↓ 1.3k/wk
MIT
JavaScript
Sep 12, 2026
dsh plugin --profile web add @aiwayds/dsh-subagent-registry