<aside> 🎯
Start working with Claude Code or Codex
Choose one or both, sign in, decide who approves what the agent does, and learn the loop that gets good work out of it.
</aside>
Last reviewed: 3 October 2026 · product details checked against vendor pages on that date; the section on more than one agent updated 8 November 2026
<aside> ⏱️
Estimated time: about 15 minutes to read; to start, ~5 minutes for a desktop app; ~20 minutes for a CLI (install and sign-in). Prerequisite: for a CLI, Build & set up your software environment (Step 05): Terminal, Homebrew, and Git, plus Node.js only if you install through npm. The desktop apps need no setup.
</aside>
A coding agent works on your own filesystem: it reads files, writes code, runs commands, and manages Git repos. Chat is like emailing someone a document and asking for edits; a coding agent is like sitting next to someone who can open your files, make changes, and test them on your machine. It does not yet entirely replace experienced engineers, but it lowers the barrier to building and experimenting a long way.
Anthropic's is Claude Code; OpenAI's is Codex. I use the two about equally for coding, and you can follow this page with either.
The harness, in practitioners' terms, is everything besides the model that makes an agent work: its tools, its instructions, and the guardrails around it. Context engineering, a term coined by Dex Horthy, is the craft of deciding what goes into the model's limited working memory. Nearly every choice on this page is a choice about the harness, which is why two products built on different models feel so alike.
Both agents run in several places, and on each side the surfaces share their configuration, so pick by what feels natural rather than by capability.
| Where you are sitting | Claude Code | Codex |
|---|---|---|
| Terminal | claude, the full-featured CLI |
codex, an open-source CLI (Apache-2.0) |
| Code editor | An extension for VS Code and Cursor; a JetBrains plugin, still labeled beta, that needs the CLI installed separately | An extension for VS Code, Cursor and Windsurf; Xcode and JetBrains IDEs provide their own integrations |
| Desktop app | The Code tab in the Claude desktop app | Codex in the ChatGPT desktop app's switcher, beside Chat and Work |
| Browser (the work runs in the vendor's cloud) | claude.ai/code, on your GitHub repositories | chatgpt.com/codex, on GitHub or, in beta, GitLab |
| Phone | The Claude app: cloud sessions, or Remote Control of a session on your own machine | The ChatGPT app: Codex Remote, driving a connected Mac or Windows PC |
Start with a desktop app if you want visual diffs, parallel sessions side by side, and a gentler start. Start with a CLI if you live in the terminal, need scripted or CI runs, or prefer keyboard-driven tools. Your skills transfer between them, and you can switch any time.
Both desktop apps can also let the agent operate your screen and browser: see Let an agent use your computer and your browser.
Less separates the two than you might expect. Both read AGENTS.md, the file that tells an agent how you work (Claude Code only since v2.1.277, and only when no CLAUDE.md or CLAUDE.local.md sits in your working directory or above it; see Step 11). Both run skills in the same open format, connect to outside tools over MCP, and have plugins, hooks, subagents, a plan mode, a cloud version, and phone control. Each ships an importer for the other's setup: /import in either CLI, or Settings > Import in the ChatGPT desktop app. The vendors' names for everything are mapped on Claude and ChatGPT side by side.
Three differences are plain on the vendors' own pages. Claude Code needs a paid Claude plan or a Console account with prepaid API credits; OpenAI's pricing page lists Codex on every ChatGPT plan, Free included (pitched there at "quick coding tasks"). OpenAI publishes estimated usage limits; Anthropic publishes no absolute numbers. And the two start from different safety defaults, covered below.
The independent evidence. The closest thing to a like-for-like test is Terminal-Bench 4.0, which runs each model inside its maker's own tool, so each figure measures the model and its harness together. GPT-6 Astra in Codex resolved 58.2% of the tasks (± 2.8); Claude Fable 5.1 in Claude Code, 57.9% (± 3.8). That is a tie, well inside the error bars. The Claude run used about 1.8 times the tokens and cost about 1.9 times as much ($6.2k against $3.3k, the board's own cost figures rather than what a subscriber pays; checked 20 September 2026). Beyond that, a search on 20 September found no independent, hands-on comparison of the two tools since Fable 5.1 shipped on 1 September 2026; what exists comes from companies with a product to sell.
<aside> 🧑💻
My own view. I find Codex a reliable coding agent with GPT-6.1 Sol, and I regard GPT-6 Astra as the best frontier coding agent; which jobs I give each agent, and why, are on Running Claude Code and Codex side by side.
</aside>
The choice is also cheaper to reverse than on the no-code side: most of what you build around a coding agent is plain files in your repository, which both tools can read. So pick by which AI lab's model you already pay for and which workflow feels more natural.