For AI agents

A password manager your agents can use without seeing a single secret

Agents call APIs and run commands through BotPassword. The secret does its job; the agent only gets the result. Sign-in, password changes and most rotation are planned.

AI agents should use credentials the way a payment terminal uses a card: the secret does its job without being handed over. With BotPassword, agents ask for an outcome (run this deploy with the Cloudflare token, call the Stripe API, sign in to this dashboard, rotate this key) and BotPassword performs the secret-bearing step after checking a grant you approved. The agent gets the result, not the value. A grant can opt in to disclosing delivery, and BotPassword labels it.

The problem with giving agents secrets

Ask a coding agent to rotate a token or deploy a service and it has two bad options: refuse, or ask you to paste the secret. Once the value is in the agent's context it can be echoed in a command, written to a log, kept in a transcript, or sent wherever a prompt-injected instruction says. A .env file in the project is no better: the agent can read it as easily as your app can.

Agent safety policies are written to stop exactly this. They do allow one pattern: hand the secret-bearing step to the user's password manager, with the approval happening in the manager's own interface. BotPassword is that password manager.

Outcomes, not values

  1. Every intent returns a typed outcome and redacted output. None returns a secret. The only way to reveal a value is the human app.
  2. Approval lives in BotPassword. An agent can request access; it cannot grant it.
  3. One catalog, every harness. The same intents over MCP and the bpw CLI (plus credential helpers for git, Docker, AWS and kubectl), through the same policy code, so decisions are identical everywhere.
  4. Ask once, then stay out of the way. Inside a grant, intents run without prompts. New credentials, new sites and higher-risk actions prompt once.

The intents

IntentWhat BotPassword does
statusReports lock state, the agent's identity and its active grants. Metadata only.
list_credentialsLists the credentials this agent is granted and what it may do with each. Never values.
request_accessAsks you for a grant, which you approve with your master password or decline in BotPassword on your desktop, never in the chat. The agent gets a receipt, never a value. Approval on your phone is planned.
run_withRuns a command with the key injected as an environment variable or a 0600 temporary file, never on the command line, and redacts the key from the output.
http_requestMakes an authenticated API call after checking the destination against the hosts this key may be sent to. The response comes back with credential-shaped values redacted, and one that holds the key itself is refused.
cli_loginLets git, Docker, the AWS CLI and kubectl log in through bpw's credential helper, so the token is fetched when the tool needs it and not written into its config. The helper hands the value to the tool, so the grant is always disclosing. Other tools use run_with; OAuth device logins are planned.
sign_inFills your username and password into the sign-in page, only in a frame at exactly the granted site: in a browser the agent drives over the Chrome DevTools Protocol, or in your own browser through your paired BotPassword extension in agent mode. The page, and over CDP the agent, can read what was filled, so this needs a grant that allows disclosure and is labeled disclosing. A sealed fill is planned.
fill_totpComputes the current two-factor code inside BotPassword and fills it into the page at the granted site, the same way as sign_in. The code never appears in the result. Disclosing over the DevTools Protocol and through the extension; a sealed fill is planned.
change_passwordPlanned, not built yet: will generate a new password, save it as a pending revision first, then fill the change-password form.
rotatePartly built: creates a new key, stores it as pending, verifies it, promotes it, then revokes the old key after a grace period. Today it works for Cloudflare tokens and AWS IAM keys you have set up, and an agent can start it only under a grant with autopilot; other providers cannot be rotated through their API yet.
capture_secretPlanned, not built yet: will read a newly created key straight from the page or command output into the vault.
store_secretSaves a value the agent already holds as a new vault item.
generate_passwordPlanned, not built yet: will generate a password and store it for later use.

Full reference: intent catalog.

Grants and approvals

A grant names the agent client, the project, the credentials, the allowed intents and an expiry: "Claude Code in ~/acme-api may run_with the Cloudflare deploy token until Friday." An agent asks for it with request_access and you approve it on your desktop (approval on your phone is planned), or you add it yourself with bpw grant add. Each agent installation is enrolled as its own client, so revoking one does not affect the others, and the activity log shows which agent used which credential and when.

Saving things is different: store_secret (built), capture_secret and generate_password (both planned, not built yet) can only add data, so they are allowed by default. "Save this new key" never needs a prompt.

What it does not solve

  • An agent driving a browser can technically read a field after it is filled. Your own paired extension can fill instead, outside the agent's browser automation, though the page and other extensions can still read the field; a sealed extension-only mode is planned, not built yet.
  • Agent identity on a desktop is attribution, not isolation: another program running as you can try to impersonate a client. The approval sheet shows what was verified (for example the code signature).
  • An agent with a valid grant can still misuse it within its scope. Keep grants narrow and short.

The full analysis is in the agent threat model.

Agent-by-agent guides

How each agent loads environment variables, what files it can read, where MCP servers are configured and what credential risks are documented, with sources:

Frequently asked questions

What is the best password manager for AI agents?

One that lets agents use credentials without receiving them. Most password managers were built to hand a value to a person; when an agent gets that value, it can end up in transcripts, logs or a prompt-injected request. Look for outcome-level tools (run a command, make a request, sign in) that inject the secret themselves, approvals that happen outside the chat, scoped and expiring grants, and redacted output. BotPassword is built around exactly that model.

Is it safe to put API keys in a .env file when using Claude Code or Cursor?

It is common, but every agent working in that folder can usually read the file, and ignore rules are not a security boundary against an agent with shell access. Prefer injecting keys at run time from a password manager, so no plaintext file exists for the agent to read. See the per-agent pages below for what each tool documents.

What is a credential broker for AI agents?

A service that holds credentials and performs authenticated actions on an agent's behalf, so the agent gets results rather than secrets. See credential broker.

Can an agent approve its own access?

No. An agent can request access, but grants are created only in BotPassword's own app on your desktop (approval on your phone is planned), or by a company admin. Write-only actions such as saving a new key are allowed by default because they cannot expose anything.

Does this work with any MCP client?

Yes. The same intents are served over a local MCP server (bpw mcp), and the bpw agent commands, so any agent that speaks MCP or can run a shell command can use them. Git, Docker, the AWS CLI and kubectl can also log in through credential helpers inside an agent session. Planned: more CLI forms.

Give your agents access, not your keys

BotPassword is in early access. Request an invite and we'll email you when your spot opens.