Ox0400/dsh-vault3

dsh-vault

DeepSeek Harness 的加密凭据保险库:通过模型工具和设置 UI 页面存储和检索用户名、电子邮件、电话号码、密码、TOTP 密钥、SSH/API 密钥/OAuth 开发者凭据。

AI 分析

核心用途是为 DSH 提供安全的加密凭据管理,允许 Agent 经授权后安全调用敏感密钥。适合需要频繁处理 API 密钥、SSH 或密码的开发者。支持只读、询问和自动三种安全访问模式。

套件
dsh-vault
版本
1.5.0-rc.10
授權
MIT
最近更新
2026年8月17日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Ox0400/dsh-vault

Configuration

OptionDescription
masterPasswordThe master password inline (appears in cordis.yml; not recommended)
masterPasswordEnvEnvironment variable name holding the master password (recommended)
pathVault file path; defaults to $DSH_HOME/vault/default.json
nameVault name for the default path (e.g. name: work$DSH_HOME/vault/work.json)
accessModeAccess policy for the model tools. Three states: readonly (mutations rejected on tools + UI), ask (default — reads free, every add/update/delete goes through the harness approval channel so the user confirms each write), or auto (automatic read-write, no per-call prompt). The Settings UI offers this exact three-way choice and persists it to /access.json.
autoCapturefalse (default). When true, the system prompt instructs the model to detect credentials shared in conversation and — per user preference — offer to save them with vault_add.
lockTimeoutSecondsAuto-lock: after this many seconds of inactivity the vault re-locks (key wiped) and every read/write requires vault_unlock. 0/absent disables.
exportPasswordEnvEnvironment variable holding the export/import password for vault_export/vault_import (never pass it as a model argument).
backupRetentionHow many encrypted backups to keep (default 10); vault_backup prunes older copies.

Example:

- id: vault
  name: dsh-vault
  config:
    masterPasswordEnv: DSH_VAULT_PASSWORD
    accessMode: ask
    autoCapture: true

With autoCapture: true, when you share a credential in chat (e.g. "my npm token is npm_…"), the assistant offers to store it; on your consent it calls vault_add immediately. With autoCapture off, credentials are only saved when you explicitly ask. The Settings UI shows the current mode (read-only / ask-before-write / automatic read-write) with a dropdown to switch it, an auto-capture toggle (detect credentials shared in chat → offer to save), a kind filter, a health & rotation summary, a trash view, and masked secret fields with a Show/Hide toggle.

The vault is created automatically on first tool use; every launch re-unlocks with the master password. Forgetting the master password = permanent data loss (no backdoor — by design).