Code Tycoon Get Code Tycoon

Blog / Workflow

Claude Code vs Codex CLI vs Gemini CLI in Real Video Tests

Claude Code, Codex CLI and Gemini CLI on the same tasks, from six 2026 video tests: speed, cost, limits, permission prompts and what breaks when nobody watches.

Claude Code vs Codex CLI vs Gemini CLI logos side by side

Six creators gave these agents the same task on camera in 2026. Codex was fastest on small, clear jobs and cheapest per task in API dollars. Claude Code finished long, open-ended runs sooner and went further on a $20 plan. The Gemini runs asked for approval far more often, and Gemini CLI itself was replaced for individual users in June 2026.

This post is about one narrow use: you start a task, walk away, and come back hours later. Which of Claude Code, OpenAI's Codex CLI and Google's Gemini CLI is easiest to leave alone, and what goes wrong when you do?

This comparison is built from real developers' runs, checked against each other: every result below comes from a YouTube creator who ran the same task in two or three of the tools and published the numbers. We credit each one by name, link to the minute where the result appears, and give the video's date, because model versions changed several times this year. Where the tools' own docs settle a question (permission defaults, spend caps, resume), we cite the docs.

Table of contents

Verdict by use case

  • A small, clearly specified job you want done fast: Codex. In Daily AI Minute's test it built a working page in 57 seconds with no prompts, against 5 min 42 s for Claude Code and about 18 minutes for Gemini. Check the details yourself: its page had a one-minute error and a strip that didn't fit a phone.
  • A long, open-ended build left running for hours: Claude Code, on the strongest evidence available. In Nate Herk's run on one goal prompt, Claude Code finished in about 5.5 hours while Codex ran for about 62 hours and, by his API-price estimate, cost roughly 3.5 times more. That is one run on one prompt, so treat it as a data point.
  • Getting the most work out of a $20 plan: mixed evidence. Skeptical Dev's run gave Claude Code six finished tickets to Codex's two before each plan stopped. Internet Made Coder says that in his own use he runs out faster on Claude, and his per-task API-price figures favor Codex.
  • Finding bugs or planning in a large codebase: Claude Code. Internet Made Coder's codebase scan found 29 bugs with Claude Code and 15 with Codex, and he rated Claude's feature plan far better, at about six times the API cost.
  • Gemini: fine for interactive work if you're on Google's stack, and the weakest choice for running with nobody there. In the one 2026 three-way test, the Gemini run stopped 16 times to ask permission. Gemini CLI's docs now say it "was replaced by Antigravity CLI on June 18th, 2026" for unpaid and Google One users (CLI reference).

None of this ranks the models in general. Each test is one person, one prompt and one or a few runs. The pattern across all six is more useful than any single number.

Results table

Times and dollar figures are as each creator stated them. "API-price estimate" means the creator converted token use into list API prices; none of them were billed those amounts on a subscription.

