Pick who pays for each Claude Code thread
BB runs every Claude Code thread on the same login. Claude Auth Mode lets each thread bill either your Claude subscription or one of your named Anthropic API keys, chosen per thread, then per project, then globally. Subscription stays the default.
What you get
- Named API keys. Add keys by name. A key comes from a command that prints it, or is pasted once and stored write-only on the BB server. Key values never reach the browser, logs, or plugin storage.
- Per thread, project, and global. A thread uses its own choice, else its project's, else the global default.
- A composer pill. See whether a thread bills your subscription or a named key, and where that choice comes from. Change it from the pill's menu, including in a new-thread draft.
- A settings page. Manage keys, the global default, and per-project defaults. It warns when
apiKeyHelperis set in your Claude Code settings. - A CLI.
bb claude-auth-mode statusandbb claude-auth-mode useread and change the choice.
How it keeps keys safe
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 key and forwards the request to Anthropic. If a key fails, the request fails with an error that names the key; there is no silent fallback to your subscription. A change applies from the thread's next turn.
Limits to know
Claude Auth Mode does not work alongside BB's Account Pooler routing for Claude Code; use one or the other. It covers Claude Code only: not Codex or other providers, ANTHROPIC_AUTH_TOKEN, gateways, Bedrock, Vertex, cost tracking, or automatic fallback on rate limits.
Install Claude Auth Mode
Claude Auth Mode requires BB 0.50.1 or newer. Install it from BB Marketplace:
bb plugin install claude-auth-modeThen open Settings > Claude Auth Mode to add a key. See the GitHub repository for screenshots and release details.










