Codex and Claude Code side by side on one board
How to run OpenAI Codex and Claude Code side by side in Picnic, on your own machines: setup, picking an engine per job or loop, and comparing results.
Picnic · · 7 min read
Most developers who use coding agents seriously have tried both Claude Code and OpenAI's Codex, and many pay for both a Claude plan and a ChatGPT plan. The usual result is two terminals, two apps and two sets of habits. Picnic puts them on one board: every job picks an engine, Claude Code or Codex, and runs on one of your own machines under that machine's own login.
This guide covers how to set both up, how the engines behave differently inside Picnic, how to choose one per job or per loop, and how to compare them fairly by running the same task on both.
Why use both
There are a few good reasons to keep both engines around:
- You already pay for both. Picnic never calls a model API itself. Claude Code runs under a Claude plan login and the Codex CLI under a ChatGPT plan login, so each job draws on a subscription you already have. Spreading work across both means you hit either plan's usage limits less often.
- They're good at different things on different days. Models change every few months, and which agent handles your codebase better is something you find out, not something a benchmark tells you.
- A second opinion is cheap. When a bug is stubborn or a design choice matters, running the same Plan job on both engines gives you two independent answers to compare.
- You have preferences. Some days you swear by Claude Code, other days by Codex. On one board, both are first-class.
Setting up each engine
Each machine that runs jobs needs the engines you want to use, installed and logged in on that machine. Picnic shows a setup check for each, and never reads, copies or relays either tool's credentials: it runs the official claude and codex binaries the same way you would in a terminal.
Claude Code
Claude Code is Picnic's default engine. Install it, then log in on the machine:
claude auth login
This signs the machine in with your Claude account. Our Claude Code setup guide covers installing it and what Picnic's setup checks look for.
Codex
Codex is optional. Install the Codex CLI with npm or Homebrew (Codex on GitHub):
npm i -g @openai/codex
# or
brew install --cask codex
Then sign in on the machine with your ChatGPT account:
codex login
OpenAI's README lists Sign in with ChatGPT for Plus, Pro, Business, Edu and Enterprise plans. Picnic's setup check only asks whether codex login status succeeds; it never looks at the login itself. The Codex checks are optional, so a machine without Codex stays green, and they only matter when you send that machine a Codex job. See the Codex setup guide.
Note: Watch out for
npm i -g codexwithout the@openai/scope. That's a different package.
GitHub
Both engines open and merge pull requests with the GitHub CLI, so each machine also needs gh logged in. The same is true whichever engine a job uses.
How the engines behave in Picnic
Most of what Picnic does is the same for both engines. Every job gets its own git worktree and branch, a draft pull request, a chat thread, and the same finish line from its mode. After the agent reports, the machine runs the same checks: does the PR exist, is CI green, is the demo there and playable, is the plan there. It merges with a squash only when the required checks are green, and red CI goes back to the agent, whichever engine it is.
There are a few real differences, and they come from how each CLI runs unattended.
Claude Code: steer it while it works
Picnic runs Claude Code through its Agent SDK in auto mode, with Picnic's own rules checked before every tool call: no force-pushes, no approving its own PR, and a question to you before sudo, changes to CI config or secrets, or writes outside the job's repository and worktrees.
Because the session takes live input, you can type into a Claude Code job's chat while it's running and it reads your message. It can also stop and ask you a question with options, which puts the job in Needs you until you answer from your Mac or iPhone.
Codex: runs a turn, then listens
Picnic runs Codex with codex exec, the CLI's non-interactive mode, in the job's worktree. Codex's own sandbox lets it write inside the worktree and the few folders Picnic adds (the artifacts folder and the repository's git folder), with network access on so it can push and open PRs, and it never waits for approval because nobody is at that terminal.
Two practical consequences:
- Chat waits for the next turn. A message you send while Codex is working is delivered when the current turn ends. Follow-ups resume the same Codex session with
codex exec resume, so it keeps its context. - Questions end the turn. Codex has no way to ask you mid-run. Where Claude Code would ask, Codex either goes ahead when it's plainly safe or stops, says what it needs, and lands in Needs you. Your reply resumes the session.
Neither is better in general. If you like to steer as the agent works, Claude Code fits. If you like to write a full brief and come back to a result, Codex's turn-by-turn shape is no handicap.
Project instructions
Both agents read instructions from the repository. Codex reads AGENTS.md files, from your global Codex folder down to the folder it's working in (Codex docs). Claude Code reads CLAUDE.md, and can read a repository's AGENTS.md too (Claude Code docs). If you use both engines on the same repository, the simplest setup is one AGENTS.md with your rules and a CLAUDE.md that imports it, so both agents get the same instructions.
Picnic's account-wide global instructions are added to every job's prompt, whichever engine runs it.
Choosing an engine
You can choose the engine at two levels.
Per job
When you create a job, pick the engine next to the machine, repository and mode. Claude Code is the default. This is the right level for one-off choices: "this refactor goes to Codex", "this UI bug goes to Claude Code".
Per loop
Loops run a mode and prompt on a schedule, and can set an engine too. A nightly Ship on Codex and a weekly Plan on Claude Code can sit side by side. More in loops: scheduled coding agents. See modes and engines.
A rough guide to which engine fits
We won't tell you one model is smarter; that changes too fast and depends on your code. These are practical rules of thumb:
- Use the engine whose plan has headroom. If you're near your Claude plan's limits this week, send routine work to Codex, and the other way round.
- Pick Claude Code when you expect to steer a job mid-run, or when the job is likely to need a decision from you partway.
- Pick Codex when the brief is complete and you want a result without interruptions.
- Use both for the hard ones. For a stubborn bug or a big design call, run the same Plan job on both and compare.
- Keep what works. Once you notice one engine does better on a kind of job in your codebase, bake that into your loops and your habits.
Comparing results: the same task on both
The fairest way to compare the engines is to give them the same job and look at what comes back. Picnic makes this simple, because each job is independent: its own worktree, branch, PR and chat.
- Write the job once. Same prompt, same repository, same base branch, same mode.
- Create it twice, once with Claude Code and once with Codex. You can run both on one machine (each gets its own worktree) or on two machines, as long as each machine has the same toolchain.
- Pick a mode that doesn't merge on its own. Two Ship jobs on the same task might both try to merge. Use Plan for written answers, or Plan and build for code, which stops in Needs you with a demo and a draft PR. Branch protection that needs a review works too.
- Compare when they're ready to review. Look at the diff each one produced, how many CI rounds it needed, how long it took, whether it asked for help, and whether the result is right. Read the chat, too: it shows every step each agent took.
- Keep one. Move the better one on to Ship to merge it, and mark the other as done or delete it with its branch.
Do this a handful of times on real work, not toy tasks, and you'll learn more than any leaderboard will tell you about how each engine handles your codebase.
Note: Running the same job twice uses usage from both plans. Save it for the jobs where a second answer is worth it.
Limits worth knowing
- Machines need each engine installed and logged in. A Codex job sent to a machine without Codex fails its setup check. Install it, or pick another machine.
- Codex jobs can't ask mid-run. They stop and wait instead, as above.
- Both engines run as the machine's user. Codex's sandbox and Picnic's rules for Claude Code are guard rails, not a security boundary from you. A job can reach what that machine can, so mind what's logged in on it (security).
- Your plans' usage limits apply. Picnic doesn't add any usage of its own, but it doesn't add any headroom either.
Try it
If you have Claude Code or Codex on a Mac already, you're most of the way there. Picnic is free for up to 3 machines. Download Picnic, add a machine, and run the same job on both engines. For more machines, see pricing.
