Quickstart

From a new vault to a first agent call today: store a key, make a grant, add the bpw mcp entry to Claude Code by hand. The one-step installer is planned.

Setup takes six steps: install the desktop app, unlock the vault, store a key, make a grant for an agent, add the bpw mcp entry to Claude Code, and let the agent make its first call. bpw agent install claude-code does that step in one command.

What do I need first?

  • The BotPassword desktop app, which installs the per-user daemon botpasswordd as a launchd agent on macOS or a per-user service on Windows.
  • An account with a master password and an emergency kit. The vault is usable locally before the first sync completes.
  • A harness that speaks MCP, such as Claude Code. See /agents for each harness.

What are the steps?

  1. Install and create an account. The app generates your keys on your device, asks for a master password, and prints an emergency kit. The server never sees the password or your plaintext.

  2. Unlock. Unlock in the desktop app with the master password or biometrics (Touch ID, or Windows Hello where available). One unlock state is shared by every desktop surface, including bpw.

  3. Store a key. Add the credential in the app, for example a deploy token named cloudflare/prod-deploy. Agents can also add new items themselves through the write-only intent store_secret, which needs no prompt for a new item (capture_secret is planned, not built yet).

  4. Make a grant. Only you can make a grant, and it always asks for your master password, even while the vault is unlocked. The agent cannot make or change grants. For example, to let an agent make GET requests to one API with a key:

    bpw item list    # copy the item ID of the key
    bpw grant add <item-id> --intent http_request \
      --host api.example.com --path '/v1/*' --method GET --expires-in-hours 8

    run_with grants are covered, with their limits, in the Claude Code guide.

  5. Add bpw mcp to your harness. Run bpw agent install claude-code, which writes this entry for you (see Harness setup). Or add it yourself; for Claude Code, with the absolute path to bpw:

    claude mcp add --transport stdio --scope user botpassword -- /path/to/bpw mcp --agent claude-code

    Codex is configured through its TOML file; both are in the Claude Code and Codex guides.

  6. Start the harness inside a session and let it use the key. bpw agent run asks for your master password, opens a session for this directory and runs the harness inside it:

    bpw agent run -- claude

    Then ask the agent to make the request. It calls http_request; the key is injected by the daemon and the response comes back, or, if it holds the key, is refused with value_reflected.

What happens on a run_with call?

The daemon checks the grant and spawns the command. For a sealed credential (Linux and macOS) the command gets a placeholder, and a proxy for that run puts the real value into requests to the grant’s hosts only. For a disclosing grant the value is injected through an environment variable or a temporary file with 0600 permissions (never on the command line). Either way, the daemon scrubs known values from stdout and stderr before relaying output. The agent receives the exit code and redacted output.

In a disclosing run, redaction replaces each known value, including its base64, base64url, URL-encoded and hex forms, with a marker of the form [bpw:redacted], which does not say which item matched. A sealed run whose output holds a value it swapped in returns value_reflected instead, and the grant is revoked.

How do I check that it is working?

bpw status
bpw intents

bpw status reports account, device, lock and sync state. The status intent returns lock metadata to an agent, and never values. If the vault is locked, intents return vault_locked; if no grant covers the request, they return approval_required and you make the grant with bpw grant add.