Codex vs Claude Code: Same Three Tasks, Timed and Scored
We gave OpenAI's Codex and Anthropic's Claude Code the same three jobs on the same Mac on the same day, with one prompt each, then checked every result by hand.
Claude Code passed 18 of our 18 checks and Codex passed 13. Both fixed the two bugs we planted, in the same two lines. Codex lost points on phone text and button sizes in the website, and on how its weekly goal treated habits that had none. The plans were not equal: Codex ran on the $8 ChatGPT Go plan and its default model, Claude Code on the $200 Claude Max plan, so read the result as these two set-ups, not as a final verdict on either tool.
What This Guide Covers
- The scoreboard: 18 checks across three tasks
- Phone screenshots of both bakery websites
- What each tool said it did, beside what it did
- Plans, prices and usage limits side by side
- How to use Codex inside Claude Code
- Which one to pick, by who you are
New to these tools? Start with our guides to vibe coding with Claude and vibe coding with ChatGPT.
TL;DR Quick Summary
Which is better? In our test, Claude Code: 18 of 18 checks against 13 for Codex, and 3 min 20 s of total time against 4 min 1 s. Where Codex fell short: small text and buttons on a phone, and a weekly goal that every habit was given, with no way to remove it. Where they tied: both found and fixed two planted bugs in seconds. What it costs: Codex starts on ChatGPT plans from $0; Claude Code needs a paid Claude plan from $20 a month.
The difference was in the checking, not the coding. Asked to add a weekly goal, Claude Code wrote a small fake browser and tested its change in it. Codex checked that the code was valid and stopped. Neither was asked to test anything, and the tool that tested shipped the version with no faults we could find.
Table of Contents
The scoreboard first, then each task with its screenshots, then cost and setup.
Codex and Claude Code in One Paragraph Each
Codex is OpenAI's coding agent. You describe a change in plain English and it reads your files, runs commands and edits code, in the ChatGPT desktop app, a terminal, an editor extension or the web. It comes with ChatGPT plans; OpenAI lists the Free and Go plans for quicker, lighter tasks in the desktop app.
Claude Code is Anthropic's coding agent and does the same job: it works in a folder, runs commands and edits files, from a terminal, an editor extension, a desktop app or the web. It needs a paid Claude plan; the free plan does not include it.
What they share
- Both work on files on your own computer and ask before doing anything outside the folder you give them.
- Both read a plain-text instructions file for each project.
- Both ran in a sandbox in our set-ups.
Where they differ
- Codex comes with ChatGPT, from the free plan up. Claude Code starts at $20 a month.
- Their instructions files have different names: AGENTS.md and CLAUDE.md.
- Each uses its own company's models.
Appy Pie AI is not in this comparison. We used the two tools as a first-time builder would, in plain English, with no code typed by us.
How We Tested Codex Against Claude Code
Both tools ran on the same Mac on 22 October 2026, each in a fresh empty folder for every task, with the same prompt text sent word for word and no follow-up prompts.
| Codex | Claude Code | |
|---|---|---|
| Plan | ChatGPT Go, $8 a month | Claude Max 20x, $200 a month |
| Model | gpt-5.6-terra (its default on this plan) | claude-opus-5-5 (its default on this plan) |
| How it ran | Codex in a terminal, sandbox set to this folder only | Claude Code in a terminal, sandbox on |
| Our own settings | Left out: our personal settings and instructions file | Left out: our personal settings and plugins |
| Prompts per task | One | One |
Each prompt began with the same short preamble: work only in this folder, reply in plain English because I have never coded, and stop any local server before finishing.
- Build: a one-page website for a made-up bakery from a 159-word brief, scored on the 8 checks from our AI model test.
- Add a feature: "Let me set a weekly goal for each habit." in an existing habit tracker, scored on the 8 hidden checks from our vibe coding vs agentic coding test.
- Fix: the same habit tracker with two bugs we planted, described the way a user would describe them.
Codex vs Claude Code Results at a Glance
Claude Code vs Codex, task by task: Claude Code passed every check. Codex passed 13 of 18 and was faster on one of the three tasks. Shorter bars are better for time.
Task 1 checks (of 8)
Task 2 checks (of 8)
Task 3 bugs fixed (of 2)
Task 1 time
Task 2 time
Task 3 time
| Task | Codex | Claude Code |
|---|---|---|
| 1. Bakery website | 6/8 · 2 min 56 s · 3 files | 8/8 · 1 min 39 s · 1 file |
| 2. Weekly goal | 5/8 · 28 s | 8/8 · 1 min 24 s |
| 3. Two planted bugs | 2/2 · 37 s | 2/2 · 18 s |
| Total | 13/18 · 4 min 1 s | 18/18 · 3 min 20 s |
Scores from our hand checks in Chrome; times from each run's log. Full logs, prompts, outputs and test scripts are kept with this post's build files.
Task 1: Build a One-Page Bakery Website
The brief named a made-up bakery, its address, phone, hours, six items with prices, and four things the page needed, including a cake enquiry form. It said most customers would use a phone and that there were no photos yet.
| Check | Codex | Claude Code |
|---|---|---|
| All six prices exactly as given | Pass | Pass |
| No wrong opening time | Pass | Pass |
| No business fact we did not give | Pass | Pass |
| No photos added (the brief had none) | Pass | Pass |
| The form does not pretend it sent anything | Pass | Pass |
| Readable on a phone (no more than 10% of words under 14 px) | Fail | Pass |
| At least half the buttons and links 44 px or larger | Fail | Pass |
| Name, menu and prices readable without JavaScript | Pass | Pass |


