Account Switcher for Claude

Use several Claude accounts in VS Code, such as work and personal, and switch between them in one click. You never have to log out and log in again.
Install from the Visual Studio Marketplace, or run ext install amalnandanp.claude-account-manager in VS Code's Quick Open (Ctrl+P / Cmd+P).
Unofficial. This extension is a community project. It is not made, endorsed or supported by Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic, PBC.
See it in action
Switch accounts in one click
 |
Every account is a card in the Account Switcher sidebar. The active one has a lilac border and a green Active pill.
- Hover another account. Its Inactive pill lights up.
- Click the pill. It confirms with Switched, then settles on Active.
- The status bar follows straight away, showing the new account and how much of its limit is used.
The window reloads so Claude Code starts with the new account. Untick Reload window after switching under the list if you'd rather confirm first.
|
Add an account without a terminal
 |
Click Add account. A sign-in card appears at the top of the list and your browser opens on Claude's sign-in page.
- The card keeps the sign-in link, so you can open it again or copy it.
- If the browser shows a code, paste it and click Continue.
- If the code has expired, the card says so in plain words and you can try again.
When you're signed in, a green Signed in as … message appears and the account joins the list, named after your login. Rename it any time.
|
Rename, remove and more
 |
Hover a card for quiet Rename, Sign out (on the active account) and Remove buttons.
- Rename happens in place. Enter saves and Esc cancels. Duplicate or empty names are caught while you type.
- Remove asks once, inside the card. It signs the account out of VS Code; your Claude account and chats are not deleted.
- Right-click a card (or use … in a narrow sidebar) for Activate this account, Rename, Open config folder and Remove….
|
Usage in the status bar

The status bar shows the active account and its usage (Personal · 30%). At 80% the text turns lilac, and when a limit is reached it shows the reset time instead. Hover it to see both limits as rings, with reset times and quick links. Click it to open the quick pick:

Dark and light themes

The sidebar takes its surfaces from your VS Code theme and adds a single lilac accent, with green for the active account and pale red only for errors. The Usage section at the bottom shows the active account's session and weekly limits, like Claude Code's /usage.
Features
- One-click switching from a card's status pill, the status bar or the quick pick.
- Usage at a glance: session and weekly limits with reset times in the status bar, its hover card and the Usage section. When the saved numbers are more than 10 minutes old, the extension asks Claude Code to fetch fresh ones in the background (
claude -p /usage, which starts no conversation and uses nothing from your limits).
- Sign in from the sidebar: no terminal needed. You can sign out from the sidebar too.
- Clear account cards: two-letter avatar, email, organization and plan badge (Free, Pro, Max, Team, Enterprise and others).
- Tells you what's missing: if Claude Code is not installed or is too old, a banner says so and offers to install it.
- Each account only once: an email can be connected to one account only. A sign-in with an email that is already in the list is signed out again, and existing duplicates are marked so you can fix them.
- Terminal follows the account: the
claude command in new integrated terminals uses the selected account.
- Pin an account to a project: a work repository can always use your work account, whatever your default is.
- Shared across VS Code profiles: every profile sees the same account list, and each profile remembers its own active account.
- Existing accounts detected automatically: on first run, your current login and any
~/.claude-* folders are added for you.
Getting started
You need the Claude Code extension. It includes the claude program this extension uses to sign in.
- Install Account Switcher for Claude from the Marketplace. Your current Claude login appears as the first account.
- Open Account Switcher in the activity bar and click Add account.
- Sign in in your browser. The account is added and named after your login. Rename it any time.
- Click the account's Inactive pill to make it active. The window reloads with the new account.
From then on, click the account name in the status bar to switch.
How it works
Claude Code keeps its login, settings and history in a config folder. By default that folder is ~/.claude, but it can be changed with the CLAUDE_CONFIG_DIR environment variable. Each account in this extension gets its own folder. Switching sets CLAUDE_CONFIG_DIR through the Claude Code extension's claudeCode.environmentVariables setting, and through the integrated terminal environment. Your credentials never pass through this extension.
- The account list is stored in
~/.claude-multi-account.json.
- The active account is stored in your user settings, or in the workspace settings when a project is pinned.
- Switching reloads the window so the Claude Code extension starts with the new account. Running Claude sessions restart; untick Reload window after switching in the sidebar (or set
reloadAfterSwitch to ask) if you'd rather confirm first.
Commands
| Command |
What it does |
Account Switcher: Switch Account |
Pick the active account |
Account Switcher: Add Account |
Add a new account |
Account Switcher: Manage Accounts |
Open the accounts sidebar |
Account Switcher: Pin Current Account to This Project |
Always use the current account in this workspace |
Account Switcher: Unpin This Project |
Follow the default account again |
Account Switcher: Open Accounts File |
Edit the account list as JSON |
Account Switcher: Open Settings |
This extension's settings |
Settings
| Setting |
Default |
Description |
claudeMultiAccount.reloadAfterSwitch |
always |
always reloads the window as part of switching, ask asks first, never leaves it to you |
claudeMultiAccount.terminalFollowsAccount |
true |
Set CLAUDE_CONFIG_DIR in new integrated terminals |
claudeMultiAccount.claudePath |
empty |
Full path to the claude program. Empty means find it automatically, including the copy inside the Claude Code extension. User setting only: projects cannot set it |
Security and privacy
- No credentials pass through this extension. Signing in and out is done by Claude Code's own
claude auth command. Logins stay where Claude Code keeps them (the system keychain or the account folder).
- No network calls of its own. Usage numbers are read from the copy Claude Code saves in each account folder. To refresh that copy the extension runs
claude -p /usage, so the request is Claude Code's, with hooks, plugins, MCP servers and project settings off, in an empty private folder. It never runs for an account pinned by a workspace you haven't trusted. Only Anthropic sign-in links (claude.ai, claude.com, anthropic.com) are shown or opened.
- Projects can't take control. A project's settings cannot choose which
claude program runs. In Restricted Mode, a project's pinned account is not passed to terminals, and terminals only ever get a folder that belongs to one of your accounts.
- Careful with deleting. Only a Claude folder used by that account alone can be moved to the Trash. Your home folder,
~/.claude, open projects and folders that hold other accounts are always kept.
- Your account list is protected. The list is written atomically, and if it ever can't be read, it is saved aside before being rebuilt.
To report a security problem, see SECURITY.md.
Requirements
- VS Code 1.94 or later (the same as the Claude Code extension).
- The Claude Code extension, or the Claude Code CLI. The sidebar tells you if either is missing or too old.
- Works on macOS, Windows and Linux, and over Remote SSH, WSL and containers. In those setups the sign-in page opens in your local browser.
Notes
- Removing an account signs it out and moves its folder (settings, history and projects) to the Trash. You can choose to keep the folder instead. The default
~/.claude folder is never deleted.
- Terminals that were already open keep their old account. Open a new terminal after switching.
- If your browser is already logged in to the other account when you sign in, log out there first or use a private window.
License
MIT
| |