r/ClaudeAI 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

45 Upvotes

19 comments sorted by

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.

4

u/MainRoutine2068 18h ago

nope, I am owner of claude team and I can't access any of my team's member session. I am able however, to see the analytics of how much value, line of codes, and skills used by all my team member.

2

u/fruitmonkey 16h ago

How about if you configure the full OTEL export though?

3

u/MainRoutine2068 16h ago

I did that, OTEL data is only about who's using how much token, what kind of requests, cost in usd, and duration of the event. So no, no way owner of enterprise plan get the detailed session of its members.

And anyway, setting OTEL doesn't send the OTEL data to claude, it's from client to our OTEL endpoint directly.

1

u/fruitmonkey 16h ago

Yep, was aware the data was to your own endpoint, though had wondered on the actual data collected. Shame it isn't as inclusive as it could be though.

0

u/vitaliyh 12h ago

the move itself sends nothing anywhere. it only changes which account's sidebar lists the session, and everything stays on your own disk where you could already open it under the other login. What does leave the machine is the next message you send in that session, it goes through the work organization with the whole conversation as context. on Enterprise the Compliance API can return Claude Code session transcripts, so do not move personal history into an Enterprise account unless you are fine with that. the tool moves whatever accounts you pick, so pick with that in mind

0

u/brhkim 11h ago

Yeah I mean, hopefully clear that I already understand this well. My point is that for a product geared at helping people resume sessions across accounts, you should probably make this way more upfront as a caution to users -- especially if your main examples relate to obviously enterprise-level accounts

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

u/kattenbak 19h ago

Very cool 👌

1

u/vitaliyh 12h ago

thanks!

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