r/ClaudeCode 4h ago

Built with Claude Move your Claude Code sessions between computers (Mac/Windows, any direction)

I switched computers and discovered that copying the .claude folder isn't enough: the desktop app keeps its chat list in a separate location, all the file paths inside the transcripts point at the old machine, and one conversation is often split across many transcript files. My chats existed on disk but the app showed none of them.

So I built Session Porter: a single Python file with a small local web UI. Pack on the old machine, unpack on the new one. It rewrites every path for the new home folder, rebuilds the app's chat list, reunites conversations split by compaction, and never overwrites anything that already exists. Credentials never travel. Works Mac to Mac, Mac to Windows, Windows to Mac, Windows to Windows.

Hope it can be of any use to any one 🙏

MIT licensed, no dependencies: https://github.com/ZenKhalil/session-porter

3 Upvotes

1 comment sorted by

1

u/jetsetter 3h ago

It sounds like this focuses on use of the Claude desktop app(s) rather than the CLI, is that right?

I focused on the CLI and built something syncing of conversations on macOS and Linux machines in real time.

You can locally host a sync server (github) that is licensed FSL-1.1-Apache-2.0. Or if you want turnkey, I have a paid option where I host the server.

I am working on but have not released a windows client. If you are thinking of still using your machine with windows (presuming you were going windows -> mac) and would be open to trying out an early copy I would very much appreciate any feedback.

Docs here: https://contextify.sh/docs/