Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions entries/claude-profiles.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "claude-profiles",
"displayName": "Claude Profiles",
"description": "Runs each thread on the Claude account you choose: a work account for one project, a personal one for another. Set a default for all projects and one per project, or pick a different account in the new-thread composer. An account can be a Claude config folder, a claude setup-token token or an Anthropic Console API key. Settings shows each login's plan and how much of its 5-hour and weekly limits is used, and flags a revoked login. A running thread can switch accounts and keep its conversation. Requires Claude Code; usage isn't reported for setup-tokens or API keys.",
"icon": { "url": "./icons/claude-profiles-25f9fa91.svg" },
"tags": ["claude", "claude-code", "accounts", "multi-account", "api-key", "setup-token", "usage-limits"],
"author": { "name": "Yasser Rabee", "github": "YasserRabee", "url": "https://github.com/YasserRabee" },
"category": "agents-and-providers",
"secondaryCategories": ["token-usage-and-limits"],
"source": { "git": { "url": "https://github.com/YasserRabee/bb-plugins.git", "subdir": "plugins/claude-profiles", "range": "^0.4.1", "tagPrefix": "claude-profiles/" } },
"screenshots": ["./screenshots/claude-profiles/settings.png", "./screenshots/claude-profiles/new-thread-picker.png"],
"overview": "./overview/claude-profiles.md"
}
12 changes: 12 additions & 0 deletions icons/claude-profiles-25f9fa91.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions overview/claude-profiles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Run Claude Code threads on different Claude accounts: a work account for one
project, a personal one for another, and a switch per thread when you need it.

## What you get

- **Settings → Claude profiles**: add accounts as a Claude config folder
(`~/.claude-work`), a `claude setup-token` token, or an Anthropic Console
API key. Each one shows, for every machine, whether Anthropic accepts its
login, and for config-folder logins the plan (Pro, Max) and how much of the
5-hour and weekly limits is used. The machine's own login is listed too.
- **Defaults**: one for all projects, one per project.
- **New-thread picker**: choose a different account for the thread you are
about to start, with each account's remaining 5-hour limit beside it, or
make it the project's default.
- **Thread menu → Claude account**: switch a thread. If it already has a
conversation, bb asks first, then copies the conversation to the new account
so it continues where it left off.
- **Thread Info**: shows each thread's account and where it came from.
- `bb claude-profiles` commands for the same things.

## How it works

Each thread is pinned to an account on its first run. bb then starts Claude
Code with that account's config folder, or a small wrapper that supplies its
token or API key and clears any other Anthropic credential, so the machine's
own login cannot win. Secrets stay on the bb server and never appear in the
thread timeline. Usage and plan come from the same Anthropic endpoints Claude
Code calls; setup-tokens and API keys don't report them. Without any
accounts, threads use the machine's own Claude login as before.

## Requirements

Claude Code on each machine that runs threads. Usage and plan checks read a
config folder's login on Linux and Windows; on macOS that login is kept in the
Keychain and isn't checked.
Binary file added screenshots/claude-profiles/new-thread-picker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/claude-profiles/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.