Test (creator, video date) Task Tool and model Outcome Time / cost as stated Source
Daily AI Minute, 2026-11-15 One-page stargazing report from live forecast data, moon computed by the tool Claude Code 2.1.312, Opus 5.5, --permission-mode auto Correct moon times; caught two of its own bugs; asked permission twice in the first attempt, none later 5 min 42 s 2:24
Daily AI Minute, 2026-11-15 Same Codex CLI 0.165.0, GPT-6.1 Terra, workspace-write sandbox, approvals never Worked; moonrise one minute early, no moonset; hourly strip clipped on a phone; no prompts 57 s 3:23
Daily AI Minute, 2026-11-15 Same Antigravity CLI 1.4.8, Gemini 4 Argon, --mode auto Most complete page, correct moon times; 16 permission prompts about 18 min 4:01
Skeptical Dev, 2026-10-03 12 tickets for a team chat app on a $20 plan until the limit Claude Code, Opus 5.5 max effort, Claude Pro 6 tickets passed; used its last turn to report what was done and untested 2 h 16 min of work 2:09
Skeptical Dev, 2026-10-03 Same Codex, GPT-6 Astra extra high, ChatGPT Plus 2 tickets passed; stopped mid-sentence on ticket 3 46 min of work 2:09
Nate Herk, 2026-08-14 Production-ready Typeform clone from one goal prompt Claude Code (Fable 5 start, Opus 4.8 orchestrator) More usable app, some UI bugs; 35 subagents, about 2,800 tool calls about 5.5 h; about $832 API-price estimate 12:46
Nate Herk, 2026-08-14 Same Codex, GPT 5.6 Sol high Deeper backend and far more tests, but a confusing demo-only UI; 126 subagents, about 32,500 tool calls about 62 h; almost $3,000 API-price estimate 13:56
Internet Made Coder, 2026-11-13 Build a booking app from scratch Claude Code, Fable 5.1 / Opus 5.5 Worked; he preferred Codex's version Fable 24 min 39 s, $37; Opus 40 min, $8 to $10 (API-price) 10:24
Internet Made Coder, 2026-11-13 Same Codex, GPT-6 Astra Worked; his pick for UI 17 min 8 s, $5.20 (API-price) 10:24
Internet Made Coder, 2026-11-13 Find bugs in a two-year-old startup codebase Claude Code vs Codex Claude 29 bugs, Codex 15; both lists real Claude $12, Codex $2.05; 6 to 10 min each 13:00
Nathan Sebhastian, 2026-02-14 Calendar page in an existing app Claude Code / Gemini CLI / Codex Only Claude Code used the project's database; Gemini CLI and Codex used mock data Not stated 5:17
Andy Lo, 2026-02-24 Focus-timer app from a PRD Gemini CLI 2.0 vs Claude Code Both worked; Claude's was more polished and finished sooner Not stated 8:53

The six tests in short

Daily AI Minute: one request, three tools (2026-11-15)

Daily AI Minute typed one identical request into all three tools: a phone-friendly "Tonight's sky" page for Joshua Tree, built from the free Open-Meteo forecast, with the moon phase and moonrise computed by the tool itself. The channel wrote an answer key first, using an independent astronomy library (1:26).

Claude Code took 5 min 42 s. It checked its own sunrise and sunset against the forecast and fixed a rounding bug and a cropped phone screenshot without being asked. Codex took 57 seconds and "went straight through", but its moonrise was a minute early and its page never showed moonset. The Gemini run took about 18 minutes and produced the richest page, with both moon times right. Same forecast, three different verdicts: each tool wrote its own rule for "great, okay and poor" (4:37).

One detail matters for this post. Per the video description, the Gemini model ran in Antigravity CLI 1.4.8, Google's replacement for Gemini CLI. The description also lists the exact flags: Claude Code with --permission-mode auto, Codex in the workspace-write sandbox with approvals set to never, Antigravity with --mode auto.

Skeptical Dev: two $20 plans until they stop (2026-10-03)

Skeptical Dev fed the same 12 tickets to Claude Code on Claude Pro and Codex on ChatGPT Plus, each on its top model at maximum effort, one ticket at a time, and kept going until each plan said stop. A ticket only counted if its tests passed and it worked in a browser (0:30).

Claude Code was slower per ticket because it kept checking itself: tests, browser screenshots, even breaking its own code to see if the tests caught it. He estimates about a quarter of its budget went on that. It finished six tickets in 2 h 16 min. Codex spent 30% of its window on ticket one and 44% on ticket two, and was cut off during ticket three after 46 minutes (1:50). His conclusion is narrow and he says so: one run each, on the most expensive settings, and "on this test, on these settings" the common advice that Codex's plan goes further did not hold (7:09).

Nate Herk: one goal prompt, hours of autonomous work (2026-08-14)

This is the closest thing to a true unattended run in the set. Nate Herk gave both tools the same /goal prompt for a production-ready Typeform alternative, with research, build and verify phases and an instruction not to stop at a prototype (0:26). He started Codex while traveling and Claude Code later.

Claude Code finished in about 5.5 hours. Codex ran for about 62. By his API-price figures, Claude Code's run came to about $832 and Codex's to almost $3,000, with about 2 million and almost 11 million output tokens respectively (12:46). He also flags a mismatch: a summary he generated later put Claude's cost at about $447, and he trusts the roughly $800 from the usage stats (19:06). Claude Code's app was the more usable product. Codex's had the stronger backend and many more tests (2,300 unit tests against 296), but its form builder ran as a demo workspace despite the prompt asking for a real product (5:40). Both apps had bugs he found in minutes of clicking.

Internet Made Coder: three coding tasks with time and cost (2026-11-13)

Internet Made Coder ran three tasks through both tools and converted token use to API prices. On a from-scratch booking app, Codex finished in 17 min 8 s for $5.20; Claude Code on Fable 5.1 took 24 min 39 s for $37, and on Opus 5.5 took 40 minutes for $8 to $10 (10:55). On comparing two tracking scripts, he called it a tie: Codex $2.67 in 6 min 20 s, Claude Code $5.90 in 2 min 12 s (12:29). On a bug hunt across his startup's codebase, Claude Code found 29 bugs to Codex's 15, at $12 against $2.05 (13:00). For planning a feature, he says Claude "absolutely blew Codex out of the park" (14:02). His overall pick for most people is Codex, with Claude for planning and review.

Nathan Sebhastian: all three on a calendar page (2026-02-14)

Nathan Sebhastian asked all three for the same calendar page in an existing project. Claude Code's version saved events to the project's database and generated a seed script. Gemini CLI and Codex both fell back to mock data (5:01). He liked Codex's permission behavior best: in a git repository it "will just edit files without asking" (7:06). His daily driver was Codex, switching to Claude Code for complex work (10:45). This video predates the June 2026 Gemini CLI change; the free tier he describes has since moved.

Andy Lo: Gemini CLI vs Claude Code from one PRD (2026-02-24)

Andy Lo gave Gemini CLI 2.0 and Claude Code the same build prompt and product spec for a focus-timer app. Both apps worked. Gemini's was plain and "took some time" (5:02); Claude's was more polished, added a dark mode, and in his run "planned and implemented faster than Gemini CLI" (8:53). He gives no times, so this is the lightest evidence in the set.

Permission prompts: who stops to ask

For an unattended run, a permission prompt nobody answers is the most common way to lose an afternoon. The tests show three different behaviors even with each tool set to its hands-off mode.

  • Codex asked nothing in Daily AI Minute's runs, set to the workspace-write sandbox with approvals off. Without those flags, the docs say "By default, codex exec runs in a read-only sandbox" (non-interactive docs), so a first script run often writes nothing at all. --full-auto "is no longer supported"; use --sandbox workspace-write or --approve-for-me.
  • Claude Code in --permission-mode auto asked twice in Daily AI Minute's first attempt, when it tried to write screenshots outside the project folder, and not at all in the next two runs (3:10). In a headless claude -p run, the docs say a call that needs approval "is denied unless something approves it", and --permission-prompts none tells Claude that nobody can approve and to carry on (headless docs).
  • Gemini (in Antigravity CLI) stopped 16 times in auto mode and needed a click each time (4:01). In Gemini CLI, the default approval mode "prompts for approval"; auto_edit approves edits only, and "YOLO mode (auto-approve all actions) can only be enabled via command line" (configuration). The --sandbox flag is off by default (CLI reference), so YOLO without it means full access to the machine.

The practical rule: before leaving any of them alone, do one throwaway run in a scratch repo with the exact flags you plan to use, and count the prompts.

Limits and cost on a long run

Two creators measured the same question from opposite ends and got opposite answers, which is the honest state of things.

Skeptical Dev ran both $20 plans to the wall and Claude Code got further. He also explains where the limit went: 99% of Claude Code's 108 million tokens in that window were cache reads, the tool re-reading its own conversation on every step, and by ticket six that re-reading was about 70% of the cost (5:23). His advice, taken from both vendors' docs: start a fresh session per task, keep notes in CLAUDE.md or AGENTS.md, lower the effort level for building, and don't switch models mid-session in Claude Code (5:38). Model choice is the biggest lever on both sides; we compare the Claude side in Opus vs Sonnet for Claude Code cost, and which plan fits in Claude Pro vs Max 5x vs Max 20x.

Internet Made Coder found Codex cheaper per task at API prices on every task, by about 1.5x (against Opus) to 7x (against Fable), and says he personally runs out faster on Claude's $20 plan. He also points out that on Claude Pro the top Fable model is not included in the plan and bills as extra usage (3:38).

