Skip to content

Add plugin entry: claude-profiles - #1072

Open
YasserRabee wants to merge 1 commit into
get-bb:mainfrom
YasserRabee:submit-claude-profiles
Open

YasserRabee wants to merge 1 commit into
get-bb:mainfrom
YasserRabee:submit-claude-profiles

Conversation

@YasserRabee

Copy link
Copy Markdown

What it does

Lets each thread run on a chosen Claude Code account: defaults for all projects and per project, a picker in the new-thread composer, per-thread switching that carries the conversation over, and Settings rows with each login's plan, 5-hour and weekly usage, and revoked-login detection.

Source

https://github.com/YasserRabee/bb-plugins.git, subdir plugins/claude-profiles, range ^0.4.1, tagPrefix claude-profiles/ (tag claude-profiles/v0.4.1 is public and matches master). The id claude-profiles was chosen so it can be installed next to the existing claude-accounts entry.

Checks

  • Plugin: tsc --noEmit, npm test (14/14), bb plugin build pass. Installed from this exact source and running in bb.
  • Marketplace: npm run build and npm run check pass; git diff --check clean.

Permissions and security

  • Stores setup-tokens and Console API keys server-side; on each machine they go into a 0600 file read by a small wrapper that starts Claude Code. Secrets never appear in the thread timeline, the account list, RPC results or CLI output (covered by tests).
  • The wrapper unsets other Anthropic credentials (ANTHROPIC_AUTH_TOKEN, Bedrock/Vertex/Foundry switches) so the chosen account is the one used.
  • Calls api.anthropic.com with the account's own credential, only the endpoints Claude Code itself uses (OAuth profile and usage, or /v1/models for API keys), to show plan and usage and detect revoked logins.
  • Switching a started thread copies its Claude Code transcript into the other account's config folder, only after the user confirms.

Screenshots

  • settings.png: Settings with the machine login (plan, 5-hour and weekly usage) and a token account checked on two machines. The email is replaced with a placeholder and the account name is blurred.
  • new-thread-picker.png: the account picker in the new-thread composer with remaining 5-hour usage. Sidebar thread titles are blurred.

Overview

Copied from plugins/claude-profiles/PLUGIN_OVERVIEW.md in the plugin repository.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant