Bring a Claude Code setup into Codex with a safe preview first.
cc2codex is a migration assistant for people moving from Claude Code to Codex. The most reliable way to use it today is through the Codex CLI plugin flow, with the Codex app UI as a secondary path if local plugins appear there on your machine.
- reusable Claude instructions and
CLAUDE.mdguidance - skills that map cleanly into Codex skill directories
- agent workflows that can be simplified into Codex skills
- high-confidence hooks
- MCP server structure and local command configuration
- MCP tokens, API keys, and other secrets still need to be re-entered
- Claude-only hook events may need cleanup or removal
- team-style Claude agent workflows may need redesign
- large or very Claude-specific instruction sets may need trimming after import
If you only copy one section, copy this one.
- Clone the repo and install dependencies:
git clone https://github.com/ussumant/cc2codex.git
cd cc2codex
npm install- Install the Codex plugin:
node bin/cc2codex.js install-plugin --force- Check that the install is healthy:
node bin/cc2codex.js verify-plugin-install- Start Codex in Terminal:
codex- Inside Codex, open the plugin manager:
/plugins
- Enable
Claude to Codex Migration Assistant. - Start a new thread and paste this:
Help me bring my Claude Code setup into Codex.
That starts the non-technical flow:
- Codex finds your old Claude setup automatically
- Codex creates a safe preview in
/tmp/cc2codex-trial/.codex - Codex explains what was imported and what still needs attention
- Codex only updates your real
~/.codexafter you approve it
Recommended follow-up prompts:
Show me what was imported and what still needs my attention.
Finish importing my Claude setup into Codex.
If Codex says the plugin install is stale or broken, run:
node bin/cc2codex.js install-plugin --forceIf local plugins show up in the Codex app on your machine, you can also:
- Restart the Codex app.
- Open the Plugins page in the UI.
- Look for
Claude to Codex Migration Assistant. - Enable it and use the same prompts shown above.
If the plugin does not appear there, use the Codex CLI flow above instead.
node bin/cc2codex.js start --claude-home ~/.claude --codex-home ~/.codexRun that from inside the cc2codex folder. If you want a global command, run npm link once and then use cc2codex start ....
node bin/cc2codex.js install-plugin --forcenode bin/cc2codex.js verify-plugin-installUse the Codex CLI route instead:
node bin/cc2codex.js verify-plugin-install
codexThen inside Codex CLI:
/plugins
Make sure Claude Code data exists at ~/.claude, or use a custom Claude home path in advanced mode.
That means you ran:
node bin/cc2codex.js ...from the wrong directory. Fix it by cd-ing into the repo folder first, or by running npm link and then using cc2codex.
Use these only if you want more control than the standard Codex CLI plugin flow provides.
cc2codex start [--claude-home ~/.claude] [--codex-home ~/.codex] [--trial-codex-home /tmp/cc2codex-trial/.codex] [--project ./my-project] [--yes] [--json]Runs the guided migration flow with a safe preview before live cutover.
cc2codex install-plugin [--target-dir ~/.codex/plugins/cc2codex-migration-assistant] [--marketplace-path ~/.agents/plugins/marketplace.json] [--force]Installs the bundled Codex migration plugin.
cc2codex verify-plugin-install [--target-dir ~/.codex/plugins/cc2codex-migration-assistant] [--marketplace-path ~/.agents/plugins/marketplace.json] [--claude-home ~/.claude] [--json]Checks plugin wiring, repo path, marketplace entry, and Claude home availability.
cc2codex scan [--claude-home ~/.claude] [--project ./my-project] [--json]Read-only inventory of a Claude Code setup.
cc2codex doctor [--claude-home ~/.claude] [--project ./my-project] [--codex-home ~/.codex] [--json]Readiness report with risks and migration guidance.
cc2codex guide [--claude-home ~/.claude] [--project ./my-project] [--codex-home ~/.codex] [--trial-codex-home /tmp/cc2codex-trial/.codex] [--json]Step-by-step migration playbook.
cc2codex plan [--claude-home ~/.claude] [--project ./my-project] [--codex-home ~/.codex] [--json]Staged migration plan without writing files.
cc2codex apply --global [--force]
cc2codex apply --skills [--force]
cc2codex apply --global --skills [--force]Applies staged migration scopes.
cc2codex validate [--codex-home ~/.codex]Validates a migrated Codex setup.