Claude Auth Mode

Get it for macOS

Choose subscription or a named API key per project and per thread for Claude Code.


What you get

  • Named API keys: add keys by name, from a command that prints the key (runs on the BB server) or pasted once and stored write-only on the BB server.
  • Per-thread, project, and global choice: a thread uses its own choice, else its project's, else the global default. Subscription is the default.
  • A pill in the composer that shows whether the thread bills your subscription or a named key, and where that choice comes from.
  • A settings page for keys and defaults, and a bb claude-auth-mode command to read and change the choice.

How it works

A thread on a named key gets a local proxy URL and a proxy token, never the real key. The proxy on the BB server adds the real key and forwards the request to api.anthropic.com. A command key runs with a 10 second timeout and is cached for 5 minutes in memory; a pasted key is stored in a file readable only by you in the plugin's data directory.

If a key fails, the request fails with an error naming the key; there is no fallback to Subscription. A change applies from the thread's next turn. The proxy token appears in the thread timeline, works only against this BB server's proxy, and stops working when the key is deleted.

Limits

  • Not compatible with BB's Account Pooler routing for Claude Code: use one or the other.
  • apiKeyHelper in ~/.claude/settings.json overrides Subscription. The settings page warns; the plugin never edits Claude Code settings.
  • Codex and other providers, gateways, Bedrock, Vertex, cost tracking, and automatic fallback on rate limits are not supported.

Requirements

BB 0.50.1 or later. The npm package is bb-plugin-claude-auth-mode; the marketplace ID and runtime ID are claude-auth-mode. For installation and release status, see the project README.

More from Y. Siva Sai Krishna

More in Agents & Providers 97

Add, choose, configure, route, or coordinate who runs a thread.

View all