codex-claude-transfer — CLI for Claude Code

codex-claude-transfer, the cct command, moves local Codex and Claude Code sessions between machines as a .codexbundle file.

Install in Claude Code and Codex

Other ways to install

Access and checks

How we review

Extended access. The tool runs code or makes network calls and only reads external data.

  • The program reads and writes Codex and Claude Code session files that may hold sensitive context.
  • A history bundle must be kept in a private place or encrypted, because everyone with access to the store can read it.

This is third-party code. Review the repository files before installing.

What it does

codex-claude-transfer with the `cct` command is a Go command-line program for moving local Codex and Claude Code sessions. `cct export --project .` packs project sessions into a `.codexbundle` file, you copy it any trusted way, and on another machine `cct import ./project.codexbundle` verifies the checksum and unpacks the sessions. There is no cloud account, sync service or background process by default. The `--tool claude` flag exports Claude Code sessions, `import --to claude` or `--to codex` translates a session into the other agent format. `cct relocate` changes the project path in recorded sessions, and `cct skill install` installs the `cct-session-sync` skill for saving sessions to git and restoring them on another machine. There are the `cct ui` and `cct app` interfaces.

Who it is for. Developers who switch laptops, work on two machines or want to continue a Codex session in Claude Code and back.

Good fit when

  • A laptop is rebuilt and the Codex and Claude Code history of a project must move to the new one.
  • A project moved to another folder and sessions must be tied to the new path with `cct relocate`.
  • A session started in Codex has to continue in Claude Code.
  • Project history is stored in a private git repository and restored after a clone.

Not a fit when

  • Cloud sync is needed: the tool does not provide it.
  • A bundle with history is going into a shared public repository: the history may contain secrets.
  • A compatibility guarantee with future agent versions is needed: session formats are their internals.

Example request

Export this project sessions with cct export, show the path to the .codexbundle file and explain how to check the import on another machine in dry-run mode.

Limitations

The tool is unofficial and unaffiliated with OpenAI and Anthropic. The Codex and Claude Code session formats are internal and may change, which would break the program, so it keeps a table of verified agent versions. A bundle is readable forever by everyone with access to the store: the skill asks whether to keep it plain in a private repository or encrypt it with `age`, and it never pushes or passes `--allow-secrets` on its own. Building from source recommends Go 1.26.9 or newer. The last commit was made on 11 November 2026.

How to disable. Remove the `~/.claude/skills/cct-session-sync/` folder, the skill lines from `~/.codex/AGENTS.md` and the `cct` binary. The `cct undo` command reverses a move made with `cct relocate`.

FAQ

How do I move sessions to another computer?

On the old one run `cct export --project .`, copy `project.codexbundle` a trusted way, on the new one first `cct import ./project.codexbundle --dry-run`, then without `--dry-run`. Restart the agent after import.

How do I continue a Codex session in Claude Code?

Import the bundle with the `--to claude` flag. The reverse translation uses `--to codex`.

How do I keep history in git?

Install the skill with `cct skill install`: it saves project sessions into a private store repository and restores them after a clone. Bundles can be encrypted with `age`.

Does the program change agent databases?

No. `cct relocate` rewrites the path in session files with backups and does not touch the Codex SQLite database or `~/.claude.json`.

How do I install it?

With `go install github.com/ahmojo/codex-claude-transfer/cmd/cct@latest`, prebuilt binaries are in releases, and Homebrew and Scoop manifests are in `packaging/`.

Is codex-claude-transfer safe to install?

Extended access. The tool runs code or makes network calls and only reads external data.

Discussion

No questions or reviews yet.

README in short

The README explains the problem of moving local history, shows the exchange through `.codexbundle`, installation, quick use, moving a project to another directory, saving sessions through git and a compatibility table with agent versions.

README badge

Report a problem