Conradium Code: Claude Account SwitcherUse several Claude accounts in Claude Code for VS Code, and see how much usage each one has left. When one account hits its 5-hour or weekly limit, switch to another in one click. No logging out and back in.
What you can do
Getting started
That's it. Your saved accounts now show up in the panel with their usage.
Using your accountsThe panel has two sections:
Each account card has an Open tab button. More options are in the card's
Claude tabsOpen tab opens a chat with that account right in the editor. You can also use the account's colored button in the editor title bar. A Claude tab works much like Claude Code: streamed replies, tool calls with diffs, permission prompts, plan mode, Switching Claude Code to another accountChoose Use in Claude Code in an account's Changed your mind? Run Claude: Undo last switch. Separate windowsOpen in new window in the Important: don't use
|
| Setting | Default | What it does |
|---|---|---|
claudeSwitcher.pollIntervalSeconds |
240 |
How often usage refreshes (minimum 180 seconds) |
claudeSwitcher.warnThresholdPercent |
80 |
Usage % at which the bar turns red and a usage alert shows |
claudeSwitcher.usageAlerts |
true |
Notify when an account in use nears or reaches a usage limit |
claudeSwitcher.autoReloadAfterSwitch |
false |
Reload the window after a switch without asking |
claudeSwitcher.claudeCommand |
claude |
Path to the Claude Code CLI |
claudeSwitcher.sayHiModel |
haiku |
Model used by Say Hi |
claudeSwitcher.showEditorTitleButton |
true |
Show account buttons in the editor title bar |
Privacy
- No telemetry. Nothing is sent to the extension's author or any third party.
- Saved logins are kept in VS Code's encrypted secret storage, on this computer only. Add your accounts separately on each computer.
- The extension only talks to Anthropic, to refresh logins and read usage.
- Use it for your own accounts.
- Usage limits come from an unofficial Anthropic endpoint, which may change without notice.
How it works
Switching swaps the login in ~/.claude/.credentials.json (keeping a backup for Undo). Claude tabs and separate windows give each account its own Claude Code config folder.
Claude Code's refresh tokens can only be used once. To keep every copy working, the extension uses the same refresh lock as Claude Code and writes each new token back to every place that login is stored.
Development
npm install
npm run watch # build in watch mode, then press F5 in VS Code
npm run build:vsix # build the .vsix package
License
MIT