diff --git a/entries/claude-profiles.json b/entries/claude-profiles.json new file mode 100644 index 00000000..9679847d --- /dev/null +++ b/entries/claude-profiles.json @@ -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" +} diff --git a/icons/claude-profiles-25f9fa91.svg b/icons/claude-profiles-25f9fa91.svg new file mode 100644 index 00000000..2d3d23c5 --- /dev/null +++ b/icons/claude-profiles-25f9fa91.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/overview/claude-profiles.md b/overview/claude-profiles.md new file mode 100644 index 00000000..4e34e93e --- /dev/null +++ b/overview/claude-profiles.md @@ -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. diff --git a/screenshots/claude-profiles/new-thread-picker.png b/screenshots/claude-profiles/new-thread-picker.png new file mode 100644 index 00000000..8b808a98 Binary files /dev/null and b/screenshots/claude-profiles/new-thread-picker.png differ diff --git a/screenshots/claude-profiles/settings.png b/screenshots/claude-profiles/settings.png new file mode 100644 index 00000000..0e01567d Binary files /dev/null and b/screenshots/claude-profiles/settings.png differ