dsh-accounts

by kangshifu1

0 模型与账号接入github 检测到 manifest package.json#dsh收录于 08-16

DSH 多租户账户与授权插件(PostgreSQL 后端,独立插件,不改 DSH 核心)。

DSH multi-tenant auth plugin: PostgreSQL-backed accounts, admin management, per-user workspace isolation. #dsh-plugin

安装

dsh plugin --profile web add github:kangshifu1/dsh-accounts

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

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 作为用户工作目录的权威来源,供上层/客户端 在创建会话时选择对应用户目录。

原始 README: https://github.com/kangshifu1/dsh-accounts/blob/master/README.md ↗

同类插件

查看全部 →
模型与账号接入Anionex

agent-vision-toolkit

为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

查看详情
928github+08-16
模型与账号接入toby-bridges

api-relay-audit

从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

查看详情
791github+08-21
模型与账号接入ZJU-LLMs

OpenStory

✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

查看详情
377github+08-17
模型与账号接入pulseaiclub

phi

pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

查看详情
89github+08-16
模型与账号接入anysearch-team

anysearch-dsh

DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

查看详情
79github+08-17
模型与账号接入kuangre123

codex-switch

Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod

查看详情
67github+08-16