3-way comparison · Pricing checked October 11, 2026

Codex vs Claude Code vs Gemini CLI

The short answer

Claude Code is the strongest agent, Codex is the best value for ChatGPT subscribers, and Gemini CLI is now for teams with a Google license or paid API key. Gemini CLI's free personal tier ended on June 18, 2026, so the 'free option' argument for it is gone; individuals are pointed to Google's Antigravity CLI instead.

Disclosure: Some links on this page are affiliate links. If you buy through them, we may earn a commission at no extra cost to you. It never changes our verdicts or rankings. How we make money.

The winner for each job

If you mostly need…PickWhy
Hardest multi-file workClaude CodeMost reliable on long refactors and migrations.
Already paying for ChatGPTCodexIncluded in every paid ChatGPT plan.
Open source you can forkGemini CLIApache 2.0 licensed; Codex's CLI is open source too.
Google Cloud teamsGemini CLIWorks with Vertex AI and Gemini Code Assist licenses.

Codex vs Claude Code vs Gemini CLI: side by side

CodexClaude CodeGemini CLI
Score9.1/109.4/107/10
Starting price$8/mo$17/moPay per token
Free planYesNoNo
Entry priceLimited on Free and Go; full from ChatGPT Plus $20Claude Pro $20/moPaid API key, or Code Assist from $19/user/mo
Free optionSmaller model in the desktop appNoneEnded June 18, 2026
Open sourceCLI, yesNoYes (Apache 2.0)
ModelsOpenAIAnthropicGoogle Gemini
Where it runsCLI, IDE, desktop, cloudTerminal, IDE, desktop, webTerminal
DirectionActively expandingActively expandingEnterprise maintenance; individuals moved to Antigravity CLI

Which one should you choose?

Choose Codex if…

Choose Codex if you already pay for ChatGPT or want cloud agents that open pull requests.

Try Codex →

Choose Claude Code if…

Choose Claude Code for the hardest coding work and the best results on large codebases.

Try Claude Code →

Choose Gemini CLI if…

Choose Gemini CLI if your company already has a Gemini Code Assist license or bills through Vertex AI.

Try Gemini CLI →

Codex vs Claude Code vs Gemini CLI pricing

Codex

  • Free Free
  • Go $8/mo
  • Plus $20/mo
  • Business $25/user/mo
  • Pro From $100/mo
  • Enterprise & Edu Custom
  • API key Pay per token
Full Codex pricing →

Claude Code

  • Pro $20/mo
  • Team (Standard seat) $25/seat/mo
  • Max From $100/mo
  • Team (Premium seat) $125/seat/mo
  • Enterprise $20/seat/mo plus usage
Full Claude Code pricing →

Gemini CLI

  • Paid Gemini API key Pay per token
  • Vertex AI / Gemini Enterprise Agent Platform Pay per token
  • Gemini Code Assist Standard $19/user/mo
  • Gemini Code Assist Enterprise $45/user/mo
Full Gemini CLI pricing →

Prices in USD. Vendors change plans often; each tool page lists what every plan includes and when we last checked.

Strengths and weaknesses

Codex 9.1

OpenAI's entry in the agentic coding race, and a serious one: hand it a ticket and come back to a pull request. If you already pay for ChatGPT, you already have it. The Pro plans now come in three sizes, priced by how much work you hand it.

Strengths

  • Included in every paid ChatGPT plan
  • Strong at multi-file tasks and code review
  • CLI is open source and works with an API key

Weaknesses

  • Usage limits are estimates and shift with each plan change
  • The $200 Pro plan's Codex allowance was halved for new subscribers
  • Free and Go access is limited to a smaller model in the desktop app
Full Codex review →

Claude Code 9.4

The strongest pure coding agent we have tested: hand it a bug, a test suite or a migration and review the result. It rewards people who can describe what they want, which is the skill that now matters.

Strengths

  • Excellent at multi-step, multi-file work
  • Works wherever you code
  • Included with Claude Pro

Weaknesses

  • No free plan
  • Usage limits on Pro push heavy users to Max
  • Terminal-first style has a learning curve for some
Full Claude Code review →

Gemini CLI 7

For a year it was the most generous free coding agent in the world, and then Google took the free part back. The open-source CLI still works well on a paid API key or a company license. Google would rather individuals moved to Antigravity; enterprises carry on as before.

Strengths

  • Fully open source, so you can audit and fork it
  • Gemini's long context handles large codebases
  • Enterprise licenses keep generous daily request quotas

Weaknesses

  • Free personal tier ended June 18, 2026
  • Google AI Pro and Ultra subscriptions no longer work with it
  • Google's attention has moved to Antigravity CLI, so the future is enterprise maintenance
Full Gemini CLI review →

The head-to-heads

Narrowed it to two? Each pair has its own page with a deeper breakdown.

Questions people ask

Is Gemini CLI still free?

No. Since June 18, 2026, Google no longer serves the free Google-login tier or Google AI Pro and Ultra subscribers in Gemini CLI. You need a paid API key, Vertex AI or a Code Assist license.

Which is cheapest?

Codex, if you already pay for ChatGPT; it's included. Otherwise Codex and Claude Code both start at $20/mo.

More comparisons