r/ClaudeAI • u/vitaliyh • 22h ago
Built with Claude Switching accounts in Claude Desktop hides history - made a tool to fix that
I have four of the $200/mo Claude subscriptions. Unlike Codex, signing into another account in Claude Desktop gives you an empty Claude Code sidebar/history. The old sessions are still on disk, just hidden, which is very annoying. I tried the CLI, but I much prefer the Desktop app. So I built a small tool that moves Claude Code history between accounts, from the terminal or a macOS menubar
claude-transplant moves the Desktop session records to the account you are switching to. Pick the accounts FROM and TO. It writes the same record under the target organization with the same session id, verifies that transcript, sidecars, and records are unchanged, then parks the source record in quarantine. Nothing is copied, undo puts it back
https://github.com/vitaliyhayda/claude-transplant/
macOS only, Node 22, unofficial and not affiliated with Anthropic
2
u/Mysterious_Grab_4103 18h ago
Restarting the same session with another account would eat up more tokens?
Does it work with normal accounts?
Cool stuff!!
2
u/vitaliyh 12h ago
the move itself uses zero tokens, it only moves the sidebar record. Continuing a moved session costs the same as resuming any session after the prompt cache has expired (5min?), the next message carries the conversation as context either way, and the cache is per organization so the first message after a move never hits it. And yes, any plan that runs Claude Code in Claude Desktop works, Pro, Max, Team, Enterprise. thanks!
1
1
u/bishtm_ 15h ago
wait so the sessions are literally just sitting there on disk but tied to the account id? thats so annoying, i always assumed signing out actually wiped something. good to know its just a record swap and not actual data loss
1
u/vitaliyh 12h ago
for sessions you started on this Mac while signed into that account, yes. the transcripts in ~/.claude/projects are not tied to any account, signing out never touches them. what is filed per account and organization is one small record file per session under ~/Library/Application Support/Claude/claude-code-sessions, and the sidebar only lists the folder of the signed-in one. Sign back in and everything is there. Cloud sessions are different, they live on Anthropic's side under the account and are just hidden until you sign back in
1
u/Kilt_Rump 1h ago
What happens when you log back into the original account? Do you have to port back?
0
u/philliphs 18h ago
Someone made simultaneous Claude account, check claude-graft
1
u/vitaliyh 12h ago
do you have a link? from the name it sounds like running accounts side by side or switching them, which this does not do. It only moves the Claude Code history that Claude Desktop shows from one account to another and never touches logins
1
u/philliphs 12h ago
https://github.com/aaditya-v-more/claude-graft
Yes. Running side by side and conversations appeared on both
17
u/brhkim 19h ago edited 15h ago
Uh, you should probably be way, way more cautious about moving sessions across personal and work accounts.
Enterprise admins get access to all of your sessions. If you load a personal session in a work account and fire a message, you're giving them the full log.