Use Claude Code and Codex side by side
The short answer: you don’t have to choose. Keep one set of project instructions that both read, give each the work it suits, and have one check the other. amux lets them work together directly, so Claude Code can start a Codex agent to review its branch and act on what it finds. Codex users can start with amux for Codex. Without amux, OpenAI’s plugin for Claude Code calls Codex from inside a session.
Where it goes wrong
You’re working on Tally, a small accounting app. Claude Code has finished the checkout redesign, and you’d like a second opinion from a different model before you merge. So you open Codex in another terminal, explain the project again, and paste in what changed.
Then you run out of usage on one tool halfway through a task, and the work stops while the other sits idle.
Why it happens
“Claude Code or Codex?” is a popular question, but the answer changes with every model release, and most comparisons are out of date within months. A more lasting reason to use both is that they’re different. A second model makes different mistakes, so it’s good at finding the first one’s. And two subscriptions give you two sets of limits.
The tools don’t know about each other, though. Each has its own instructions, its own sessions and its own screen. In all of Claude Code’s ways of running agents in parallel, the workers are Claude sessions. So using both well takes:
- One set of instructions, so you don’t explain the project twice.
- A clear view of both, so neither gets forgotten.
- A way to hand work across, without being the clipboard yourself.
Without amux
Share your instructions
Codex reads AGENTS.md.
Claude Code reads it too, when there’s no
CLAUDE.md. So keep your instructions in AGENTS.md. If you need a CLAUDE.md as
well, have it import the other file with a line saying @AGENTS.md.
Run them next to each other
Give each one a tmux window and a git worktree of its own, so they can’t overwrite each other. You get no overview, and you move anything between them by hand.
Call Codex from Claude Code
OpenAI’s plugin for Claude Code adds Codex commands to a Claude Code session:
/plugin marketplace add openai/codex-plugin-cc/plugin install codex@openai-codex/reload-plugins/codex:setup/codex:review then has Codex review your changes, and /codex:rescue hands it a
task. It’s the quickest way to get a second opinion, and it works one way, from Claude
Code to Codex.
With amux
amux treats them as equals. Install Claude Code and Codex and sign in to each, on your own subscriptions, and start whichever suits the job:
amux new claude --name checkout-redesign --prompt "Redesign the checkout page"amux new codex --name deps-bump --prompt "Update our dependencies"In the app, press n to start an agent, then Ctrl+S followed by a to switch between Claude and Codex. You use them the same way, with the same chat, the same way of answering and the same review:
The handoff is where it gets useful. Every agent amux runs can see your other agents, message them and start new ones, whichever kind they are. Ask in plain words:
Start a Codex agent to review this branch, and tell me what it finds.
Codex does the review as an agent you can open and talk to, and its answer goes back to Claude Code, which can act on it. It works in both directions, and on any computer you’ve paired:
Ask the Codex agent on build what the new endpoint returns, then update the client to match.
If you run out of usage on one tool, you can carry on with the other, on the same project.
To go further, Agents working together covers what agents can do with each other, and Your first agent covers starting Claude and Codex.
Last reviewed on 6 November 2026.