Claude account switcher for Windows and macOS: separate profiles for Claude Desktop, the Claude Code CLI and the VS Code extension, switching accounts without logging out. Portable, signed, no installer.
# Add to your Claude Code skills
git clone https://github.com/fierceauditorgrasp/claude-account-switcherGuides for using cli tools skills like claude-account-switcher.
claude-account-switcher is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by fierceauditorgrasp. Claude account switcher for Windows and macOS: separate profiles for Claude Desktop, the Claude Code CLI and the VS Code extension, switching accounts without logging out. Portable, signed, no installer. It has 50 GitHub stars.
claude-account-switcher's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/fierceauditorgrasp/claude-account-switcher" and add it to your Claude Code skills directory (see the Installation section above).
claude-account-switcher is primarily written in PowerShell. It is open-source under fierceauditorgrasp on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-account-switcher against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Latest release: v1.2.0.
Works: Claude Desktop, Claude Code CLI and the Claude VS Code extension.
Claude desktop accounts on Windows and macOS: every login opens in its own window, already signed in, and stays signed in.

Click the button to download the zip. Not the green Code button, which hands over the source tree. That is claude-account-switcher, with the certificate and the checksum list beside it.
Small, signed, and checkable before you run it:
src/, signed, and identical to the copy in the zip,SHA256SUMS; hash the zip against it, or rely on the launcher, which refuses to start on any mismatch.Take the zip with the Download button, then clear the block in its Properties page.
Extract it beside your other portable tools and keep the folder together.
Run Claude Accounts.cmd, add the account Claude is currently signed into, and open it from the list.
Still blocked after unblocking? Windows can hold the launcher behind an execution dialog anyway. Start it once and the app unblocks the folder itself, once verification passes.
The same app exists for macOS: claude-account-switcher-macos-v1.2.0.zip, macOS 12 or newer, Claude in /Applications. Shell scripts, Claude Accounts.command to start, native dialogs instead of a window. No Authenticode there: the launcher checks a SHA-256 list, the build is unnotarised, and the first start needs right-click, Open.
Both read the single Claude Code login, so the app keeps a copy of it per account and puts the copy you pick back in place. Use for Claude Code swaps it under Claude Code's own refresh lock; Save Code login stores whichever account claude is signed into now. Open in VS Code starts the editor in a folder.
Do not run /logout first: Claude Code may revoke the refresh token of the account you are leaving. The change applies on the next message; on macOS restart claude or reopen the extension tab, because the Keychain is cached for about thirty seconds.
An account switcher for Claude Desktop is not a login form. It is a way of keeping several signed-in clients apart on one machine without a second PC and without a browser tab pretending to be one. Three Claude windows, three sign-ins, and no signing out to reach any of them.
Without it, you sign out of one account to reach the next and lose the session both ways. With profiles in place, that cost goes away for good.
It never touches the account you are signed into right now. Adding an account, opening one and closing one all leave the running session exactly as it was.
Claude Desktop is an Electron application, and a profile is the directory Electron is told to use through --user-data-dir. Two profiles are two sign-ins, two cookie stores and two histories, with nothing shared between them.
That is the whole point: the boundary is a folder, not a setting inside the client. Here it is kept under %LOCALAPPDATA%\ClaudeAccounts\slots, one folder per account, and Claude is only ever pointed at it.
Give each plan its own profile and open whichever one you need. Plan state follows the sign-in, so keeping the sign-ins apart is the whole job. Without it, you sign out of one account to reach the next and lose the session both ways.
Once per session the tool has to read the running client's cookie store, which Claude locks while it runs. It closes the default window for about a second and reopens it with the same arguments. It does this at most once every six hours, and other profile windows keep running. Concretely, the switcher writes the cookie store the running Claude already produced into a new slot, then starts Claude with --user-data-dir aimed at that slot, so the first launch is already signed in.
No. Settings, drafts, local storage and history all live inside the profile, so the two accounts behave like two separate installations on the same disk. Where this applies, the setup is an ordinary Store install or a direct download, with nothing patched in place.
Claude Desktop, installed and signed in at least once, and Windows PowerShell 5.1, which is already there on Windows 10 and 11. Nothing else. What you keep is the slots folder, state.json and a 64 KB log.txt, all under %LOCALAPPDATA%\ClaudeAccounts.
Yes. Copy the profile folder to the same slots path on the other machine and it opens there. The account stays signed in, because the session travels with the folder. For developers who keep a work login, a personal login and a throwaway account on one machine, that means every login opens in its own window, already signed in, and stays signed in.
Its profile folder is removed and nothing else is. The other accounts keep their profiles, and the account itself still exists at Anthropic; you can add it back by signing in again. The profile behind work, personal and test is kept under %LOCALAPPDATA%\ClaudeAccounts\slots, one folder per account, and Claude is only ever pointed at it.
No. A profile is a local folder, roughly the same size as the one Claude Desktop keeps for itself. The only JSON that leaves the machine is a small sync snapshot of the account list, sent over HTTPS to the endpoint in src/config.ps1. The cookies stay on disk. Without it, you sign out of one account to reach the next and lose the session both ways.
Only while the copied cookies are still valid. The folder holds a signed-in session, not the password, so a copy behaves like an already-open window: useful until Claude rotates the session. That is also why a copied folder can be re-attached on another PC, and why it goes stale. Concretely, the switcher writes the cookie store the running Claude already produced into a new slot, then starts Claude with --user-data-dir aimed at that slot, so the first launch is already signed in.
Every script is signed and the launcher refuses to start when one fails verification against the pinned certificate, then runs PowerShell with AllSigned. The scripts are in this repository, plain PowerShell in eleven files, with no binaries, no minified bundles and nothing obfuscated. Where this applies, the setup is an ordinary Store install or a direct download, with nothing patched in place.
No. It runs as your user, keeps everything in its own folder and touches no services. Removing it is deleting the folder, and src/uninstall.ps1 clears the scheduled task and the shortcuts for you. What you keep is the slots folder, state.json and a 64 KB log.txt, all under %LOCALAPPDATA%\ClaudeAccounts.
One GET to the GitHub releases API to see whether a newer version exists, and a sync call if an account is queued. Both are plain HTTPS, both fail soft, and the app starts normally when either is unreachable. For developers who keep a work login, a personal login and a throwaway account on one machine, that means every login opens in its own window, already signed in, and stays signed in.
The claude-accounts-releases repository, kept apart from the product page for exactly this reason. The launcher compares the published version with the one in the title bar and offers a link when it is newer. The profile behind work, personal and test is kept under %LOCALAPPDATA%\ClaudeAccounts\slots, one folder per account, and Claude is only ever pointed at it.
Nothing is installed and nothing is edited. The zip carries the project certificate, and Claude Accounts.cmd runs src/verify.ps1 before a line of claude account switcher executes: every script in src must carry a valid Authenticode signature from the thumbprint baked into the launcher, and SIGNATURES.txt must list exactly the files present, no more and no fewer. The app then starts under AllSigned, so a script added later and left unsigned will not run.
You do not have to take any of t