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.

Try AI Vibe Coding

Aasif KhanWritten byAasif KhanAbhinav GirdharReviewed byAbhinav GirdharLast updated onOctober 22, 2026
10M+ Apps & Websites Built Since 2016★★★★★ 4.7/5 on G2 (1,391 reviews) Both tools tested on 22 October 2026

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.

Try AI Vibe Coding →

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.

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.

CodexClaude Code
PlanChatGPT Go, $8 a monthClaude Max 20x, $200 a month
Modelgpt-5.6-terra (its default on this plan)claude-opus-5-5 (its default on this plan)
How it ranCodex in a terminal, sandbox set to this folder onlyClaude Code in a terminal, sandbox on
Our own settingsLeft out: our personal settings and instructions fileLeft out: our personal settings and plugins
Prompts per taskOneOne

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.

  1. 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.
  2. 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.
  3. Fix: the same habit tracker with two bugs we planted, described the way a user would describe them.
How far this goes: one run per task, so another run could come out differently. The plans and models were not equal, and a more expensive ChatGPT plan gets other Codex models. We did not test Codex cloud tasks, Claude Code on the web, code review or team plans, and we did not read either plan's usage meter. Times are wall-clock times including start-up.

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.

CodexClaude Code

Task 1 checks (of 8)

6
8

Task 2 checks (of 8)

5
8

Task 3 bugs fixed (of 2)

2
2

Task 1 time

2 min 56 s
1 min 39 s

Task 2 time

28 s
1 min 24 s

Task 3 time

37 s
18 s
TaskCodexClaude Code
1. Bakery website6/8 · 2 min 56 s · 3 files8/8 · 1 min 39 s · 1 file
2. Weekly goal5/8 · 28 s8/8 · 1 min 24 s
3. Two planted bugs2/2 · 37 s2/2 · 18 s
Total13/18 · 4 min 1 s18/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.

"I run a small neighbourhood bakery and I need a simple one-page website. I have never coded. The bakery is called Thistle & Crumb Bakery. We bake sourdough bread, pastries and celebration cakes fresh every morning. Address: 48 Juniper Lane, …"
CheckCodexClaude 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
Codex: the first screen at phone size. The headline is a slogan; the name sits in the small top bar.
Codex: the first screen at phone size. The headline is a slogan; the name sits in the small top bar.
Claude Code: the first screen at phone size, with the name as the headline and a menu bar.
Claude Code: the first screen at phone size, with the name as the headline and a menu bar.

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 checkCodexClaude 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
Codex: every habit now has a goal of 7 days, including ones that never had a goal.
Codex: every habit now has a goal of 7 days, including ones that never had a goal.
Claude Code: habits start with "No weekly goal", and the week count shows on its own.
Claude Code: habits start with "No weekly goal", and the week count shows on its own.

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:

"Two things are broken. My streaks show 0 even though I ticked the last few days, and when I type a new habit and press Add, nothing happens. Please fix them, and tell me in one sentence each what was wrong."

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 levelCodex (ChatGPT)Claude Code (Claude)
Free$0, for quick tasks in the desktop appNot included
EntryGo $8, for lightweight tasks in the desktop appPro $20, or $17 a month paid yearly
StandardPlus $20: web, terminal, editor extension and iPhone appIncluded in Pro
Heavy usePro from $100 ($100, $200 or $500)Max from $100 (5x) or $200 (20x)
TeamsBusiness $25 a seat, or $20 paid yearlyTeam $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

TaskCodex: tokens writtenClaude Code: tokens writtenClaude Code's own cost estimate
1. Bakery website6,6319,748$0.38
2. Weekly goal2,1319,055$0.48
3. Two bugs8851,263$0.20
Reading the cost column: Claude Code prints an estimate of each run at its maker's pay-as-you-go rates. On a subscription that is not a bill; it only shows how big the run was. Codex printed no equivalent. We did not read either usage meter, so we cannot say what share of a plan the tasks used. Claude Code wrote more than Codex on the first two tasks, mostly in its testing.

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.

  1. Install Codex and sign in with a ChatGPT account (the free plan works) or an OpenAI API key.
  2. In Claude Code, add OpenAI's plugin marketplace and install the Codex plugin.
  3. Run the plugin's setup command, which checks that Codex is ready, then ask for a review.
Two things to know: Codex work done through the plugin counts against your Codex limits, and the plugin needs Node.js 18.18 or later. We read the plugin's own page but did not use it for this test.

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.

Describe Your App to Appy Pie AI

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.

Try AI Vibe Coding

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.

Try AI Vibe Coding →

Aasif Khan
Written By

Aasif Khan

Head of SEO at Appy Pie AI

Head of SEO and Growth Marketing Lead at Appy Pie AI with 17+ years in digital marketing and scalable growth strategies.

Abhinav Girdhar
Reviewed By

Abhinav Girdhar

Founder & CEO, Appy Pie AI

Founder and CEO of Appy Pie AI, one of the largest AI platforms for building apps through conversation, with 10M+ apps and websites created.

Add Appy Pie AI as a preferred source on Google