dshbase

插件目录 / Security / dsh-token-vault

dsh-token-vault

已验证 · 实测可装 YYfather

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-23最近推送
跨平台平台

功能简介

Secure credential vault for DeepSeek Harness: tokens never leave the host — the agent runs gh/npm/npx/node/git with the token injected in the environment. Manage from 设置 → 凭证库 / 市场 → 已安装.

✅
我们的评价
可用 — 实测通过,早期项目

Secure credential vault for DeepSeek Harness: tokens never leave the host — the agent runs gh/npm/npx/node/git with the token injected in the environment. Manage from 设置 → 凭证库 / 市场 → 已安装. 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

@yyfather/dsh-token-vault

Secure credential vault for DeepSeek Harness · 凭证库插件

Store your GitHub / npm / API tokens in DSH's own credential store (ctx.credentials → ~/.credentials.yaml). Secrets never leave the host — no plaintext file, no model context, no browser round-trip. The agent uses tokens through vault_run which injects them into a child-process environment only; vault_show (the single disclosure path) requires an explicit confirm: true.

设置 → 凭证库 录入一次,之后所有 GitHub/npm 操作由 Host 侧代持。

Tools (agent-facing)

Tool Purpose
vault_list List stored token names only (never values)
vault_has Check one token's presence
vault_set Store/update a token (value never echoed)
vault_remove Delete a token
vault_import Import from gh auth token (source: gh) or ~/.npmrc (source: npm)
vault_run Run gh/npm/npx/node/git with the token injected via env (github/gh → GH_TOKEN, npm/node → NPM_TOKEN, env_name overrides); output contains no secrets
vault_show Reveal one token (requires confirm: true, only on explicit user request)

Install

dsh plugin --profile desktop add @yyfather/dsh-token-vault

The package declares dsh.bundle.patch so it mounts automatically; restart DSH Desktop to activate. Then manage it from 设置 → 市场 → 已安装 (enable / update / uninstall), or paste tokens in 设置 → 凭证库.

Security design

  • Storage: DSH credential record space (dsh-token-vault/<name>, atomic modifyRecord) — no new plaintext files.
  • Usage: vault_run places the token in the child environment only; stdout/stderr/logs never contain it.
  • Disclosure: vault_show is the only leak path and demands confirm: true; usage rules advise rotating after use.
  • Prompt section token-vault-usage injected automatically: the agent must never print or persist tokens.

Structure

  • lib/index.js — host: ctx.tools.register for 7 vault tools; webServer routes /vault/status|set|remove|import; systemPrompt.section usage rules
  • lib/client.js — browser __ModuleLoader__ bundle: Settings → 凭证库 (add / import / delete, values never displayed)
  • cordis.patch.yml — bundle mount patch
  • package.json — market-format compliant (strict inject, full exports incl. ./client and ./cordis.patch.yml)

License

MIT © YYfather

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-token-vault」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:YYfather/dsh-token-vault

Headless(CLI)profile:

dsh plugin --profile headless add github:YYfather/dsh-token-vault

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Security 里更多

浏览全部 7819 个插件 →