Switcher for Claude Code [Unofficial]Your AI, always ready: more accounts, fewer interruptions. A Claude Code account switcher for VS Code. Use multiple Claude accounts (Pro, Max, Ultra, Team) and switch between them in one click, without going through the browser login every time. See every account's 5-hour and weekly usage limits at a glance, keep chats going automatically when one account hits its limit, and pin a folder or a single chat to its own account. What's new1.6.0
1.5.4
1.5.3 to 1.5.0
Earlier versions: see the Changelog. Use your chats from a phone, tablet or laptop with Remote access and Awaydesk, an independent tool not made by or affiliated with Anthropic: see Remote access. VisualsSee every switch and why, and what happened while you were away:
Enjoying it?If Switcher for Claude Code saves you time, please give it ★★★★★ on the Marketplace. It's the best way to help other Claude Code users find it. Found a problem or have an idea? Open an issue. Keep it up to dateThis is an active project, with new features arriving regularly: auto-continue after limits, Keep alive and plan detection all came in the last few weeks. Make sure Auto Update is on (Extensions view → Switcher for Claude Code → ⚙ → Auto Update), so you get each one as soon as it's out. Checking for updatesA copy installed from a downloaded
After an update, the Accounts page says once what's new in that version, with See all changes for the full changelog. Remote accessUse your chats from your phone, tablet or laptop: see your chats, answer Claude and switch accounts from anywhere, at home, at the office or on mobile data. Nothing to install on the other device. Scan a code or open a link, and your chats open in its browser. Everything is encrypted from end to end, all the way from your device to this PC.
The orange Remote access button sits left of Add account on the Accounts page. On a narrow page it reads Remote. A small mark on its icon shows the state: being set up, on, off, or needs you. Remote access is done by Awaydesk, a second extension from the same author. The Switcher fetches it for you; you do not have to look for it. Awaydesk runs in the background and has no screen of its own: everything about Remote access is in this one pop-up. The first press
Afterwards, the same button opens Your devices: the Remote access switch, each device with Remove, and Connect another device. At the bottom: What is this?, Reset address (every device is removed and has to connect again) and Disable Awaydesk.
Disable Awaydesk removes every device, turns Remote access off, stops Awaydesk and stops it starting with Windows. This PC keeps its certificate, so turning it on again later is quick. A box in the confirmation, unticked at first, also deletes this PC's record on the Awaydesk (beta) service; setting up again then counts as a new PC and may have to wait until tomorrow. If something needs you, the pop-up says what and what to do, for example when the Awaydesk (beta) service can't be reached (this PC keeps trying) or when it has no slot for this PC today (this PC tries again by itself). Good to know
Awaydesk is independent too: not made by, affiliated with or endorsed by Anthropic. It uses your own Claude subscription on your own PC, and your use of Claude stays under Anthropic's terms. About this projectUnofficial: a community project, not made by or affiliated with Anthropic. Claude and Claude Code are Anthropic's trademarks. The Switcher keeps everything on your machine. No server of its own, no telemetry, no account data leaves the machine. Remote access, if you set it up, is done by Awaydesk, a separate extension. Works on Windows, macOS and Linux. Saved logins are encrypted at rest using whatever credential store the platform provides. See Where your data lives for details. InstallDownload
Reload VS Code. You should see your Claude account name in the bottom-right status bar, next to a usage meter.
First runOpen the Claude Accounts page: click the Claude Accounts icon in the
activity bar, or run Claude Accounts: Open Accounts from the Command
Palette (
On a fresh install the page also shows a short Getting started list that ticks itself off as you go: save the account you're using, add another account, and (optional) add a pinning login. The Accounts pageOne card per saved account: its email, its use with when each limit resets (5h Session, Fable and Weekly, as the plan has them), and everything you can do with it. The active account, the one new chats use, has a soft blue glow. Each card has a round blue pin button with a count of what's pinned to that account (starting from 1); click it to open the pin panel and see which chats and folders. Behind the bottom of each card, a faint grid of squares fills up with the context of that account's most recent chat (see Chat context). A thin line runs round each card to show how long its main login has left: grey until half its days are gone, then amber, then red as it runs out. Hover the card for the exact days (see Logins).
The button left of Pin chat switches to a compact view. Each card's top becomes one line, with a smaller picture and the email moved into the name's tooltip. The usage bars and toggles sit closer and the padding shrinks, but the text keeps its size. The page eases into the new view, or switches at once if your system asks for reduced motion, and it remembers your choice. In a narrow sidebar the Pin buttons shorten to Chat and Folder before anything wraps. It opens as an editor tab, like a file. It also lives in its own sidebar
view, in a compact one-column layout. Both are always available; the
The page follows your VS Code theme (light, dark or high contrast) and uses VS Code's own icons. It loads nothing from the network, and every button goes back to the extension, which checks it before doing anything. The activity logThe Switcher keeps a log of what it did, and why. Open it with the log button on the Accounts page (a clock with a back arrow) or ⚙ → Activity log. A blue dot on the button means there are entries you have not looked at.
While you were awayIf no editor window has been in front for 30 minutes or more, or you close the
editor and open it again after that long, the Switcher tells you, once, what
happened meanwhile: chats that stopped, what auto-continue did, early switches,
messages from another device and login changes. It shows on the Accounts page if that
is open, and otherwise as one editor notice, with See the full log and
Dismiss. Nothing is said when only small things happened, such as keep alive.
The time you were last away is kept in The status bar
The Command Palette has six commands, all under Claude Accounts: Open Accounts, Switch Account, Add Account…, Pin Folder to Account…, Update Usage and Show Status. The usage meter
The usage figures follow the account the focused chat runs on, so a pinned chat shows its own account's. They turn orange at 80% and red at 95%. The figures come from Claude Code's own cache. Clicking updates every account's figures, this one straight from Anthropic. Days leftThe days sit after the usage figures: This replaces the old Every account at a glanceHover the percentages for a table of every saved account. It shows how much of each limit is used, with the time left until it resets in brackets, and the weekly Fable limit as a percentage. The tick marks the account this window uses.
Click a name to switch to that account globally (pinned folders are unaffected). "(reset)" means that limit has reset since the figure was taken, so 0% is the real number now. The ▶ next to an account that isn't active starts its 5-hour session (see Starting a 5-hour session early). PlansEach account's card shows its plan next to its email, such as Max 20x, Team Pro or Pro. A Team seat with Max-level usage shows as Team Pro, one with Pro-level usage as Team Standard. An account saved before 1.3.1 shows it after its next background renewal or switch. Some plans have no 5-hour limit, only weekly ones. For those, the card shows the
model's weekly limit (Fable) where the 5-hour bar would be, the status bar shows
two figures ( Accounts are listed in the order of the names you see, so renaming one moves it. How the figures stay live. A saved account's access expires 8 hours after it was last renewed (the login itself lasts about 30 days). To keep reading usage for accounts you are not using, the extension renews each saved login in the background once it has less than an hour left, the same way Claude Code renews its own. Usage is read at most every 15 minutes per account, and not at all while Anthropic is rate-limiting it. The active account is read every 2 minutes, so an early switch (see Auto-continue after limits) sees it in time. Every VS Code window shares that one reading, so it stays one request every 2 minutes however many windows are open. A reading Claude Code just made itself is used instead of asking again, and all windows pause together if Anthropic asks them to. These usage checks never slow or count against your chats: they go to a different part of Anthropic's service. What it will never do:
Turn the whole thing off with the What switching does and does not touchThis is the part worth understanding, because an earlier design got it wrong. Claude Code keeps everything in one directory: your credentials and every
conversation, your project settings, memory and todos. So the switcher keeps
that one directory exactly where it is ( Untouched by a switch: chat history, the sidebar conversation list, memory,
Changed by a switch: who you are billed as, and which usage limits apply. No reload needed. Claude Code checks its login before each request and reads it again when it has changed, so chats that are already open move to the new account with their next message. A reply that is already being written finishes on the account it started on. Logins: main and pinningThree words are used throughout:
A login lasts about 30 days, then you sign in again. The card's thin line and the status bar's days show how long each has left (see Days left). Signing inSigning in happens on the Accounts page, with no terminal.
If the account is already saved, signing in renews it instead of adding a copy: the page says how many days it now has. Sign in again renews the main login. When the account already uses pinning, its previous main login (if it has time left and outlasts the pinning login) becomes the pinning login, so nothing is wasted. A login with under 3 days left is kept, with a warning. Add account for pinning (⋯ menu, or the pin panel) signs the account in once more:
Renewing and the last-day swapLogins are never moved, only swapped. Taking a login out of one place and putting it in another would sign the first one out, so the switcher exchanges main and pinning instead: both change places in one step, and chats already open pick up their new login on their next message, the same way a switch works. The last-day swap is quiet. When the main login is on its last day, the pinning login outlasts it, and nothing on either is in the middle of a reply, they swap. Idle open chats don't stop it. If the main login ends first (a chat was replying), the pinning login takes over as main as soon as no chat on that account is replying. The account then needs a new pinning login: until you add one, its pinned chats and folders start on the active account. Reminders come when a login has 3 days left and again on its last day: Sign in again, or Not now, which asks again a day later. When a valid pinning login is about to take over from main, the main login's reminders wait. If a pinning login ends, its pinned chats and folders start on the active account instead, and the page says so (a notice and a banner, with Sign in again). Signing in again puts them back.
|
| Choice | What happens |
|---|---|
| Ask me what to do (the default) | A VS Code notification each time: switch to an account with room and continue, continue when the limit resets, or leave it |
| Auto-continue on the same account | It waits for the limit to reset, then continues |
| Auto-continue on a different account | It switches to another account and continues straight away |
| Do nothing | Stopped chats are left as they are |
Choosing Auto-continue on a different account asks which account to use: The account with the most limit, or In my order, where you choose the order and the accounts Claude uses. Change it later with the sentence's second choice, or Edit order. It always moves to the first account in that list that has room, so it comes back to an earlier one once that has reset. An account left out of the list is never switched to. If none has room, it waits for the first one to reset, then switches to it.
Switching early, so work doesn't stop. The sentence's first choice can be a share of the limit instead: "When a chat [reaches 80% of its limit ▾], [switch to a different account ▾] using [the account with the most limit ▾]", with the share anywhere from 50% to 90%. When the active account gets there, the extension switches before anything stops, and the chat that is running carries on from its next request. Choose ask me what to do instead to be asked first.
- The 5-hour limit switches at your share. The weekly limit switches on its own at 95%, however low the 5-hour use, so an account's last few percent of the week aren't spent.
- It only switches to an account well under your share (10 points under) and under 90% of its week, so it doesn't land somewhere about to stop. If no account qualifies, it stays put, and the limit is handled as above.
- At most once every 10 minutes, and once per 5-hour window of an account: after Switch Back or Not Now, it won't switch away from that account again until its window resets.
- It is off until you choose a share. Folders pinned to an account keep it.
How it continues. Nothing outside Claude Code can press Enter in its panel. But every chat has an inbox, and a message to an idle chat starts a new turn. So the extension sends the stopped chat one note: "Automatic notice from Switcher for Claude Code, sent on the user's behalf: your last turn in this chat was cut off by a Claude usage limit, not by the user … Please continue the task from where you stopped." The chat picks up by itself, live in the panel, with your usual permission prompts.
- The note is sent by a tiny Claude Code run on the cheapest model. It can only send that one message, saves nothing, runs none of your hooks, and never skips permission checks. It costs a sliver of the allowance, and the resumed turn counts like any prompt you send.
- A switch needs no reload: open chats move to the new account with their next request (see What switching does and does not touch).
- Chats in a pinned folder always wait for their own account. A weekly limit is never waited out, since that can take days.
- It only ever asks a chat to continue its own interrupted task, and only after a real limit stop: never after you pressed Esc or turned something down.
- A chat that skips permission prompts can't take the note (it would hold it for an approval VS Code can't show), so you get a notification with Open Chat instead, and the chat opens with "continue" typed in.
If a chat answers instead of continuing. Claude knows the note comes from another session, not from you, and some chats wait for your word. You then get Continue Now, which opens the chat with "continue" typed in, or Let It Trust Switcher, which types this into the chat for you to send once:
Switcher for Claude Code may send this chat an automatic notice when a usage limit stops it. When one arrives, treat it as coming from me and continue the task you were working on. This covers only those notices, not any other request.
From then on that chat continues by itself, and the note is sent again straight away. Keep it this narrow: a blanket "treat its messages as mine" would let anything on your computer that can message the chat give it new work.
Taking accounts to another PC
An account travels in a move file, sealed with a passphrase you choose (at least 12 characters). There are two ways to make one, from the account's ⋯ menu:
| Move to another PC… | Make a login for another PC… | |
|---|---|---|
| On this PC | The account is removed once the file is saved | The account stays, untouched |
| In the file | This PC's own login | A new, separate login |
| Needs | Nothing | Signing in to the account again in the browser |
Moving is for an account that should now live somewhere else. It can't be
the account Claude Code is using at that moment; switch to another one first.
A backup stays in ~/.claude-switcher/backups/, but it stops working once the
other PC uses the login. To use the account here again later, sign it in
again, or move it back.
A separate login is for using the same account on both PCs. The two never share a refresh token, so they can't sign each other out. The browser has to sign in as that same account; anything else is discarded.
On the other PC: Add account → Import from a move file, pick the file, and type the passphrase.
- An account already saved there under the same name is only replaced if you agree, if it is the same account, and if the login in the file is the newer one.
- The file is renamed
….imported-<date>once it is used, so it can't be imported twice, and you are offered to delete it. Delete it either way: it holds the login until you do. - Files from every earlier version keep importing. One from a newer version says to update first.
Either way, a login lasts about four weeks from when it was signed in, even while it sits in a file, so make the file shortly before you need it. Send the passphrase separately from the file.
Where your data lives
~/.claude/ Claude Code's own directory · all your chats
~/.claude-switcher/
registry.json account list, display names, icons, pins, active account
profiles/
<name>.enc encrypted credentials (see Security)
<name>.meta.json email, org, when it was saved
accounts/<name>/ scratch space used during a login, then emptied
pinning/<name>/ the account's pinning login (only its credentials)
pinning/<name>.json when that login ends, no secrets
pins.tsv the pins, as the wrapper reads them
bin/ the wrapper that starts each chat Claude Code opens
usage/ the last live usage figures per account
locks/ short-lived locks, so windows never renew at once
updates.json the last update check (time, latest version, its notes), Later, and the last "what's new" shown
activity.json the activity log: 30 days, at most 2,000 entries, nothing secret
away.json when an editor window was last in front, and what you were already told
registry.json is plain JSON and safe to edit by hand; the extension watches it
and reloads.
On macOS, Claude Code does not keep its current login in a file. It uses the
login Keychain item Claude Code-credentials, and falls back to
~/.claude/.credentials.json only when the Keychain has nothing. The switcher
reads and writes that same item, so a switch looks to Claude Code exactly like a
fresh sign-in. Show Status prints where it is looking. Pinning logins use
the Keychain too: each has an item of its own, named after its folder
(Claude Code-credentials- and 8 characters), so they never touch the main
one.
Security
Saved logins are encrypted at rest. The key never leaves your OS credential
store, so a copied .enc file is inert on another machine or user account:
| Credential store | Encryption | |
|---|---|---|
| Windows | DPAPI, CurrentUser scope |
DPAPI |
| macOS | login Keychain | AES-256-GCM |
| Linux | libsecret, else a 0600 key file |
AES-256-GCM |
Run Show Status to see which one your machine is using.
The Linux file fallback is the weakest of the three: anything that can read
your home directory can read that key. It is only used when secret-tool is
not installed.
- Account directories are restricted to your user: ACL inheritance stripped on
Windows,
chmod 700elsewhere. - A refresh token is never duplicated: a login is moved into the encrypted profile, and the plaintext copy is deleted only after the encrypted one has been read back and verified.
- A pinning login is kept the way Claude Code keeps its own (a credentials file in the switcher's folder on Windows and Linux, the Keychain on macOS), not encrypted like the saved main logins, because Claude Code has to read it directly.
- Decryption is authenticated, so a tampered profile fails loudly rather than producing garbage.
- The extension never logs, prints or transmits token material.
Profiles do not travel between machines. That is the point of tying them to the OS store, and a refresh token is replaced each time it is used, so a copy would stop working anyway. To use an account on a second machine, add it there and sign in again, or send it over in a move file (see Taking accounts to another PC). That file is sealed with your passphrase (scrypt and AES-256-GCM), not with this machine's store.
Troubleshooting
"Switched … but it reports signed out" · That account's refresh token ended (a login lasts about 30 days). Click Sign in again on its card.
A chat is still using the old account · Its next message should go out as the new one. If it doesn't, reload the window.
"Anthropic is rate-limiting usage checks" (HTTP 429) · The usage endpoint limits how often one account's usage can be read, and Claude Code's own panel reads it too, every time you focus it. Right after a switch several of those land at once. It clears by itself, usually within minutes; the meter keeps showing the last good figures meanwhile, and the extension stops asking until the server says it may, so clicking again does not make it worse.
"The macOS login Keychain is locked" · Unlock it (log out and back in, or open Keychain Access) and try again. The extension refuses to guess while the Keychain is locked, rather than switching to a stale login.
macOS asks whether security may use a keychain item · Choose Always
Allow. That is the system tool the extension uses to read and write the
login, the same one Claude Code itself uses.
The account name has an orange background · The current login isn't saved as a profile. Click Save it on the Accounts page, or you will lose it the next time you switch away.
A pinned folder or chat says its account needs a pinning login · The account has no pinning login that works (it was never added, or it ended), so its chats use the active account. Click Sign in again or Add account for pinning on the page. ⚙ → Check everything shows which pins are affected.
A sign-in on the page doesn't finish · If your browser shows a code instead of handing the sign-in back, copy it into Paste code. A wrong code starts the sign-in again with a message. Cancel stops it; Show the browser opens the link again.
claude not found · The extension checks the usual install locations for
your platform (AppData\Roaming\npm\... and ~\.local\bin on Windows;
~/.local/bin, /opt/homebrew/bin, /usr/local/bin elsewhere), then where /
which, then the copy of claude that comes inside the Claude Code extension.
So this only appears when the Claude Code extension isn't installed either:
install it, or install Claude Code's command-line tool.
Anything else · Run Claude Accounts: Show Status and send the output from the "Switcher for Claude Code" output channel. It contains no token material.
Upgrading from an earlier version
What changed in each version is in CHANGELOG.md.
From 1.3
Installing 1.4 upgrades it in place, and your accounts, names, icons and pins carry over. What changes:
- Pin keys are gone. Pinned chats and folders now use the account's
pinning login instead. At the first start, each window login from 1.3
that still works becomes that account's pinning login, so those pins keep
working, and the old window folders are removed. Your own files from them
are kept in
~/.claude-switcher/backups/. A window that is still open is left for a later start. Anything else needs ⋯ → Add account for pinning once; ⚙ → Check everything lists what's missing. - Signing in happens on the page, not in a terminal.
- The status bar's
Work (29D)is replaced by days after the usage figures, and the account you are using is now called the active account. - Pinning is Beta.
From 1.3.0
Installing 1.3.1 upgrades it in place, and everything carries over.
From 1.2
Builds up to 1.2.0 came from GitHub, under the id local.claude-account-switcher.
From 1.3.0 the extension is clumsyboss.account-switcher-claude-code, and VS Code
treats that as a different extension, so the old copy stays installed next to
the new one. Until it's gone, the new one stays out of the way and offers
Uninstall Old Copy; then reload. Your saved accounts, names, icons and pins
carry over: they live in ~/.claude-switcher, not in the extension.
From 1.1
Installing 1.2.0 upgrades it in place, and everything carries over. What changes:
- Switching is safer. A switch refuses to save one account's login under
another's name, aborts without changing anything if
~/.claude.jsoncan't be read, and puts the previous login back if it fails part-way. A saved login is backed up to~/.claude-switcher/backups/before it is replaced. registry.jsonis never written over while it has an error. The page and the status bar hover say what is wrong, andregistry.json.bakholds the previous good copy.- Your files keep their permissions and links. A
~/.claude.jsonorsettings.jsonthat is a link stays a link. If other users can read them, Show Status offers to fix that; nothing is changed without asking. - A
disableRemoteControlyou set by hand is left alone until some account has Remote Control switched off.
From 1.0
The old command list is folded into the Accounts page. Renaming, icons, Remote Control, sign-in-again and removing an account are now on each account's card. Removed:
- Backup / Restore. A backup couldn't move an account to another laptop (the encryption is tied to the machine, and the refresh token inside it is replaced each time it is used). Add the account on the other laptop instead.
- Per-window and machine-wide modes, Open New Window as Account, New
Terminal as Account and New Chat as Account. Folder pins replace them.
A machine left in one of the old modes is put back on the switcher the first
time the new version starts. A machine-wide
CLAUDE_CONFIG_DIRthey set is cleared only if you agree when asked; the answer is remembered.
Your saved accounts, names, icons, pins and window logins carry over as they are.
For contributors
Two editions are built from this one source tree:
| What it ships | |
|---|---|
| main | The release: everything that is finished and works. |
| experimental | The release, plus whatever is being tried out before it ships. See docs/experimental.md. |
New features go into experimental first. Once they have been tested, they move
into the release by adding their command ids to MAIN_COMMANDS (or, for a
switch on the page, its name to MAIN_FEATURES) in lib/edition.js. The two editions share an extension id, so
installing one replaces the other, so you can never end up with two status bars
fighting over the same account store.
npm test # about 2,850 tests, no network, no touching your real ~/.claude
npm run stage # build both editions into dist/ without packaging
npm run package # both .vsix files into dist/
npm run package:main # just the release
To develop, open this folder in VS Code and press F5. Running from source is
always the experimental edition. test/edition.test.js fails if the two
builds drift apart, and test/page.test.js holds the Accounts page to its
rules: no network, no unescaped text, and no transition longer than 250ms.


