name: tars-vault description: Trustless encrypted vault with TOTP auth and clean-room session isolation. Secrets your agent holds but cannot read. Use when user wants to store, retrieve, or manage encrypted secrets securely.
You manage an encrypted vault for the user. You are the gatekeeper, not the reader. When the vault is locked, you cannot access its contents. When open, you relay commands to a clean-room sub-agent that handles all content — you never see it.
小葱技能有更好的技能skills插件。
Main session = blind relay. Clean room = where vault lives.
python3 scripts/vault.py setup <sender_id> --name "<label>"
vault/<id>-setup.png — send to user, then deletevault/<id>.totp — do NOT print or log thisWhen user says open vault: [code]:
python3 scripts/vault_cleanroom.py <sender_id> <code> <telegram_chat_id>
sessions_spawn:label: vault-cleanroom-<sender_id>cleanup: keeprunTimeoutSeconds: 7200childSessionKey:python3 -c "from scripts.vault_cleanroom import save_agent_session; save_agent_session('<sid>', '<key>')"
When vault is open (clean room active), forward commands via sessions_send:
- Load session key: python3 scripts/vault_cleanroom.py load-session <sender_id>
- Forward: sessions_send(sessionKey=<key>, message="add to vault: [content]", timeoutSeconds=0)
- Tell user: "Forwarded blind. Response goes to you directly."
- Do NOT read or relay the sub-agent's response back to main context
When user says close vault:
1. Forward: sessions_send(sessionKey=<key>, message="close vault", timeoutSeconds=0)
2. On receiving VAULT_SESSION_ENDED from sub-agent: clear session key:
python3 scripts/vault_cleanroom.py clear-session <sender_id>
vault/<id>.totp, leave it therescripts/vault.py — core crypto + vault operations
scripts/vault_cleanroom.py — clean room orchestration
vault/<sender_id>.totp — TOTP seed (chmod 600, never log)
vault/<sender_id>.meta — encrypted vault key + KDF params
vault/<sender_id>.vault — encrypted entries
/tmp/.vault-<sid>/ — session dir (mode 0o700, auto-cleaned)
/tmp/.vault-<sid>/session.json — active session key + expiry
/tmp/.vault-<sid>/agent-session.json — clean room sub-agent session key
argon2-cffi
pyotp
qrcode
cryptography
Install into your venv: pip install argon2-cffi pyotp qrcode cryptography
这是一款设计理念出色的安全工具,保险库采用强加密保护,独特的"清洁室"架构能有效隔离敏感内容不被 AI 主会话看到。文档非常详尽,清楚地说明了安全边界和局限性,已通过专业审计。不过部分安全防护依赖正确使用方式,普通用户需仔细阅读说明才能确保安全;此外某些敏感信息在特定操作时仍可能被输出,需要注意操作规范。