3-way comparison · Pricing checked October 11, 2026
Codex vs Claude Code vs Gemini CLI
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… | Pick | Why |
|---|---|---|
| Hardest multi-file work | Claude Code | Most reliable on long refactors and migrations. |
| Already paying for ChatGPT | Codex | Included in every paid ChatGPT plan. |
| Open source you can fork | Gemini CLI | Apache 2.0 licensed; Codex's CLI is open source too. |
| Google Cloud teams | Gemini CLI | Works with Vertex AI and Gemini Code Assist licenses. |
Codex vs Claude Code vs Gemini CLI: side by side
| Codex | Claude Code | Gemini CLI | |
|---|---|---|---|
| Score | 9.1/10 | 9.4/10 | 7/10 |
| Starting price | $8/mo | $17/mo | Pay per token |
| Free plan | Yes | No | No |
| Entry price | Limited on Free and Go; full from ChatGPT Plus $20 | Claude Pro $20/mo | Paid API key, or Code Assist from $19/user/mo |
| Free option | Smaller model in the desktop app | None | Ended June 18, 2026 |
| Open source | CLI, yes | No | Yes (Apache 2.0) |
| Models | OpenAI | Anthropic | Google Gemini |
| Where it runs | CLI, IDE, desktop, cloud | Terminal, IDE, desktop, web | Terminal |
| Direction | Actively expanding | Actively expanding | Enterprise 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
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
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
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
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
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
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.