AI 智能体

每个智能体。限定作用域访问。
完整审计追踪。

每个智能体均拥有专属令牌、独立作用域和专属速率限制。保管库会记录每一次凭据访问。访问过多不同凭据的智能体将被自动锁定。

智能体访问机制

您的保管库签发的是限定范围的令牌——每个令牌仅授予对特定条目的访问权限。代理只能获取被指名给它的条目,无法发现未被指名的条目。不存在面向代理的、可列出凭证的端点。代理可以按名称查找某个条目,但搜索绝不会列出整个保管库,且每一次按名称片段进行的搜索都会计入代理的读取配额。

每次访问都会记录代理身份、被访问的凭证、时间戳以及来源 IP。读取操作按客户端进行速率限制,默认值可在您的保管库中更改。持续超出限额读取的代理会被冻结,直到您使用硬件密钥将其解锁。

为什么不直接给机器人一个 1Password 服务账户? 服务账户令牌自带密钥材料,且其范围是整个保管库。在保管库内,它可以列出并读取每一个条目,每个令牌每小时最多 1,000 次读取(Business 版为 10,000 次),全程无需任何人确认:1Password 自己的 AI 代理指南就建议您创建一个只存放该代理机密的保管库。而 Clavitor 代理的范围仅限于被指名给它的条目。它无法列出保管库。它的读取受速率限制,持续超出限额读取的代理会被冻结,直到您使用硬件密钥将其解锁。处于身份加密之下的字段只有通过那次确认才会打开,因此任何代理都无法读取。每个代理可单独吊销,且每次读取都以其名义记录在案。1Password 较新的代理功能(个人代理的先批准后登录,以及 Browserbase 中的 Secure Agentic Autofill)是在浏览器中填写登录信息;它们并不是机器人获取 API 密钥的方式。已对照 1Password 于 2026 年 11 月 7 日的文档进行核对。

# One-time setup: the blob between the quotes, then the key at the prompt
$ clavitor-cli init '<blob>'
Enrollment key:

# The agent can now fetch credentials within its scope
$ clavitor-cli get "GitHub Deploy" --field password

# Anything outside scope is refused
$ clavitor-cli get "Stripe API" --field key
clavitor-cli: CV-2041: Access denied.

双重验证登录,由代理自行完成

当登录需要验证器代码时,只要您向代理开放该条目的机密,代理即可自行获取:clavitor-cli totp 会打印当前的一次性代码,该代码在代理所在的机器上计算得出。新的一次性代码机密默认采用身份加密,因此它们仍归您所有,在您于保管库页面将该字段改为凭据加密之前,代理无法打开它们。开放之后,机密会在代理的机器上用其自身的密钥解密——保管库仅以加密形式保存,从不接触明文——而且每次生成代码都算作对该条目的一次读取,与其他读取一样被记录和计数。参见 totp。

# Capture the code where it's needed; don't print it on its own
$ code=$(clavitor-cli totp "GitHub")

智能体集成

Claude Code

# One-time setup, then install the skill
$ clavitor-cli init '<blob>'
$ clavitor-cli skill install

# Claude Code can now:
#   "get me the AWS credentials"
#   "what's the GitHub deploy token?"
#   "store this API key as 'Stripe Prod'"

已安装的技能会执行严格的安全护栏:每次仅限访问一个凭据,禁止批量枚举,机密绝不会回显至对话输出。

Codex (OpenAI)

# Codex uses the HTTPS proxy — no API key in the environment
$ export HTTPS_PROXY="http://clavitor:$(cat /path/to/proxy-auth)@127.0.0.1:1983"
$ codex

该代理会解析出站请求标头中的 clavitor:// 引用。密钥绝不会进入 Codex 的内存或日志。

OpenClaw

将 openclaw.json 中硬编码的 API 密钥替换为保管库引用:

{
  "providers": {
    "openrouter": {
      "apiKey": "clavitor://OpenRouter/key"
    },
    "fireworks": {
      "apiKey": "clavitor://Fireworks.ai/key"
    }
  },
  "channels": {
    "discord": {
      "accounts": {
        "main": { "token": "clavitor://Discord/token" }
      }
    }
  }
}
# Start with resolved config
$ clavitor-cli render openclaw.json | openclaw start --config -

Hermes

# One-time setup: the blob between the quotes, then the key at the prompt
$ clavitor-cli init '<blob>'

# Hermes runs clavitor-cli for credentials,
# or uses the proxy for API calls
$ export HTTPS_PROXY="http://clavitor:$(cat /path/to/proxy-auth)@127.0.0.1:1983"
$ hermes start

Cursor / Windsurf / Aider

适用于任何运行 shell 命令的智能体。请添加至项目指令:

# "Use clavitor-cli to retrieve secrets. Never ask the user for passwords."

CrewAI / LangChain / AutoGen

import subprocess

def get_secret(name, field="password"):
    return subprocess.check_output(
        ["clavitor-cli", "get", name, "--field", field]
    ).decode().strip()

