Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ClaudeCode SwitcherNew to Visual Studio Code? Get it now.
ClaudeCode Switcher

ClaudeCode Switcher

Prasun Roy

|
10 installs
| (0) | Free
Use several Claude Code accounts on one project, or a different account per project, without ever logging out. Switch from the status bar; your sessions, memory, skills and settings stay intact across all accounts.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ClaudeCode Switcher

Several Claude Code accounts on one project, or one account per project. Switch from the status bar. Never log out again.

Two things this does:

  1. Use several accounts on the same project. Hit a rate limit? Click the status bar, pick the next account, start a new conversation in the same folder. Your sessions, auto-memory, skills and settings are all still there. Nothing logs out, nothing reloads, the conversation list does not change.
  2. Use a different account for each project. Work account in the work repo, personal in the side project, a client's in theirs. Route a folder once and every new conversation there uses the right account, automatically. All of them can run at the same time in one window.

Every account keeps its own login and its own usage limits. Everything else is one store: sessions, memory, skills, settings and MCP config stay in ~/.claude, whichever account is talking. Start a chat under Work, resume it under Personal tomorrow, and every note Claude saved to memory is already there. This happens automatically; there is nothing to configure.

Why

  • Rate limit hit? Switch, keep going. Same folder, same history, same memory, next account.
  • Right account per project, every time. Route folders once. No more checking which account is signed in before you start.
  • Nothing to remember. The status bar always shows which account a new conversation in this folder will use, and why.
  • Nothing to undo. Disable routing puts every setting back exactly as it was. Accounts are plain directories you can delete.

Quick start

  1. Install, then install the official Claude Code extension if you have not.
  2. Click Claude: default in the status bar → Add another account… → name it.
  3. The folder is routed to it and a sign-in opens. Sign in.
  4. Open another folder, click the status bar, pick a different account. Both run at once.

Confirm with /usage inside a conversation: it names the billing account.

Requirements

  • The official Claude Code extension (installed automatically as a dependency).
  • macOS, Linux, WSL or code-server. The routing script is bash; on plain Windows accounts still work if you set CLAUDE_CONFIG_DIR yourself.
  • node on your PATH, or VS Code's own runtime is used as a fallback.

The status bar is the whole UI

Click Claude: in the status bar. The menu is the account list: the account the current folder uses is marked, accounts not signed in yet say so, and picking one routes the folder to it (and opens sign-in if needed).

Below the list:

  • Add another account…: name it, sign in, done.
  • Open Login Terminal: sign an account in from a terminal instead (needs claude on PATH).
  • More…: remove an account, check health, show status, disable or enable routing.

There are no command palette entries.

How it works

The official Claude Code extension has a claudeCode.claudeProcessWrapper setting. With your consent this extension points it at a generated script under ~/.claude-profiles/_bin/. Each time the official extension starts a new Claude process, the wrapper asks one resolver which CLAUDE_CONFIG_DIR that process should get, exports it, and execs the real binary untouched.

An account is a directory holding only its login; everything else in it is a symlink back into ~/.claude. That is why sessions, memory and settings are the same whichever account you pick.

Resolution order (first match wins):

  1. CLAUDE_CONFIG_DIR already set in the environment: respected, nothing changes.
  2. CLAUDE_PROFILE=<name>.
  3. A .claude-profile file in the folder or any parent up to $HOME.
  4. The longest matching folder prefix in ~/.claude-profiles/map.conf.
  5. Otherwise the default account, which is plain ~/.claude with the variable left unset.

Running conversations keep the account they started with. Nothing is ever logged out. No window reloads.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft