csm moves Claude Code sessions between machines

Claude Code stores session data locally in ~/.claude/, so switching from a MacBook to an Ubuntu server loses your context. The open-source cc-session-migrate (csm) tool makes sessions portable using a cluster model in the style of Consul.
The design centers on a leader server running HTTP and WebSocket on port 9827. Agents hold persistent outbound WebSocket connections to it, so no inbound ports are needed on their machines, which sidesteps NAT. Sessions move between nodes through the server, streamed in 64 KB chunks with a SHA256 check before an atomic move.
Backups to S3-compatible storage (R2, MinIO) are configured per node, defaulting to 30-day retention and at least 3 copies per session. Builds are available for Linux, macOS, and Windows on amd64 and arm64, under the MIT license.
Up next
rtk promised 60-90% fewer tokens. JetBrains measured 7.6% more spend
rtk promised to cut Claude Code tokens by 60-90%. In JetBrains’ paired test over 86 SkillsBench tasks it ran 7.6% more expensive at low effort and roughly zero at high. Its own analytics still claimed 96.2 million tokens saved.
Related stories
- Intent-lens spells out Claude Code calls before they run
- Codedict cuts Claude Code tokens 63%, but cost only 26%
- claude-files-pane shows Claude Code’s file reads live
- lcc cut one Claude Code session 49.5% without a summary
- catnap keeps Claude Code from compacting mid-task
- Script checks whether your network breaks Claude API uploads
Comments
No comments yet. Be the first.
Join the conversation
Sign in to leave a comment. It appears after moderation.

