Guides

How to run Claude Code and Codex together on one Mac

By Diego Partida, who makes Tendeck · Updated

Short answer

Install both CLIs and sign in to each with its own plan; they keep separate logins, settings and limits. Put shared instructions in AGENTS.md: Codex always reads it, and Claude Code reads it when there's no CLAUDE.md (or when your CLAUDE.md imports it). Give each agent its own git worktree so they never edit the same files, and split the work by role, for example Claude Code writes and Codex reviews.

Why run both

Claude Code and Codex are separate agents from separate companies, with separate plans. Running both on one Mac gives you two things:

They don’t get in each other’s way: each keeps its own login, settings and conversation history. What you have to manage is the repository they share.

Vendor facts below come from the Claude Code docs and OpenAI’s Codex docs, checked November 14, 2026.

Install and sign in to each

Claude Code needs a Claude plan that includes it (Pro and up; the Free plan doesn’t) or an Anthropic Console account. Install it with the native installer from its setup docs (or brew install --cask claude-code), then run claude in your project and sign in:

curl -fsSL https://claude.ai/install.sh | bash

Codex works with a ChatGPT plan that includes it or an OpenAI API key. Install it with one of OpenAI’s three options:

npm install -g @openai/codex

Then run codex and choose Sign in with ChatGPT or an API key. The Codex install guide covers the other two installs and what each sign-in gives you.

Share one set of instructions

Both agents read project instructions from a file, but not the same one by default:

Reads Notes
Codex AGENTS.md Global ~/.codex/AGENTS.md, then one per folder from the repo root down, up to 32 KiB
Claude Code CLAUDE.md Reads AGENTS.md instead when there’s no CLAUDE.md or CLAUDE.local.md (v2.1.277+)

So you have two clean setups:

  1. Only AGENTS.md. Both agents read it. This is the simplest.
  2. CLAUDE.md that imports AGENTS.md. Keep shared rules in AGENTS.md and Claude-only notes in CLAUDE.md. If both files exist and CLAUDE.md doesn’t import AGENTS.md, Claude Code reads only CLAUDE.md. The import syntax is in Claude Code’s memory docs.

Put in it what both need: how to install dependencies, how to run the tests, and what not to touch.

Keep them off each other’s files

Two agents in one folder edit the same files. Give each its own copy with a git worktree.

Claude Code makes one for you:

claude --worktree checkout-form

That starts the session in .claude/worktrees/checkout-form/ on a branch called worktree-checkout-form. On exit, a clean worktree is removed and one with work in it asks first.

Codex has a --worktree option on codex exec and codex fork. For an interactive session, make the worktree with git and start Codex inside it:

git worktree add ../shop-codex -b codex/payment-rounding
cd ../shop-codex && codex

Worktrees separate files, not processes. If both agents start a dev server on the same port, they’ll still collide.

Split the work by role

The pattern that works best is one writer and one reviewer:

Swap roles by task, not by habit. And review and merge one branch at a time: parallel writing is fast, parallel merging is where conflicts show up.

Mind the two sets of limits

Running both doesn’t raise either plan. It gives you two to draw from.

Both on one board

This is the maker’s part, so weigh it accordingly. Tendeck is a native Mac app that runs coding agents on cards of one board, and Claude Code and Codex both get the whole board:

Tendeck doesn’t include either CLI or any plan: you install both and sign in with your own accounts.

Related: Install Codex CLI on a Mac · Claude Code vs Codex · Codex on Tendeck · Run several agents in parallel · Use more than one Claude Code account

Questions people ask

Do Claude Code and Codex share usage limits?

No. Claude Code draws on your Claude plan and Codex on your ChatGPT plan or API key. Each counts its own usage, so running both spreads the work across two allowances.

Will Claude Code read my AGENTS.md?

Yes, when the project has no CLAUDE.md or CLAUDE.local.md. If it has a CLAUDE.md, Claude Code reads only that one, unless your CLAUDE.md imports AGENTS.md. Reading AGENTS.md directly needs Claude Code v2.1.277 or later.

Can both agents work in the same folder?

They can, but they will edit the same files and can undo each other's work. Give each one its own worktree, or keep one of them read-only, as a reviewer.

Which one should write and which should review?

Either way works. Many people let the one they trust more for the task write, and the other review the diff with a fresh context. Swap them when one runs low on its plan's usage.

Tendeck lives on your Mac

You’re not on a Mac right now. Get the link by email and start the 7-day trial when you’re at your Mac: no card.

One email with the link. No list, no follow-ups.

Download the .dmg anyway