What Codex Built
Three files and a polished look: a yellow hero, a serif headline ("Good things rise early.") and drawn bakery artwork in place of photos. Prices and hours were right and it invented no hard facts, only friendly lines such as "cakes for every little-big occasion". The form opens the visitor's email app and says so. It failed the two phone checks: 12.9% of the words were under 14 px, the smallest at 11 px, and 10 of its 13 buttons and links were under 44 px.
What Claude Code Built
One 16 KB file with a menu bar that stays on screen, the menu in three groups, today's opening hours picked out, a tap-to-call phone number and a directions button. No text was under 14.4 px. Its form also opens the email app, and it explained why: a page cannot send email by itself without a service behind it. It also flagged the brief's email address as a placeholder to replace.
Measured at 390 px wide in headless Chrome with our audit script, the same one used in our model test.
Task 2: Add a Weekly Goal to a Habit Tracker
The app was a one-file habit tracker with daily ticks, streaks and backups. The prompt was one sentence: "Let me set a weekly goal for each habit." Nothing told either tool how a week should run or what to do with habits that already existed. We scored the result on eight checks neither tool saw, using the app's own buttons and a test clock to jump to Sunday night and Monday morning.
| Hidden check | Codex | Claude Code |
|---|---|---|
| A goal of 1 to 7 can be set; 0, 8, -1, 2.5, empty and text are refused | Fail | Pass |
| The goal can be changed and removed later | Fail | Pass |
| Habits with no goal behave as before | Fail | Pass |
| This week's count is right, and resets at midnight with the page open | Pass | Pass |
| Streak numbers are unchanged | Pass | Pass |
| The goal survives a reload and a backup and restore | Pass | Pass |
| Old backups and bad goal values in a backup do not break it | Pass | Pass |
| No sideways scroll at 320 px with a long name | Pass | Pass |


