Gemini CLI vs Codex: which terminal agent should you use?

updated · #7 vs #15 in ai coding agents & IDEs · prices checked

OpenAI Codex8.0#7 of 15 in coding agentsdown 1 since nov 21form: held its place every day for 5 days
Gemini CLI5.5#15 of 15 in coding agentssame since nov 21form: held its place every day for 5 days

which one should you use?

already pay for ChatGPT, or want a terminal agent you can start on today without a Google Cloud contract? OpenAI Codex. your company already has a Gemini Code Assist licence (closed to new buyers since oct 9) and you want an open source CLI on it? Gemini CLI. Codex ranks nine places ahead on our board.

OpenAI Codex ranks higher on our board: #7 vs #15 of 15 coding agents, 8.0/10 vs 5.5/10.

#7 of 15 in coding agents

OpenAI Codex

numptr says8.0/10

already paying for ChatGPT? you've basically got it. crack on.

best for
ChatGPT subscribers who want a cloud + local coding agent
why 8.0
bundled into every ChatGPT plan, even Free with limits.

full OpenAI Codex review

#15 of 15 in coding agents

Gemini CLI

numptr says5.5/10

free users got shipped off to Antigravity CLI and Code Assist stopped taking new sign-ups, so newcomers bring a paid api key. decent terminal agent, if work's paying.

best for
teams on a paid Gemini API key, or an existing Code Assist licence (closed to new buyers since oct 9), who want an open-source terminal agent
why 5.5
free users were moved to Antigravity CLI in june, and Code Assist has sold no new subscriptions since oct 9, so newcomers need a paid Gemini api key or Vertex AI. 65.8% on Terminal-Bench 2.1 with Gemini 3.1 Pro, well behind Codex CLI and Claude Code, and it isn't tuned for Gemini 4 Argon.

full Gemini CLI review

who wins for which job

a cloud + local agent included with ChatGPT

OpenAI Codex

best for: ChatGPT subscribers who want a cloud + local coding agent.

your company already has Gemini Code Assist

Gemini CLI

best for: teams on a paid Gemini API key, or an existing Code Assist licence (closed to new buyers since oct 9), who want an open-source terminal agent.

a free way in for new users

OpenAI Codex

OpenAI Codex free tier: included in ChatGPT Free (limited usage). Gemini CLI: no free plan for individuals since june 18, 2026 (free and Google One users were moved to Antigravity CLI).

overall, on our scores

OpenAI Codex

#7 of 15 coding agents, 8.0/10. Gemini CLI: #15, 5.5/10.

the differences, side by side

rank

OpenAI Codex#7 of 15 in coding agents

Gemini CLI#15 of 15 in coding agents

numptr score

OpenAI Codex8.0/10

Gemini CLI5.5/10

best for

OpenAI CodexChatGPT subscribers who want a cloud + local coding agent

Gemini CLIteams on a paid Gemini API key, or an existing Code Assist licence (closed to new buyers since oct 9), who want an open-source terminal agent

free tier

OpenAI Codexincluded in ChatGPT Free (limited usage)

Gemini CLIno free plan for individuals since june 18, 2026 (free and Google One users were moved to Antigravity CLI)

paid plans

OpenAI Codexincluded in ChatGPT Go $8/mo, Plus $20/mo, Pro $100, $200 or $500/mo (monthly API credits of $100, $200 or $500); Business $25/seat/mo ($20 annual), Premium seat $125/mo ($100 annual); or pay API rates with an API key

Gemini CLIGemini API key at API rates (pay as you go); Gemini Code Assist Standard $19/user/mo on an annual commitment ($22.80 monthly; 1,500 requests/day); Enterprise $45/user/mo on an annual commitment ($54 monthly; 2,000 requests/day), existing subscribers only (no new Code Assist subscriptions since oct 9, 2026); or Vertex AI

price checked

OpenAI Codex2026-11-27 at developers.openai.com/codex/pricing

Gemini CLI2026-11-27 at geminicli.com/docs/resources/quota-and-pricing

# straight from our rankings data. prices from each vendor's own page.

pick neither if

