Best for · AI tools
Codex vs Claude Code vs Gemini CLI
- Last checked
- 6 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- Codex if you already pay for ChatGPT or want to start at $0.
- Claude Code if you want the deepest terminal-first agent and will pay $17 to $20 a month for it.
- Gemini CLI only if your company already has Code Assist licenses; if you wanted Google's free terminal agent, the place to look now is Antigravity CLI.
Compared here
- 01OpenAI Codex CLI
- 02Claude Code
- 03Gemini CLI
- 04Antigravity CLI
Short answer
For most people in December 2026 this is a two-horse race. Codex comes with ChatGPT, from the $0 Free plan up, and runs in the terminal, an IDE extension, the ChatGPT apps and the cloud. Claude Code comes with Claude Pro at $20 a month ($17 billed yearly) and up, and runs in the terminal, VS Code, JetBrains, a desktop app and the browser. Gemini CLI is the one that changed: its own README says free individual access and Google AI Pro and Ultra moved to Antigravity CLI on 18 June 2026, and Gemini CLI now has "No free tier or Google AI plans". It is aimed at Gemini Code Assist Standard and Enterprise licenses.
Pick Codex if you already pay for ChatGPT or want to start at $0. Pick Claude Code if you want the deepest terminal-first agent and will pay $17 to $20 a month for it. Pick Gemini CLI only if your company already has Code Assist licenses; if you wanted Google's free terminal agent, the place to look now is Antigravity CLI. Below: the table, what changed, where each one runs, and the real monthly bill.
Sponsored links. We may earn a commission; it never changes the pick.
At a glance
| OpenAI Codex CLI | Claude Code | Gemini CLI | |
|---|---|---|---|
| Made by | OpenAI | Anthropic | |
| Open source | Yes, Apache-2.0 | Not stated on the overview page | Yes, Apache-2.0 |
| Cheapest way in | ChatGPT Free, $0 | Claude Pro, $20/mo or $17/mo yearly | No free tier; Code Assist license or paid API key |
| Next step up | Go $8/mo, Plus $20/mo | Max $100/mo | Pay per use on the Gemini API |
| Top individual tier | Pro $100, $200 or $500/mo | Ultra $200/mo | Not sold to individuals any more |
| Where it runs | CLI, IDE extension, ChatGPT apps, Codex cloud, SDK | Terminal, VS Code, JetBrains, desktop app, web | Terminal, headless scripts |
| Project memory file | AGENTS.md (per page one; not on the GitHub page we read) | CLAUDE.md, can read AGENTS.md | GEMINI.md |
| MCP tools | Not stated on the GitHub page | Yes | Yes, in ~/.gemini/settings.json |
| Cloud handoff | Yes, Codex cloud | Yes, Claude Code on the web | Not stated |
| Who it fits now | ChatGPT users, people starting at $0 | Daily terminal coders on one codebase | Companies with Code Assist licenses |
Money talk first. Anthropic, OpenAI and Google pay us nothing for this page. There is one outbound link to Claude's plans that may become an affiliate link later; it did not move the order. Nothing here is a benchmark. We read the GitHub pages, docs and pricing pages of all three on 3 December 2026 and quoted them.
Second thing, and it is the big one: most of page one for this search is out of date. The top results still say Gemini CLI is the free one, with a huge daily allowance. That was true in 2025. Gemini CLI's own README now says otherwise. So if you came here to pick the free option, keep reading before you install anything.
The short version
- Codex CLI is OpenAI's agent. It "runs locally on your computer", per its GitHub page, and it is included in every ChatGPT plan from Free up. Sign in with ChatGPT or use an API key.
- Claude Code is Anthropic's agent. It "reads your codebase, edits files, runs commands, and integrates with your development tools", per its docs, and it starts with Claude Pro at $20 a month.
- Gemini CLI is Google's agent, still open source, still maintained, but now pitched at companies with Gemini Code Assist Standard or Enterprise licenses, plus people with paid API or Vertex keys.
All three do the same core job: you type a task in plain language, the agent reads the files in your folder, proposes or makes edits, and runs commands. The differences are price, home base and who each company wants as a customer.
What changed with Gemini CLI
Here is the notice from the Gemini CLI README, read on 3 December 2026: "Free individual access and Google AI Pro / Ultra (Google One) moved to Antigravity CLI on June 18, 2026." Further down it says Gemini CLI has "No free tier or Google AI plans", and that it is "not optimized for Gemini 4+".
What that means in plain words:
- If you used Gemini CLI for free with a personal Google account, that route is gone.
- If you pay for Google AI Pro or Ultra, your terminal agent is now Antigravity CLI, not Gemini CLI.
- If your company pays for Gemini Code Assist Standard or Enterprise, Gemini CLI is still built for you.
- If you have a paid Gemini API key or Vertex AI billing, Gemini CLI still works, billed by usage.
Antigravity's own site describes its CLI as "the lightweight, fast, terminal-first surface to work with Antigravity agents" and says it is "Available at no charge". It does not list usage limits on that page. We did not compare Antigravity CLI head to head here; our Antigravity vs Claude Code page does that.
The other thing still true about Gemini CLI: it is a good open source tool. Apache-2.0 license, MCP server support in ~/.gemini/settings.json, a GEMINI.md file for project context, a sandbox, and a headless mode for scripts with text, JSON or streaming JSON output. If you are inside a company that pays Google already, none of the change above hurts you.
Codex CLI: start at zero
OpenAI's Codex pricing page lists Codex inside every ChatGPT plan:
- Free, $0: "quick coding tasks".
- Go, $8 a month: lightweight coding tasks, same models as Free.
- Plus, $20 a month: Codex on web, CLI, IDE and iOS, plus cloud integrations.
- Pro, from $100 a month: tiers at $100, $200 and $500. Pro "currently" has no five-hour limit.
- Business: $20 per user a month billed yearly for 2 or more users, $25 billed monthly.
The limits are the fine print. On Plus and standard Business seats, OpenAI counts local messages "per five-hour period", the range depends on the model, and "weekly limits may also apply". When you run out, OpenAI sells credits.
Where Codex runs: Codex cloud, ChatGPT on the web, the ChatGPT desktop and mobile apps, the Codex CLI, the IDE extension and the Codex SDK. You can also run it with an API key and pay API rates, but the pricing page says that route lacks cloud features like GitHub code review and Slack.
The CLI itself is open source under Apache-2.0, per its GitHub page, with installs through npm, Homebrew or a script. Sign in with ChatGPT, and the GitHub page lists Plus, Pro, Business, Edu and Enterprise for that. Free and Go are covered on the pricing page, mostly in the desktop app, "subject to rollout". Translation: free use exists, but do not plan a working week around it.
Codex is best when you already pay for ChatGPT and like to hand a task to the cloud, go make coffee, and review the result later.
Claude Code: the most places to work
The Claude Code overview lists five surfaces on one engine: the terminal, a VS Code extension (which also installs in Cursor), a JetBrains plugin, a desktop app, and the web at claude.ai/code. The docs say your project's CLAUDE.md files, settings and MCP servers work across all of them.
What it brings that the others mention less on their own pages:
- CLAUDE.md, a project file Claude Code reads at the start of every session, and it can read an existing AGENTS.md instead.
- Hooks that run shell commands before or after Claude Code actions, such as formatting after every edit.
- Skills, packaged workflows like a
/review-prcommand for your team. - Subagents that split a task and work in parallel, plus background agents you watch from one screen.
- Scheduled tasks in the cloud or on your own machine.
- CI use through GitHub Actions and GitLab CI/CD, and
claude -pfor piping and scripts.
The price: Claude Pro at $20 a month or $17 a month billed yearly is the cheapest plan that includes it; Max is $100 and Ultra $200. The docs say most surfaces need a Claude subscription or an Anthropic Console account, and the desktop app needs a paid plan. There is no $0 way in, unlike Codex. One more thing from Anthropic's own pages: chat and Claude Code share one usage pool, so a long coding morning means less chat in the afternoon. Our Claude Pro vs Max page explains the limits in detail.
Claude Code is best when you live in a terminal or an editor, work on one codebase in depth, and want hooks, scripts and rules files to shape how the agent behaves.
Where each one runs
| You want to work in | Codex | Claude Code | Gemini CLI |
|---|---|---|---|
| A terminal | Yes | Yes | Yes |
| VS Code | IDE extension | Extension, also in Cursor | Not stated on the README |
| JetBrains | Not stated | Plugin | Not stated |
| A desktop app | ChatGPT desktop app | Claude desktop app | No |
| The browser or phone | ChatGPT web and mobile, Codex cloud | claude.ai/code and the Claude mobile app | No |
| Scripts and CI | Codex SDK, codex exec | claude -p, GitHub Actions, GitLab CI/CD | Headless mode |
If you only ever work in a terminal, all three are fine. If you want to start a job on your laptop and check it from your phone on the bus, Codex and Claude Code both do that; Gemini CLI does not claim to.
What it really costs per month
Three honest budgets for one person, using the list prices above:
- $0: Codex on ChatGPT Free. Fine for trying it, small fixes, learning how agents work. Expect to hit limits.
- $8: Codex on ChatGPT Go. Same models as Free per OpenAI, with more room. Lightweight work.
- $17 to $20: Claude Code on Claude Pro, or Codex on ChatGPT Plus. This is where serious daily use starts on either side.
- $100 and up: Claude Max or ChatGPT Pro. Only once you keep hitting the wall on the $20 plans.
Gemini CLI does not fit in this list any more, because there is no individual plan. With a paid API key you pay per token. The Gemini CLI README does not publish quotas, so we cannot give you a monthly number without inventing one, and we will not.
The trap is paying for two $20 plans because you could not decide. Start with the one whose chatbot you already use. If you already pay for ChatGPT, Codex costs you nothing extra. If you already pay for Claude, Claude Code costs nothing extra. Only add the second when you have a job the first clearly cannot do.
How they keep you safe from themselves
Agents run commands on your machine. That is the point and also the risk. What the official pages say:
- Gemini CLI documents a sandbox for safe execution.
- Codex runs locally in the CLI and in an isolated environment in Codex cloud. The GitHub page we read did not spell out its approval modes; that detail lives in OpenAI's docs.
- Claude Code asks before acting by default, and hooks let you block or check actions before they happen.
Our rule, whichever you pick: work on a git branch, commit before you hand over a big task, and read the diff before you merge. The agent writing the code does not make it your agent's code. It is still yours.
Pick by situation
Pick Codex if:
- You already pay for ChatGPT, so it is free to you.
- You want to start at $0 and see if agents are for you.
- You like assigning a task to the cloud and reviewing it later.
Pick Claude Code if:
- You work in a terminal or VS Code most days and want one agent across terminal, editor, desktop and phone.
- You want rules files, hooks and scripted runs to shape the agent.
- You are fine paying $17 to $20 a month from day one.
Pick Gemini CLI if:
- Your company already pays for Gemini Code Assist Standard or Enterprise.
- You have a paid Gemini API or Vertex key and want an open source CLI around it.
Pick none of the three, and look at Antigravity CLI, if: you wanted Google's free terminal agent. That is where Google moved it.
Want a wider view? Cursor vs Claude Code vs Codex adds an AI editor to the mix, and Aider vs Gemini CLI covers the bring-your-own-model route. If you are choosing the model rather than the tool, read the best AI model for coding.
How we checked
We read the Codex pricing page, the Codex and Gemini CLI GitHub pages, the Claude Code overview, Claude's pricing page and Google's Antigravity site on 3 December 2026. We did not run the three agents on the same project, so you will find no speed scores or "winner" badges here. Context window sizes were not stated on the pages we read, so they are not in the table; page-one blogs quote them from 2025 and the models have changed since. Prices change often in this corner of the market. Check the vendor page on the day you pay. Our general method is on how we pick.
Questions people ask
Which is better, Codex, Claude Code or Gemini CLI?
For an individual today, it is mostly Codex against Claude Code. Codex wins on price of entry because it is included in ChatGPT Free. Claude Code wins if you want a terminal-first agent with the most surfaces and hooks. Gemini CLI now targets companies with Code Assist licenses, so for most people it is out of the race.
Is Gemini CLI still free?
No, according to its own GitHub README read on 3 December 2026. It says free individual access and Google AI Pro and Ultra moved to Antigravity CLI on 18 June 2026, and lists no free tier or Google AI plans for Gemini CLI. Paid Gemini API keys and Vertex AI keys still work, billed by usage.
Is Codex CLI free?
The software is open source under Apache-2.0. Using it needs either a ChatGPT sign-in or an API key. OpenAI's Codex pricing page lists Codex on ChatGPT Free at $0 for quick coding tasks, Go at $8 and Plus at $20. Free is enough to try it. It is not enough to work on it all day.
Do I need a paid plan for Claude Code?
Yes, in practice. Claude Code's docs say most surfaces need a Claude subscription or an Anthropic Console account, and the desktop app needs a paid subscription. Claude Pro is the cheapest plan with Claude Code, at $20 a month or $17 a month billed yearly. A Console account means paying API rates instead.
Can I use all three in the same project?
Yes. They all work on the files in your folder. Claude Code can read an AGENTS.md file in place of its own CLAUDE.md, so one set of house rules can serve more than one agent. Just watch your git history: two agents editing the same files at the same time is how afternoons disappear.
What replaced Gemini CLI for free users?
Antigravity CLI. Gemini CLI's README points free users and Google AI Pro and Ultra subscribers there, and says it is the recommended tool for Gemini 4 Argon and later. Google's Antigravity site calls it a terminal-first surface for its agents and says it is available at no charge.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- OpenAI Codex pricing, checked 3 Dec 2026
- OpenAI Codex on GitHub, checked 3 Dec 2026
- Claude Code docs: Overview, checked 3 Dec 2026
- Claude pricing, checked 3 Dec 2026
- Gemini CLI on GitHub (README with transition notice), checked 3 Dec 2026
- Google Antigravity, checked 3 Dec 2026