Nate Herk's long run reversed the usual story: Codex used about five times the output tokens and ran over ten times longer. A long autonomous run can spread into dozens of subagents and tens of thousands of tool calls, and only one of the three CLIs documents a dollar cap for that. If you script runs on an API key instead of a plan, every one of those calls is billed; see Claude Code on the API vs a subscription. We cover plan limits in Claude Code usage limits and the cache effect in prompt caching and cold resumes.

What the docs say about unattended runs

The videos show behavior. The docs show what you can control. All rows checked 2026-11-23 to 2026-11-26.

Control Claude Code Codex CLI Gemini CLI
Headless command claude -p "<prompt>" (docs) codex exec (docs) gemini -p, or any non-TTY run (docs)
Default when nothing approves a call Denied, run continues if --permission-prompts none Read-only sandbox Default approval mode prompts
Hands-off options --permission-mode auto, dontAsk, acceptEdits --sandbox workspace-write, --approve-for-me --approval-mode auto_edit or yolo
Spend or turn cap --max-budget-usd Not listed Exit code 53 "Turn limit exceeded"; maxSessionTurns defaults to unlimited
Cost in output total_cost_usd in JSON, a client-side estimate (costs) Not listed JSON output includes "usage statistics"
Resume --continue, --resume <id> codex exec resume --last or an ID --resume latest or an index
Exit codes documented 0 success, non-zero on failure; 143 on SIGTERM Not listed 0, 1, 42, 53
Status for individuals Claude plan or API key ChatGPT plan or API key Replaced by Antigravity CLI on 2026-06-18 for unpaid and Google One users

Claude Code's headless page is the most detailed of the three on interruption: if a run is stopped with SIGTERM it "exits with code 143" and leaves the turn unfinished, and a -p run that waits on background work "stops whatever is still running after 10 minutes of continuous idle waiting by default" (headless docs). Codex insists on a git repository unless you pass --skip-git-repo-check, which is a good guard for an unattended run.

Gotchas for unattended use

Each of these is something that went wrong on camera.

  1. "Done" can mean nothing was done. Internet Made Coder let Claude Code work on a video edit through computer use for about an hour; it reported it had finished and had produced a broken file that wasn't even in the timeline (18:40). Treat the final message as a claim and check the diff or the file it made.
  2. A limit can cut a run mid-sentence. When Codex hit the Plus limit in Skeptical Dev's test, it stopped mid-task with no summary. The real-time feature it was building actually worked, but it never said so. Claude Code used a last turn to list what was finished and what it had not retested (2:09). Either way, commit as you go so the work survives the cut.
  3. The model can change under you. Nate Herk started Claude Code on Fable 5, but the main orchestrator ended up as Opus 4.8, and he isn't sure why (13:25). Read the model list in the run's usage before comparing costs.
  4. Thousands of tests don't catch the obvious. Codex wrote 2,300 unit tests in Nate Herk's run and still shipped a form builder whose theme settings didn't respond. Both of Skeptical Dev's apps accepted "12345678" as a password, because no ticket asked for a password policy (3:48).
  5. Same data, different conclusions. In Daily AI Minute's test all three tools had correct numbers and still gave different verdicts, because each invented its own rule. The channel's advice is worth keeping: ask the tool to show its raw data, and check one computed fact against an outside source (6:21).
  6. Your own token count may be wrong. Skeptical Dev warns that Claude Code's session log writes each response several times, so adding up every line counts the same tokens again; he made that mistake in an earlier video and pinned a correction (4:11).
  7. Open-ended prompts grow. Codex in Nate Herk's run chased 135 capabilities and spent 62 hours. A goal prompt with no budget, no turn cap and no stop condition is an invitation. Give it a branch, a cap where the tool has one, and a definition of done.

Wherever you run these, give each unattended job its own branch or worktree and read the diff when it ends. If you run several at once, see how to run multiple Claude Code sessions and what happens when parallel sessions edit the same files. We cover that review step in Reviewing what Claude Code changed today, and the per-task cost view in Claude Code cost per committed task.

Where the run itself lives