quick answer: gemini cli vs codex used to be a fair fight between two open source terminal agents. not any more. OpenAI Codex wins on our coding agents board: #7 at 8.0/10, against Gemini CLI at #15 (5.5/10), because Codex comes with every ChatGPT plan (free included, with limits), runs in the CLI, IDE, desktop app and cloud, and hands GitHub issues and pull requests to an agent. Gemini CLI is still open source and still decent, but since june 18, 2026 Google has pointed free and Google AI Pro / Ultra users at Antigravity CLI, and it now says Gemini CLI is designed for Gemini Code Assist Standard and Enterprise licences, which stopped selling to new buyers on oct 9. as of nov 9, 2026.

the short version

OpenAI Codex Gemini CLI
our rank #7, 8.0/10 #15, 5.5/10
what it is OpenAI's coding agent, included with ChatGPT; the CLI is open source (Apache 2.0) Google's open source (Apache 2.0) terminal agent
where it runs CLI, IDE extension, ChatGPT desktop app, Codex cloud and iOS your terminal, plus scripts and CI in non-interactive mode
free included in ChatGPT Free (limited usage) no free plan for individuals since june 18, 2026 (free and Google One users were moved to Antigravity CLI)
how you pay ChatGPT Go $8/mo, Plus $20/mo, Pro $100 / $200 / $500, Business and Enterprise; or API rates with a key an existing Gemini Code Assist licence (standard or Enterprise), or a paid Gemini API key or Vertex AI at API rates
limits Plus: rough local message ranges per five hours by model, weekly limits may apply; Pro has no five-hour limit right now Code Assist Standard 1,500 and Enterprise 2,000 requests per user per day; API key and vertex vary
models OpenAI models on your ChatGPT plan (or API models with a key) Gemini models; Google says it isn't tuned for the Gemini 4 series
on GitHub delegate issues and pull requests with @codex, plus automatic PR reviews (ChatGPT plans, not API key) run it in scripts and CI; Code Assist for GitHub is a separate Google Cloud product

ranks and scores come straight from our coding agents board, and nobody pays to move up it.

why Codex ranks higher

you can actually start using it. Codex is included in ChatGPT Free (limited, and on the desktop app subject to rollout), Go, Plus, Pro, Business, Edu and Enterprise. if you've got a ChatGPT login you've got a coding agent. Gemini CLI, for a new solo dev tonight, means a paid Gemini API key or Vertex AI and a meter, because Google moved the free tier and Google AI Pro / Ultra to Antigravity CLI.

cloud and local, one plan. from Plus up you get Codex on the web, in the CLI, in the IDE extension and on iOS, plus cloud integrations like automatic code review and Slack. tag @codex on a GitHub issue or pull request and the work happens in the cloud while you get on with your day. Gemini CLI is a terminal agent: good in a shell and in CI, but there's no cloud agent of its own.

the models are current. Plus gets GPT-6.1 Sol and GPT-6 Luna. Gemini CLI's own README says it isn't tuned for Gemini 4 Argon or later releases, and tells you to use Antigravity for those. Google's Code Assist page says support is limited to the Gemini 3.x family. that's a tool being wound down for newcomers, not one being pushed.

the money is a subscription, not a surprise. $20 a month on Plus, with credits if you run out instead of being forced up a plan. OpenAI publishes rough local message ranges per five hours for Plus (for example 15-160 on GPT-6.1 Sol and 350-3,000 on GPT-6 Luna) and says they're estimates, not fixed limits. more in Codex pricing.

the honest bit: those ranges are wide, cloud tasks can use more than local ones, and weekly limits may also apply. the API key route works in the CLI, SDK and IDE extension but drops the cloud features (GitHub code review, Slack). and it's OpenAI models only on a ChatGPT login.

where Gemini CLI still makes sense

work already pays for Gemini Code Assist. this is the job Google now says Gemini CLI is for: Code Assist Standard and Enterprise licences (and Code Assist for GitHub) on Google Cloud. sign in with Google, set your Google Cloud project, and you get 1,500 (Standard) or 2,000 (Enterprise) requests per user per day. existing subscriptions keep working: annual ones can auto-renew until jan 31, 2027 and monthly ones until dec 31, 2027.

