Repository navigation
Claude Switcher 2.0.0
The first release of Claude Switcher by Nyxon: switch Claude Desktop accounts on Windows without signing in again, and take your Claude Code chats with you.
irm https://raw.githubusercontent.com/nyxon-tech/claude-switcher/main/install.ps1 | iexThen open a new terminal and run claude-switcher. To install exactly this release instead of the latest main:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/nyxon-tech/claude-switcher/v2.0.0/install.ps1))) -Ref v2.0.0What's new
- Interactive menu when run with no arguments: arrow keys,
/to search, Space to pick several, Esc to go back. Every item is also a command. - Move or copy chats between accounts, one by one or all at once.
- Merge every chat an account is missing from all the others.
- Recover chats whose history is on disk but that no sidebar lists, with their real title, project, model and dates. Terminal sessions show up too.
- Undo for every chat change, restored byte for byte from a journal.
doctorchecks the install, the signed-in account and every chat list, flags junctioned chat lists, and warns about Claude Code's 30-day history cleanup.new <name>adds an account without logging out of the saved one. Plusrename,remove,accounts,chatsandversion.- One-line installer with a
claude-switchercommand and a Start menu shortcut. No admin rights.
Fixed and changed since claude-profile-switcher 1.0
- Finds the Microsoft Store install under
%LOCALAPPDATA%\Packages\Claude_*\LocalCache, where%APPDATA%\Claudedoes not exist. - Waits only for Claude Desktop itself. A Claude Code CLI in a terminal is also called
claude.exe, andvmwpbelongs to every Hyper-V VM (WSL2, Docker), so either could stall the wait forever. - Swaps
buddy-tokens.jsonandplan-usage-history.json, which Desktop 2.x keeps per account, and clears every login file before loading a profile so nothing from the previous account survives. - Refuses to save over a profile when Desktop was signed into a different account by hand.
- Non-Latin profile names and chat titles survive Windows PowerShell 5.1.
Profiles saved by 1.0 in %USERPROFILE%\.claude-instances keep working.
Tested on
Windows 11 26200, Claude Desktop 2.2553.1 (Microsoft Store), Claude Code 2.1.275, PowerShell 7.6 and Windows PowerShell 5.1. CI runs the full test suite in both shells and a real install on windows-latest.
Files
| File | SHA-256 |
|---|---|
claude-switcher.ps1 |
73d42b3c2b0706673ce4a3adb867eebf6d4b75f7a37a8472d2be3b5d31ff7a59 |
install.ps1 |
95e7aa6dd58a69be2ee8b1bd9c2c863d4b52e41f7300d6f2af66822d6b0f86d6 |
Check a download with Get-FileHash .\claude-switcher.ps1.
Thanks
Built on claude-profile-switcher by @NeezerGu, who worked out which of Desktop's files make up a login. The research in claude-transplant by @vitaliyhayda on Desktop's per-account records shaped the chat features.
Unofficial and not affiliated with Anthropic.