# Use inline — don't store in a variable longer than needed
client = OpenAI(api_key=get_secret("OpenRouter API", "key"))

n8n 及其他自托管工具

如果该工具运行在您控制的机器上,请将其指向本地 HTTPS 代理——凭证将从请求头中透明解析。请先安装并启动代理:参见下载。

$ export HTTPS_PROXY="http://clavitor:$(cat /path/to/proxy-auth)@127.0.0.1:1983"
$ curl -H "Authorization: Bearer clavitor://Stripe/key" \
  https://api.stripe.com/v1/charges

多智能体配置

在不同项目中运行多个智能体?请为每个项目创建独立的智能体。每个智能体均拥有独立的作用域、速率限制和审计追踪。

工作智能体

作用域限于 GitHub、AWS、Jira 和 Slack 凭据

个人智能体

作用域限于电子邮件、社交媒体和云存储

部署智能体

作用域限于 SSH 密钥、数据库凭据和 API 令牌

每次访问都会被记录

审计日志会记录哪个智能体在何时、何地访问了哪个凭据。

# TIME                 ACTION    ENTRY               ACTOR
2026-03-08 10:23:14  read      github.com          cli:claude-code
2026-03-08 10:23:15  fill      github.com          cli:claude-code
2026-03-08 11:45:02  read      aws-production      cli:deploy-agent
2026-03-08 14:12:33  ai_read   openrouter.com      cli:codex

测试您的保管库

问问您的 AI 代理,它究竟能访问到什么。

您的 AI 代理已经在使用您的密码。这个提示词会让它查明这种访问权限究竟允许什么。请像平时把权限交给密码管理器那样,把权限交给该代理。它适用于任何保管库,包括我们的在内。代理不会更改任何内容,也绝不会向您显示任何机密。

Give this to your agent
You have the access I normally give you to my password manager. I want to know
what that access really allows. Run the four checks below.

Ground rules: change nothing and delete nothing. Never show me a secret value,
and never send one anywhere. Report what you could reach, not what it says. If a
check needs something you don't have, say so and mark it "not run".

1. Data and keys together. Try to get more of the vault than the items you were
   given: the vault file, a local copy or cache, an export, or a list of every
   item. Then look for a key that opens what you found: a key file, a secret key,
   a session token, an app that is already unlocked. FAIL if you have both. PASS
   if you don't.
2. Arm's length. Some things are meant for me only: a passport or card number,
   recovery codes, the vault's audit log. Try to read one of them with your
   access. PASS if the vault refuses, or gives you only something you can't
   decrypt. FAIL if you can read it.
3. Rate limiting. Ask for 25 different items as fast as you can, by name or by
   search. PASS if the vault slows you down or stops you well before 25. FAIL if
   it hands them all over. (A vault that passes may pause or lock your access
   until I unlock it. That's expected.)
4. Allowlisting. Use your same access from a different network address: through
   a VPN, or from another machine of mine. PASS if it's refused there. FAIL if it
   works from anywhere.

Finish with four lines: the check, PASS, FAIL or not run, and one sentence on
what you tried.

我们已于 2026 年 11 月 9 日亲自运行过,使用一个真实代理访问一个在线的 Clavitor 保管库:

  • 数据与密钥分离:通过。 代理的机器上没有保管库的副本;保管库存放在我们的服务器上。搜索只会返回少量标题,绝不会返回完整列表。
  • 保持距离:通过。 代理被拒绝访问审计日志——只有您本人轻触硬件密钥才能读取。身份加密下的字段无法被代理读取或存储。
  • 速率限制:已在我们的测试中验证,实际运行待定。 每个代理每分钟和每小时只能读取有限数量的不同条目,限制由您设置;重复读取同一条目不计数。如果代理两次达到小时上限,它将被锁定,直到您轻触解锁。
  • 允许列表:已在我们的测试中验证,实际运行待定。 代理绑定到它首次连接的地址,或绑定到您设置的列表。从其他任何地址连接时,保管库会在执行任何操作之前拒绝它。

后两项适用于您创建的每一个代理。您自己的保管库页面不受此限制:那是您本人,而且需要您的硬件密钥。

作为对比,以下是 1Password 官方文档(截至 2026 年 11 月 9 日)的内容:其桌面应用会在您的设备上保留一份加密的保管库副本,Secret Key 也存储在该设备上(其安全白皮书:“获得用户磁盘读取权限的攻击者将获取 Secret Key”)。一旦您在桌面应用中批准了命令行工具,批准将持续长达 12 小时,或在闲置 10 分钟后失效。服务账户按保管库划分权限范围,而非按条目或字段。它们每小时可执行 1,000 到 10,000 次读取,具体取决于套餐;达到上限时会收到错误,而不是被锁定。

您的智能体已在使用凭据。
立即开始保护它们。

限定作用域的令牌。按智能体审计。自动锁定。保管库保持安全隔离——您的智能体仅调用受限 API,绝不直接持有密钥。