you want to read and fork the source. Apache 2.0 on GitHub, installs with npm or Homebrew, runs non-interactively in scripts and talks to MCP servers. Codex CLI is Apache 2.0 too, so this one's a draw on licence.

pay as you go on Gemini. plug in a paid Gemini API key or Vertex AI and you pay per token, no subscription. Google's own docs say that can cost more for lots of small calls, and point you at /stats model to keep an eye on it.

the honest bit: no free plan for individuals since june 18, 2026, no new Code Assist subscriptions since oct 9, and Google's own README sends you to Antigravity CLI for Gemini 4. that's why it's last on our board.

the bit most comparisons miss

half the "gemini cli vs codex" posts out there are from 2025, when both were free-ish terminal agents. if you wanted Gemini in a terminal for free, the answer in 2026 is Google's own Antigravity (#5 on our board), not Gemini CLI. and if you want Gemini models alongside Claude and GPT in one open source agent, OpenCode does that with your own keys.

which should you pick?

the rest of the field

the table: the rest of the field
rank tool best for free tier paid from numptr score
#7 OpenAI Codex ChatGPT subscribers who want a cloud + local coding agent included in ChatGPT Free (limited usage) included in ChatGPT Go $8/mo, Plus $20/mo, Pro $100, $200 or $500/mo 8.0/10
#15 Gemini CLI teams on a paid Gemini API key, or an existing Code Assist licence (closed to new buyers since oct 9), who want an open-source terminal agent no free plan for individuals since june 18, 2026 (free and Google One users were moved to Antigravity CLI) Gemini API key at API rates 5.5/10
#5 Google Antigravity running several coding agents in parallel on Google's Gemini 4 models individual $0: app, CLI, IDE extensions and SDK, parallel agents, baseline agent quota refreshed weekly; Gemini 4 Hydrogen (default), plus Gemini 3.8 Flash, Claude 4.6 and GPT-OSS-120b until nov 30 no standalone plan 8.5/10
#1 Claude Code delegating multi-file features from terminal or IDE no free access: Claude Code needs a paid Claude plan (Pro and up) Pro $20/mo 9.0/10
#3 OpenCode devs who want a Claude Code-style agent without being tied to one model free and open source (MIT); free models included, or bring your own key, or sign in with your Claude Code login, GitHub Copilot or ChatGPT Plus/Pro optional OpenCode Go $10/mo, Go Plus $40/mo or Go Teams $20/member/mo 8.5/10
#4 GitHub Copilot teams already on GitHub; budget-conscious devs limited chat and agent usage Pro $10/mo 8.5/10

faq

is Codex better than Gemini CLI?

on our board, yes: OpenAI Codex is #7 (8.0/10) and Gemini CLI is #15 (5.5/10). Codex comes with ChatGPT and runs in the cloud as well as locally; Gemini CLI is now aimed at existing Gemini Code Assist customers.

is Gemini CLI still free?

not for individuals. Google says unpaid tier and Google One users were moved to Antigravity CLI on june 18, 2026. you can still run it on a paid Gemini API key, Vertex AI or an existing Code Assist licence (no new Code Assist subscriptions since oct 9, 2026).

is Codex free?

there's a limited way in: Codex is included in ChatGPT Free, on the desktop app and subject to rollout. the full kit (web, CLI, IDE extension, iOS, cloud code review and Slack) starts at Plus, $20 a month. Go is $8 for lighter tasks.

are Gemini CLI and Codex CLI both open source?

yes, both are Apache 2.0 on GitHub. the difference is what you log in with: Codex CLI runs on a ChatGPT plan or an OpenAI API key; Gemini CLI on a Code Assist licence, a paid Gemini API key or Vertex AI.

can i use Gemini models in Codex?

not on a ChatGPT login: Codex runs OpenAI models there, and with an API key model availability follows your OpenAI key. for Gemini and GPT in one place, try OpenCode or GitHub Copilot, which lists Gemini models alongside OpenAI and Anthropic ones.

sources

checked 2026-11-09, ~01:00 ET

numptrlast price check 243 prices 76 toolsbuild 35a7f2c6e · nov 28