Where Codex Went Wrong
It gave every habit, old and new, a goal of 7 days and used a number box with no way to clear it: emptying the box set the goal back to 7, and so did typing 0, 8 or 2.5. It said one of these things plainly ("Existing habits automatically start with a 7-day goal.") but not the other two. Its week runs Sunday to Saturday, which it did not mention. On its own week, the counts and the reset with the page left open were right.
What Claude Code Did
A menu from "No weekly goal" to 7 days, so a bad value cannot be entered. Old habits start with no goal, the week runs Monday to Sunday and it said so, and a backup with an impossible goal is cleaned up with a note. It was slower here, 1 min 24 s against 28 s, because it tested the change in a fake browser it wrote for the job.
Checks run with our own script driving both apps in headless Chrome on 22 October 2026; the last half hour of each tool's own week and the first minutes of the next were set with a test clock that starts before the app.
Task 3: Fix Two Bugs We Planted
We broke two lines in the habit tracker: streaks always started counting from today, so any habit not yet ticked today showed 0, and the Add button called a save function that did not exist. Then we described the symptoms, not the cause:
Both found both bugs
Each tool changed exactly the two lines we had broken back to the original code, and nothing else.
Claude Code was faster
18 s against 37 s for Codex.
Claude Code tested the streak
It ran the streak counter on sample ticks. Codex checked that the code was valid JavaScript.
Both explanations were right and fit in one sentence each, as asked. We then used both fixed apps in a browser: streaks showed 3 and 2 days on our sample habits, Add worked, and the new habit was still there after a reload.
What Each Tool Said It Did, and What It Did
A first-time builder has only the tool's own report to go on, so we read each reply against what the logs show it did.
Codex, task 1
"No local server is running."
It tried to start a server to check the page. The server did not start and the check failed to connect, which the reply did not mention.
Codex, task 2
"I also checked that the page’s code is valid."
True, and the only check it ran. It did not try the feature.
Codex, task 3
"I also confirmed the updated browser code has valid JavaScript."
True. Valid JavaScript is not the same as a working streak, but the fix was right.
Claude Code, task 1
"You declined my request to run it outside them"
Nobody was asked. Its request to run outside the sandbox was turned down by the settings, not by a person.
Claude Code, task 2
"I ran the app’s code in a small fake browser I wrote for the test"
True, and it named the limits of that test: it had not seen the app on screen.
Claude Code, task 3
"I didn’t open the app in a browser to click Add"
True. It asked us to try Add ourselves, which we did; it worked.
Neither tool claimed something it had not done. Claude Code said more about what it had not checked, which is what told us where to look. If a reply says only that the code is valid, try the feature yourself before you trust it.
Cost and Usage Limits Compared
Both tools come with a chat subscription, and both share their allowance with that chat. Prices as each company listed them on 22 October 2026, in US dollars a month.
| Plan level | Codex (ChatGPT) | Claude Code (Claude) |
|---|---|---|
| Free | $0, for quick tasks in the desktop app | Not included |
| Entry | Go $8, for lightweight tasks in the desktop app | Pro $20, or $17 a month paid yearly |
| Standard | Plus $20: web, terminal, editor extension and iPhone app | Included in Pro |
| Heavy use | Pro from $100 ($100, $200 or $500) | Max from $100 (5x) or $200 (20x) |
| Teams | Business $25 a seat, or $20 paid yearly | Team $25 a seat, or $20 paid yearly |
How Codex limits work
- OpenAI counts "local messages per five-hour period" on Plus and lists ranges by model, which it says "are not fixed message limits".
- "Weekly limits may also apply." Pro plans currently have no five-hour limit.
- "ChatGPT Work and Codex share usage."
How Claude Code limits work
- Paid plans have "a session limit that resets every five hours" and "weekly limits that reset once every week".
- Usage in Claude and in Claude Code "counts towards the same usage limit".
- Max 5x and Max 20x give five and 20 times Pro's usage.
How Big Our Three Tasks Were
| Task | Codex: tokens written | Claude Code: tokens written | Claude Code's own cost estimate |
|---|---|---|---|
| 1. Bakery website | 6,631 | 9,748 | $0.38 |
| 2. Weekly goal | 2,131 | 9,055 | $0.48 |
| 3. Two bugs | 885 | 1,263 | $0.20 |
Prices and limit wording from OpenAI's Codex pricing page, Claude's pricing page and Claude's usage limits article, read 22 October 2026. For what the free plans of these and other tools let you do, see our guide to free vibe coding tools.
Setup and Day-to-Day Differences
Day to day, the two tools feel alike. Three differences matter.
Instructions files
Codex reads AGENTS.md, from your home folder and from the project. Claude Code reads CLAUDE.md, and reads a project's AGENTS.md instead when there is no CLAUDE.md, so one file can serve both.
Sandbox and permissions
In our runs both worked inside the folder and needed permission to go outside it. Claude Code's request to open a browser was turned down by that setting, which is why it built a fake browser instead.
Where you use it
Both have a terminal version, editor extensions, a desktop app and a web version. On the ChatGPT Free and Go plans, OpenAI lists Codex in the desktop app; the other places start with Plus.
One thing to watch in either tool: a personal instructions file applies to every project. We left ours out for this test because a long one changes what the tool does.
Instructions files: OpenAI's AGENTS.md guide and Claude Code's memory page, read 22 October 2026.
Can You Use Codex and Claude Code Together?
Yes. OpenAI publishes an open-source Codex plugin for Claude Code, released on 30 March 2026 under the Apache 2.0 licence. It adds commands to Claude Code that hand work to Codex: a review of your current changes, a "challenge" review that argues with the work, and commands to pass a task to Codex and collect the result.
- Install Codex and sign in with a ChatGPT account (the free plan works) or an OpenAI API key.
- In Claude Code, add OpenAI's plugin marketplace and install the Codex plugin.
- Run the plugin's setup command, which checks that Codex is ready, then ask for a review.
Source: codex-plugin-cc on GitHub, read 22 October 2026.
Which One Should You Use?
From one day of tests, so treat these as starting points.
You have never coded
Claude Code, if you can pay $20 a month: in our test it explained more, checked more and left less for you to find. With no budget, Codex on a free ChatGPT plan is the way to try an agent at all.
Your budget is under $20
Codex. ChatGPT Go costs $8 and Claude Code has no plan below $20. Expect to test the result yourself, as we had to.
You already pay for one of them
Use that one. Both plans share their allowance with chat, so a second subscription doubles the cost for a small gain.
You want a second opinion
Use both. The Codex plugin lets Claude Code ask Codex to review its work without leaving the terminal.
For other tools in the same space, see our list of the best vibe coding tools; for the models behind them, our AI model comparison.
No Terminal? Describe Your App Instead
Both tools assume you are comfortable in a folder of code files. If you would rather describe an app and edit it on screen, Appy Pie AI builds apps through conversation: a few sentences give you a first version, for Android and iPhone.
Frequently Asked Questions
Is Codex better than Claude Code?
Not in our test. On three tasks with one prompt each, Claude Code passed 18 of 18 checks and Codex passed 13, with Codex on the $8 ChatGPT Go plan and Claude Code on the $200 Max plan. Both fixed the two planted bugs; Codex fell short on phone readability and on how it added a weekly goal.
Is Codex free?
Codex is included in the free ChatGPT plan for quick tasks in the desktop app, and in Go ($8) for lightweight tasks. OpenAI lists the terminal, editor and web versions from Plus at $20 a month.
Is Claude Code free?
No. The free Claude plan does not include Claude Code. It starts with Pro at $20 a month, or $17 a month paid yearly.
Which is cheaper, Codex or Claude Code?
Codex at the low end: it comes with ChatGPT from the free plan up, and Go costs $8. At the top, both have plans from $100 a month.
What is the difference between Codex CLI and Claude Code?
Both are coding agents that run in a terminal, read and edit files, and run commands. Codex uses OpenAI models and reads AGENTS.md; Claude Code uses Anthropic models and reads CLAUDE.md, or AGENTS.md when there is no CLAUDE.md.
Can I use Codex and Claude Code together?
Yes. OpenAI publishes a Codex plugin for Claude Code that adds review and hand-off commands. Work done through it counts against your Codex limits.
Which is faster, Codex or Claude Code?
It depended on the task. Claude Code was faster on the website (1 min 39 s against 2 min 56 s) and the bug fix (18 s against 37 s); Codex was faster on the weekly goal (28 s against 1 min 24 s), mainly because it did not test its change.
Which is better for building a website?
In our one test, Claude Code: its bakery page passed all eight checks, including text size and button size on a phone. Codex’s page looked polished but had small text and small tap targets.
Do Codex and Claude Code share limits with ChatGPT and Claude?
Yes. OpenAI says ChatGPT Work and Codex share usage, and Anthropic says use of Claude and Claude Code counts towards the same usage limit.
Did you test Codex cloud or Claude Code on the web?
No. Both tools ran in a terminal on one Mac. We did not test cloud tasks, code review or team plans.
Rather Describe It and Skip the Code?
Tell Appy Pie AI about your app in a few sentences. It builds a first version that you edit visually, for Android and iPhone.
Pick One, Then Check Its Work
Both tools write working code from plain English in minutes. What separated them here was what they checked before saying they were done, so whichever you use, try the feature yourself before you rely on it.

