ysskrishna logoysskrishna

Claude Auth Mode

Bill each Claude Code thread in BB to your subscription or a named API key.

Gallery image 1
Gallery image 2
Gallery image 3
Gallery image 4
Built with
BB Marketplace Plugins
Chat & AI
React
TypeScript
Details
FreeMIT licenseCreated November 30, 2026Updated November 30, 2026
Share this product

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 apiKeyHelper is set in your Claude Code settings.
  • A CLI. bb claude-auth-mode status and bb claude-auth-mode use read 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-mode

Then open Settings > Claude Auth Mode to add a key. See the GitHub repository for screenshots and release details.

Frequently asked questions

What do I need to use Claude Auth Mode?

BB 0.50.1 or newer. Install it from BB Marketplace with bb plugin install claude-auth-mode, then open Settings > Claude Auth Mode to add a named API key.

Can a thread see my real API key?

No. A thread on a named key gets a local proxy URL and a proxy token. The proxy on the BB server adds the real key and forwards the request to Anthropic. Key values never reach the browser, logs, or plugin storage.

Which choice wins when a thread, project, and global default disagree?

The thread's own choice, then its project's default, then the global default. Subscription is the default until you change it. A change applies from the thread's next turn.

What happens if a key stops working?

The request fails with an error that names the key. Claude Auth Mode never falls back to your subscription on its own.

Is it free?

Yes. Claude Auth Mode is free and open source under the MIT license. It is a community plugin for BB.

Continue exploring

Productbb marketplaceIdle Compact

Idle Compact

Compact large idle threads in BB before their prompt cache expires.
Chat & AI
BB Marketplace Plugins
+2
BlogCover image for 17 Thinking Skills for AI Agents: Pre-Mortem, Five Whys, Six Hats and More

17 Thinking Skills for AI Agents: Pre-Mortem, Five Whys, Six Hats and More

AI Apps & Assistants
Agent Skills
4 min read
ToolCover image for AI Token Counter

AI Token Counter

AI token counter with model pricing and context-window comparison in your browser.

Chat & AI
AI Apps & Assistants
+1
CourseCover image for Prompt Engineering for Coding Agents

Prompt Engineering for Coding Agents

Write prompts that coding agents act on: clear goals, the right context, output contracts, examples, structured thinking, shorter answers and a tiny eval set.

Agent Skills
Chat & AI

8 chapters · 17 min

Productbb marketplaceProfiles

Profiles

Choose which providers and models appear in BB's model picker for each project.
Chat & AI
BB Marketplace Plugins
+2
Productbb marketplaceThread Inbox

Thread Inbox

Keep returned results in view and file finished conversations in BB.
Chat & AI
BB Marketplace Plugins
+2