Account Switcher & Usage for Claude Code
Keep several Claude Code accounts signed in and switch between them from the VS Code side bar or status bar, without logging in again.
Unofficial. This extension is a community project. It is not made, endorsed or supported by Anthropic. "Claude" is a trademark of Anthropic.
Versão em português: README.pt-BR.md

What it does
- Shows the account Claude Code is using in the status bar.
- Lists your accounts in a side bar panel, with buttons to activate, rename and remove. Open an account to see how much of its limits is used; the active one is always open.
- Shows the 5-hour and weekly use of the active account, and the context size of the latest session, on the left of the status bar. Yellow from 60%, red from 80%; everything else follows your theme.
- Clicking the status bar opens the panel. The switch takes a second and needs no browser.
- Add Account logs in to a new account in an isolated folder, so the account you are using stays signed in.
- Keeps the saved logins fresh: when Claude Code refreshes a token, the new one is saved.
- Works on macOS, Windows and Linux, and over Remote SSH / WSL / Dev Containers (it runs where Claude Code runs).
Themes
The panel and the status bar use the colors of your theme. Names and emails in the pictures are made up.
| Light Modern |
Monokai |
 |
 |
| Solarized Light |
Tomorrow Night Blue |
 |
 |
| Quiet Light |
Dark High Contrast |
 |
 |
| Light High Contrast |
 |
Usage
- Install the extension. The status bar shows your current Claude Code account.
- Click it to open the side bar panel, then press Save on the account marked In use, not saved. Give it a name such as Work if you like.
- Press + New at the top of the panel to add another account. A terminal runs
claude auth login; finish the login in the browser. The new account is saved and your current one stays active.
- From now on, press Activate on an account in the panel.
After switching, restart Claude Code sessions that were already open so they pick up the new login.
Commands
| Command |
|
Claude Accounts: Switch Account… |
Pick an account from a menu |
Claude Accounts: Save Current Account |
Save or refresh the active login |
Claude Accounts: Add Account… |
Log in to another account without signing out |
Claude Accounts: Rename Saved Account… |
Change the name shown in the status bar |
Claude Accounts: Remove Saved Account… |
Forget a saved login (does not sign out) |
Claude Accounts: Show Log |
Diagnostics; never contains tokens |
Settings
| Setting |
Default |
|
claudeAccounts.verifyIdentityOnline |
true |
Before saving tokens, ask api.anthropic.com whose they are. Turn this and fetchUsage off for zero network access. |
claudeAccounts.fetchUsage |
true |
Ask api.anthropic.com for an account's usage when you open it, press Refresh, or after a switch. At most every 5 minutes per account. |
claudeAccounts.showUsageInStatusBar |
true |
Show usage and context in the status bar. Also in the panel's ⋯ menu. |
claudeAccounts.usageStatusBarPosition |
left |
Side of the status bar for the usage: left or right. Also in the panel's ⋯ menu. |
claudeAccounts.contextWindow |
auto |
Context window size: auto, 200k or 1m. |
claudeAccounts.syncIntervalMinutes |
2 |
How often refreshed tokens are saved. 0: only on switch and window focus. |
claudeAccounts.configDir |
empty |
Only if Claude Code runs with a CLAUDE_CONFIG_DIR VS Code does not see. |
claudeAccounts.claudePath |
empty |
Path to claude, if it is not found automatically. |
How it works
Claude Code keeps its login in two places: the tokens (macOS Keychain, or ~/.claude/.credentials.json on Windows and Linux) and the account details (oauthAccount in ~/.claude.json). Switching replaces exactly those two things and nothing else: your settings, history, MCP servers and MCP logins are shared by all accounts. Details: docs/HOW-IT-WORKS.md in the source.
Security
- Saved logins live in VS Code's SecretStorage, which is encrypted by the operating system (Keychain, DPAPI, libsecret). They are never written to settings, logs or Settings Sync.
- Tokens are passed to other programs only through stdin, never on the command line.
- The only network requests are the optional identity check and the optional usage check, both to
api.anthropic.com and both the same requests Claude Code makes.
- No telemetry and no runtime dependencies.
Details and how to report a vulnerability: SECURITY.md, included in the extension.
Limitations
- Windows Credential Manager: newer Claude Code builds are gradually moving Windows logins there, in an internal format. When detected, the extension stops and says so instead of risking your login. Support is planned.
- Claude Code's storage format is internal and may change. The extension checks what it reads and refuses to write when something looks unfamiliar.
ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or CLAUDE_CODE_OAUTH_TOKEN in your environment take priority over any saved login; the extension warns when it sees them.
Use only accounts that belong to you, and follow Anthropic's terms for each account.
License
MIT
| |