Codex vs Gemini CLI: access, limits and price
Codex runs on any ChatGPT plan from Free up, or an OpenAI API key, with a five-hour window on Plus and weekly limits. Gemini CLI no longer takes personal Google sign-ins: it runs on a Gemini Code Assist Standard or Enterprise licence with a daily request count, or a paid Gemini API key.
Contents
We make Shuriken. We tried to be fair; corrections welcome at office@shuriken.sh.
Quick answer#
Codex vs Gemini CLI is mostly a question of which account you already have. Codex runs on any ChatGPT plan, from the free one up, or on an OpenAI API key. Gemini CLI stopped taking personal Google sign-ins on 18 June 2026; it now runs on a company's Gemini Code Assist Standard or Enterprise licence, or a paid Gemini API key.
So for a solo developer with ChatGPT Plus, Codex is already there. For someone whose company pays for Code Assist, Gemini CLI is. Both are open source under Apache-2.0, both speak MCP, and both can run in the same project without stepping on each other.
At a glance#
Every cell comes from OpenAI's or Google's own docs or repositories, read on 24 October 2026; Codex plans and Gemini CLI's quotas re-checked on 28 October 2026. Prices are in US dollars.
| Codex CLI | Gemini CLI | |
|---|---|---|
| Made by | OpenAI | |
| Licence | Apache-2.0 | Apache-2.0 |
| Sign in with | A ChatGPT plan: Free, Go, Plus, Pro, Business, Edu or Enterprise (pricing), or an API key with codex login --with-api-key |
A Code Assist Standard or Enterprise licence, or a paid Gemini or Gemini Enterprise Agent Platform API key (Google). Personal sign-ins stopped on 18 June 2026 |
| Plan limits | Messages per five-hour window on Plus; "Pro plans currently have no five-hour limit"; "weekly limits may also apply" | Requests per user per day: 1,500 on Standard, 2,000 on Enterprise, plus an unnumbered per-minute limit |
| API key limits | Billed at API prices | Per project, by usage tier; daily quotas reset at midnight Pacific time |
| Past the limit | Plus and Pro can buy credits; any user can add an API key | Pay as you go, which Google's quota page recommends |
| Check usage | /status, or the usage dashboard |
/stats model |
| Project instructions | AGENTS.md |
GEMINI.md |
| Config | ~/.codex/config.toml |
~/.gemini/settings.json |
| MCP servers | codex mcp add or [mcp_servers.<name>] in config.toml; stdio and streamable HTTP, codex mcp login for OAuth |
In ~/.gemini/settings.json |
| Approvals | Sandbox mode (read-only, workspace-write, danger-full-access) plus approval policy (on-request, never, granular) |
--approval-mode: default, auto_edit, yolo, plan; --sandbox for a sandboxed run |
| Resume | codex resume, --last, by ID or name |
gemini --resume latest, or by index from --list-sessions |
| Install | curl -fsSL https://chatgpt.com/codex/install.sh | sh, npm, Homebrew; a PowerShell script on Windows |
npm install -g @google/gemini-cli, npx, Homebrew |
What changed in June 2026#
On 19 May 2026 Google announced that "On June 18, 2026, Gemini CLI and Gemini Code Assist IDE extensions will stop serving requests" for Google AI Pro and Ultra, and for people using it at no charge through Gemini Code Assist for individuals. Licence holders keep access, and "Gemini CLI will remain accessible via paid Gemini and Gemini Enterprise Agent Platform API keys" (Google Developers Blog).
Most Codex vs Gemini CLI pages were written before that, when Gemini CLI's free tier of 1,000 requests a day was its selling point. That tier no longer serves Gemini CLI. Google's path for personal accounts is Antigravity CLI, a different program; our Gemini CLI free tier guide has the details.
What Codex does well#
- Every ChatGPT plan includes it, from Free and Go ($8) up, and Plus is $20 a month.
- Past the limit, Plus and Pro can buy credits, and any user can run
codex login --with-api-keyand carry on with local chats on an API key. The message at the limit says when to try again; our Codex usage limit guide walks through each option. codex resume --lastreopens the last session in a folder, andcodex forkbranches one without touching the original.- Sandbox mode and approval policy are two separate settings. With
workspace-writeandon-request, Codex writes in the workspace and still asks before anything outside it.
What Gemini CLI does well#
- A licence gives a fixed number of requests per user per day (1,500 on Standard, 2,000 on Enterprise), so you know the day's allowance in the morning instead of watching a rolling window.
- If your employer already pays for Code Assist, sign-in and billing go through Google accounts you already have.
- Gemini CLI retries per-minute limits by itself. When a daily limit stops it, the error names the model and the reset time; Gemini CLI quota exceeded goes through each case.
- Plan mode is one flag,
--approval-mode plan, next todefault,auto_editandyolo.
Where they differ in practice#
Who can sign in#
This is the big difference in late 2026. A freelancer with ChatGPT Plus has Codex. The same freelancer with a personal Google AI Pro plan doesn't have Gemini CLI any more. Gemini CLI is now mostly for people with a company licence or a paid API key.
The limit you'll hit#
- Codex on Plus: a busy afternoon runs into the five-hour window, a busy week into the weekly limit.
- Codex on Pro: no five-hour window for now, so the week is the one you watch.
- OpenAI publishes ranges of messages per window, not fixed numbers, because a long agent turn counts for more than a short one.
/statusshows where you are. - Gemini CLI on a licence: a daily count of requests, where one prompt can make several.
/stats modelshows it. - On an API key both bill per token, and Google's limits apply per project, not per key.
Configuration#
Codex keeps everything in ~/.codex, with its config in TOML (config.toml). Gemini CLI uses ~/.gemini, with JSON (settings.json). Each also reads a project instruction file. Moving MCP servers from one to the other means rewriting each entry by hand, not copying a file.
Which should you choose?#
- You pay for ChatGPT: start with Codex. It's included, Free plan up.
- Your company gives you a Gemini Code Assist Standard or Enterprise licence: Gemini CLI is included. Try it on real work.
- You have a personal Google AI Pro or Ultra plan: Gemini CLI no longer serves it. Google points you to Antigravity CLI.
- You want pay-as-you-go: both run on API keys. Compare per-token prices for the models you'd use on each provider's page.
- You can't decide: give both the same task on your own code and compare the diffs. We explain why we don't publish benchmarks on our Claude Code vs Codex page.
Pricing#
As published on 24 October 2026, in US dollars:
- Codex: Free $0, Go $8 a month, Plus $20 a month, Pro from $100 a month, Business $20 per user a month billed yearly for 2 or more users ($25 billed monthly), Enterprise and Edu through sales (OpenAI). With an API key you pay API prices instead.
- Gemini CLI: no consumer plan covers it now. A Code Assist Standard or Enterprise licence is bought through your company's Google Cloud account. A Gemini API key is billed per token, and its limits rise with your usage tier:
- Tier 1: an active billing account.
- Tier 2: $100 paid and 3 days.
- Tier 3: $1,000 paid and 30 days.
Using them together#
Shuriken runs Codex and Gemini CLI side by side, along with Claude Code and the rest of its 67 coding agents. One project can hold a Codex chat and a Gemini chat, each on its own branch in its own git worktree if you pick Own branch, so they don't edit the same files under each other.
Each agent runs on its own sources: Codex chats on the ChatGPT accounts and OpenAI keys you add, Gemini chats on the Google sign-ins and Gemini keys you add, each kept in its own folder. When the source in use reaches a limit, Shuriken does hot swapping: it moves your chats to another of your accounts or sources for the same agent, at the end of the current turn. A Codex chat never turns into a Gemini chat. Add only accounts and keys you own and are entitled to use; providers' terms may not allow sharing a subscription sign-in.
If you pay for both, download Shuriken and add a source for each.
Try the free tool: Codex limit reset tracker
Sources
- OpenAI: Codex pricing (accessed 28 October 2026)
- OpenAI: Codex authentication (accessed 24 October 2026)
- OpenAI: Codex MCP (accessed 24 October 2026)
- OpenAI: Codex agent approvals and security (accessed 24 October 2026)
- OpenAI: Codex CLI command reference (accessed 24 October 2026)
- openai/codex on GitHub (README, licence, AGENTS.md) (accessed 28 October 2026)
- Google Developers Blog: Transitioning Gemini CLI to Antigravity CLI (accessed 24 October 2026)
- Gemini CLI: Quotas and pricing (accessed 28 October 2026)
- Gemini CLI README (GitHub) (accessed 28 October 2026)
- Gemini CLI: CLI reference (GitHub docs) (accessed 24 October 2026)
- Gemini API: Rate limits (accessed 24 October 2026)
Frequently asked questions
Is Codex or Gemini CLI free?
OpenAI's pricing page includes Codex in the free ChatGPT plan for quick tasks. Gemini CLI stopped serving personal Google accounts, free ones included, on 18 June 2026, so it needs a Code Assist licence or a paid API key.
Are Codex and Gemini CLI open source?
Yes, both. Codex CLI and Gemini CLI are each published on GitHub under the Apache-2.0 licence.
Do Codex and Gemini CLI both support MCP?
Yes. Codex keeps servers in ~/.codex/config.toml as [mcp_servers.<name>] tables and adds them with codex mcp add. Gemini CLI keeps them in ~/.gemini/settings.json.
Can I use Codex and Gemini CLI in the same project?
Yes. Codex reads AGENTS.md and ~/.codex/config.toml, and Gemini CLI reads GEMINI.md and ~/.gemini/settings.json, so they don't change each other's setup. Give each its own branch if both edit code.
Which has the more generous limits?
They are counted differently. Codex counts messages per five-hour window and per week, in ranges OpenAI publishes instead of fixed numbers. Gemini CLI on a licence counts requests per user per day: 1,500 on Standard, 2,000 on Enterprise.