Claude Code vs Codex CLI vs Gemini CLI: Which AI Coding Agent Should You Pick in November 2026?

Photo: Hippopx (public domain). Illustrative image.
The short answer. If you write code for a living and want the best agent, pick Claude Code. If you already pay for ChatGPT Plus and want the cheapest capable option with the strongest sandboxing, pick Codex CLI. Pick Gemini CLI only if your company already licenses Code Assist on Google Cloud — and if you want a free Google terminal agent, use Antigravity CLI instead. The free tier that made Gemini CLI the budget pick in 2025 is gone, and that changes the whole comparison.
The three contenders at a glance
| Claude Code | Codex CLI | Gemini CLI | |
|---|---|---|---|
| Cheapest way in | Claude Pro, $20/mo ($17 annual) | ChatGPT Plus, $20/mo | Code Assist licence or paid API key |
| Free tier | None — Claude Free excludes it | Limited — desktop app only on Free and Go | Ended 18 June 2026 |
| Model doing the work | Opus 5.5 (default), Sonnet 5.5 | GPT-6.1 Sol, GPT-6 Luna | Gemini models via Code Assist |
| Context window | 1M tokens | 500K default | 1M tokens (when licensed) |
| Licence | Proprietary | Apache 2.0 | Apache 2.0 |
| Latest version | v2.1.322 (Nov 2026) | v0.167 (Nov 2026) | v0.68.0 (Nov 2026) |
Prices checked against vendor docs and pricing pages, 9–12 November 2026. Prices are a snapshot, not a quote.
Claude Code: the accuracy pick. Claude Code is Anthropic’s terminal agent, and it now defaults to Opus 5.5 with a 1-million-token window, with Agent Teams for multi-agent coordination. The CLI itself is free to install, but it does no work on the free Claude plan: Pro is $20 a month ($17 on annual billing), Max is $100 a month for 5x Pro’s usage, and Ultra is $200 a month for 10x weekly usage with no five-hour limit for verified accounts. It wins on code accuracy and on coordinating several agents at once — the two things that matter most on large codebases. The cost is the catch: heavy users will hit the $100 or $200 tiers, where Codex’s Plus tier stays cheaper.
Codex CLI: the value and safety pick. Codex CLI is OpenAI’s terminal agent, open source under Apache 2.0, running GPT-6.1 Sol (with GPT-6 Luna also available on Plus). ChatGPT Plus at $20 a month is the first tier that lists the CLI; Pro starts at $100 a month across three tiers with longer sessions and GPT-6 Astra. Free and Go ($8 a month) get limited Codex access in the desktop app only. It wins on token efficiency, OS-level sandboxing — with read-only, workspace-write and danger-full-access modes — and terminal automation. For a developer who already pays for ChatGPT, it is the cheapest way into a top-tier coding agent, and its sandboxing is the most careful of the three.
Gemini CLI: the enterprise-only option. Gemini CLI launched in June 2025 as the generous one: a personal Google account got Gemini 2.5 Pro with a 1-million-token context window, 60 requests a minute and 1,000 a day, free. Then Google ended it. On 18 June 2026, Gemini CLI and the Code Assist IDE extensions stopped serving requests for Google AI Pro and Ultra subscribers and for everyone using Code Assist for individuals free of charge. The CLI still exists — latest release v0.68.0, 10 November 2026 — and still works for organisations on Gemini Code Assist Standard ($22.80 per user a month) or Enterprise ($54), and through paid Gemini API keys. But Google stopped selling new Code Assist Standard and Enterprise subscriptions on 9 October 2026, and Google says the CLI is not optimised for Gemini 4 or later models. The replacement is Antigravity CLI, run as agy: a Go binary built on the same agent harness as the Antigravity 2.0 desktop app, with a free Individual plan at $0 and paid tiers through Google AI Pro ($19.99 a month) and Ultra.
How to choose. Casual use, 5–10 requests a day: Codex on ChatGPT Plus ($20) or Claude Pro ($20) — pick the subscription you already pay for. Regular use, 50–100 requests a day: Codex stays at $20 on Plus, while Claude Code moves to Max at $100 — Codex wins on price. Heavy use, 200+ requests a day: Claude Ultra at $200, or Codex Pro from $100. Teams already on Google Cloud with a Code Assist licence: Gemini CLI still works, but check whether your licence is still renewable before building on it.
The bottom line. The market has consolidated into two $20 options and one enterprise purchase. Claude Code is the best agent; Codex CLI is the best value and the safest by default; Gemini CLI is a legacy enterprise tool with a free successor. If you are comparing AI models more broadly, read our Claude Fable vs Gemini Carbon vs Muse Ember comparison, and before trusting any new tool with your code, run it through our guide to evaluating a new AI tool.
Sources
- AI Frontier Post — “Claude Code vs Codex vs Gemini CLI: which terminal coding agent to run in November 2026” (checked against vendor docs, 9 November 2026): https://aifrontierpost.com/articles/claude-code-vs-codex-vs-gemini-cli-compared/
- Particula — “Gemini CLI vs Claude Code vs Codex CLI: Which to Use in 2026” (updated 11 November 2026): https://particula.tech/blog/gemini-cli-vs-claude-code-vs-codex-cli
- Caprock — “AI coding agents, Nov 2026: Claude Code, Codex” (12 November 2026): https://caprock.dev/guides/ai-coding-agents/
- FreshSynapse — “Claude Fable 5.2 vs Gemini 4 Carbon vs Muse Ember: Which AI Model for Which Job?”: https://freshsynapse.com/articles/claude-fable-vs-gemini-carbon-vs-muse-ember-2026-11-11/
- FreshSynapse — “How to Evaluate a New AI Tool Before You Trust It”: https://freshsynapse.com/articles/how-to-evaluate-a-new-ai-tool/