None of the three is a server. Each is a process on a machine, so "unattended" means the machine stays on and connected. Nate Herk's 62-hour Codex run only worked because it kept running while he traveled. A VPS with a terminal multiplexer is the cheap route; we price it in Claude Code VPS cost. Code Tycoon is the managed route for Claude Code and Codex: your setup on a dedicated server, sessions you start and answer from a browser (how the cloud setup works). It does not support Gemini CLI. If you only run one task at your desk, you need neither; see How to run Claude Code on a dedicated server for the trade-offs.

Videos this comparison draws on

Versions differ between these videos. Check the date before you compare numbers across them.

  1. Claude Code vs Codex vs Gemini: the same request, 57 seconds vs 18 minutes, Daily AI Minute, 2026-11-15. Claude Code 2.1.312, Codex CLI 0.165.0, Antigravity CLI 1.4.8.
  2. Codex vs Claude Code in 2026 - Honest Comparison, Internet Made Coder, 2026-11-13.
  3. Claude Code vs Codex Usage Limits I Ran Both $20 Plans Until They Stopped, Skeptical Dev, 2026-10-03.
  4. I Made Codex and Claude Code Build the Same App. One Clearly Won., Nate Herk, 2026-08-14.
  5. Gemini CLI 2.0 vs Claude Code: Which AI Dev Tool Wins in 2026?, Andy Lo, 2026-02-24.
  6. Claude Code vs Gemini CLI vs Codex: Which One is Best?, Nathan Sebhastian, 2026-02-14.

FAQ

Which is best for long unattended tasks: Claude Code, Codex CLI or Gemini CLI?

In the longest side-by-side run published this year, Nate Herk's, Claude Code finished a goal-driven build in about 5.5 hours and Codex took about 62. Claude Code also documents the most controls for headless runs, including a spend cap. That is one run, so test your own task on a branch before trusting either.

Is Codex CLI faster than Claude Code?

On small, clearly specified tasks, usually yes. Daily AI Minute measured 57 seconds for Codex against 5 min 42 s for Claude Code, and Internet Made Coder's from-scratch build took 17 minutes in Codex against 24 to 40 in Claude Code. On Nate Herk's open-ended goal prompt, Codex ran more than ten times longer.

Which one runs out of usage limits first on a $20 plan?

It depends on settings and task. In Skeptical Dev's test at maximum effort, Claude Code finished six tickets and Codex two before each plan stopped. Internet Made Coder says that in his own use he runs out faster on Claude.

Does Gemini CLI ask for permission in headless mode?

Its default approval mode prompts for approval. You can pass --approval-mode auto_edit to approve edits only, or yolo to approve everything, which only works from the command line. The sandbox is off by default, so use --sandbox if you turn on YOLO.

Is Gemini CLI still available for free?

Not for individuals. Gemini CLI's docs say it was replaced by Antigravity CLI on June 18, 2026 for unpaid and Google One users. The Gemini run in Daily AI Minute's November test used Antigravity CLI.

Can I cap the cost of an unattended run?

Claude Code has --max-budget-usd and reports total_cost_usd in JSON output as a client-side estimate. Codex CLI's docs list no spend cap. Gemini CLI has a turn limit exit code but its session turn setting defaults to unlimited.

Conclusion

Across six 2026 tests, Codex was the quick, literal executor and the cheapest per task at API prices. Claude Code was slower on small jobs, more careful, better at planning and bug hunting, and in the one multi-hour autonomous run it finished far sooner. The Gemini runs needed the most hand-holding, and Gemini CLI is no longer the tool Google offers individuals. For a run nobody watches, pick the tool whose controls you've tested with your exact flags, give it a branch and a cap, and read the diff when it ends. If you want somewhere to run Claude Code and Codex side by side and see what each run cost, self-host Code Tycoon; it is free and open source (AGPL-3.0).

Related articles


About this research

Anton Goldshtein is a two-time founder who previously bootstrapped a company to $100M in revenue. His team runs its own products on Code Tycoon every day. This comparison is built from six YouTube videos published between February and November 2026 in which the named creators ran the same task in two or three of these tools; we watched each one in full, and every result is attributed to its creator with a timestamped link. Documentation facts come from the Claude Code headless and costs pages, the Codex non-interactive docs, and Gemini CLI's headless, CLI reference and configuration pages, read 2026-11-23 to 2026-11-26.

Content reviewed and updated: 2026-11-26


Keep reading