Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ClaudeSwapNew to Visual Studio Code? Get it now.
ClaudeSwap

ClaudeSwap

LogicalAngel

|
117 installs
| (1) | Free
See your active Claude Code account in the status bar and switch between accounts (personal, company) in one click.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ClaudeSwap

See which Claude Code account you are signed into, and switch between accounts (for example personal and company). Works in two places that share the same saved accounts: the VS Code status bar, and Claude Code chat.

What it does

  • Shows your active Claude account in the VS Code status bar and in the Claude Code status line.
  • Switches accounts in one click (VS Code) or one command (chat).
  • Remembers each account the first time you sign in, so there is no setup.
  • Updates on its own when you sign in or out from the CLI.
  • Works on macOS, Linux, and Windows.

Accounts you save in one place show up in the other, because both use the same store (the OS keychain on macOS, a protected file on Linux and Windows).

In VS Code

Click the account in the status bar. The menu lists your accounts with their plan (Pro, Max, Team, Enterprise); pick one to switch to it. The same menu has Add account, Rename an account, Forget a saved account, and Refresh.

Give accounts short names like "Work" and "Personal" with Rename an account. To tell them apart at a glance, colour the status bar text per account:

{ "claudeAccounts.accountColors": { "Work": "#4FC1FF", "Personal": "#D97757" } }

To install: open the Extensions view, search for ClaudeSwap, and click Install. Your active account appears in the status bar right away.

Use a different account per project

Open the status bar menu and choose Use an account for this workspace. Pick an account and ClaudeSwap binds it to this project. The choice is saved in the project's .vscode/settings.json (an email, not a secret):

{ "claudeAccounts.account": "you@company.com" }

From then on, any claude you run in this project's integrated terminal uses that account, while your global login and other windows are untouched. So you can open two projects in two windows on two different accounts and run them at the same time. Open a new terminal after binding; existing terminals need a relaunch.

It works by giving the project its own Claude config directory (its credentials, plus links to your settings.json, CLAUDE.md, commands, agents, skills and plugins, so later changes reach it too) and pointing CLAUDE_CONFIG_DIR at it for this window's terminals. Tokens Claude refreshes there are copied back to your saved accounts, so the global login and pinned projects never hand each other an expired token. Unbind from the same menu.

In Claude Code chat

Install the plugin from this repository's marketplace:

/plugin marketplace add LogicalAngel/claudeswap
/plugin install claude-switch@logicalangel

Run /account to see your accounts, or /account you@company.com (or a name such as /account Work) to switch.

Show the active account in the status line by pointing your settings.json at the bundled script (use the absolute path where the plugin is installed):

{
  "statusLine": {
    "type": "command",
    "command": "node /absolute/path/to/claude-plugin/statusline/claude-account.js"
  }
}

You can also run the CLI directly:

claude-switch list
claude-switch use you@company.com
claude-switch rename you@company.com Work

The status line shows the account's name if you gave it one, and a 📌 in a pinned workspace.

A switch in chat takes effect in a new claude session, because Claude Code keeps the current session's token in memory.

Add an account

In VS Code choose Add account, or in a terminal run claude auth login. Sign in with the other account once and it is saved automatically. After that it shows up in both places.

Under the hood

Claude Code keeps account metadata in ~/.claude.json (the oauthAccount field) and OAuth tokens in the OS credential store: the Keychain on macOS, or ~/.claude/.credentials.json on Linux and Windows (it respects CLAUDE_CONFIG_DIR). ClaudeSwap saves a snapshot of each account it sees and writes the chosen one back when you switch. It reads and writes only the same places Claude Code already uses, and writes files atomically so a running claude never sees a half-written ~/.claude.json. On Windows the saved-accounts file is restricted to your user with icacls. Set CLAUDE_SWITCH_STORE=file to keep snapshots in a protected file instead of the Keychain.

This depends on how Claude Code currently stores things, so a future update could change it.

Build from source

npm install
npm test                # engine tests (never touch your real login)
npm run lint
npm run build:icon      # regenerate the icon font and logo (needs rsvg-convert)
npm run sync:plugin     # copy the shared engine into the plugin (CI checks this)
npm run package         # build the VS Code extension (.vsix)

Pushing a v* tag builds the .vsix, attaches it to a GitHub release, and publishes to the VS Code Marketplace and Open VSX when the VSCE_PAT and OVSX_PAT repository secrets are set.

VS Code extension: open the folder and press F5 to run it in an Extension Development Host. Claude Code plugin: claude --plugin-dir ./claude-plugin to load it locally.

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