Skip to content

rhobales/claude-code-chat-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

cchat

A small cross-platform tool (Windows, macOS, Linux) to export and import Claude Code chats, so you can move conversations from one machine to another.

Claude Code stores every conversation as a local JSONL transcript under ~/.claude/projects/, and it has no built in sync. cchat lets you pick chats, bundle them into a single .zip, and restore them on another machine, rewriting the project paths so the chats show up again.

Features

  • Clickable GUI and a scriptable CLI.
  • Pick all or individual chats from a sortable, searchable table.
  • Export the selection to one portable .zip (transcripts, sidecar files like subagent and tool output, plus a manifest).
  • Import on another machine with a per chat resume folder, so each chat reappears in claude --resume at the right local path after a move.
  • Auto-detects this machine and its Claude data folder.
  • Pure Python standard library, no pip install required.

Quick start

python cchat.py                                   # open the GUI
python cchat.py list                              # list available chats
python cchat.py export --all --out chats.zip      # export everything
python cchat.py import chats.zip --all --into /path/to/project

Requirements

  • Python 3.8 or newer. The GUI uses Tkinter (bundled on Windows and macOS; on Linux install python3-tk).

Notes

  • Transcripts are plain text and can contain secrets, so handle exported .zip files with care.
  • Resuming copied chats is unofficial and can depend on the installed Claude Code version. Reading the history always works, and cchat never deletes anything on import.

Files

  • cchat.py engine and CLI.
  • cchat_gui.py the Tkinter GUI.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages