Checked November 12, 2026 against code.claude.com/docs, claude.com/pricing, support.claude.com, learn.chatgpt.com/docs/pricing, github.com/openai/codex, github.com/google-gemini/gemini-cli and antigravity.google/docs (US prices). This is a documentation-based comparison, not a hands-on test.
Quick verdict
Already paying for ChatGPT: Codex CLI is included in every ChatGPT plan, including Free, and the CLI is open source.
Already paying for Claude: Claude Code comes with Pro ($20/month) and up, and runs in the terminal, IDEs, a desktop app and the web.
Gemini users: since June 18, 2026, Gemini CLI no longer serves free, Google AI Pro or Ultra individual accounts. Google moved those users to Antigravity CLI.

Illustration: AI Tool Audit, created with Google Gemini
On this page
Three terminal agents, three ecosystems
All three tools are coding agents you run from a terminal. You describe a task, and the agent reads your code, edits files and runs commands. The biggest differences are not the core idea. They are which subscription pays for them, how usage is limited and where else they run.
| Claude Code | Codex CLI | Gemini CLI | |
|---|---|---|---|
| Maker | Anthropic | OpenAI | |
| Open source | Not stated in the docs we checked | Yes, Apache-2.0 | Yes, Apache 2.0 |
| Included with | Claude Pro, Max, Ultra, Team, Enterprise | ChatGPT Free, Go, Plus, Pro, Business, Edu, Enterprise | Gemini Code Assist enterprise licenses |
| API key option | Yes, Console account at API rates | Yes, at API pricing | Yes, Gemini API key or Vertex AI |
| Other surfaces | VS Code, Cursor, JetBrains, desktop app, web | IDE extension, SDK, cloud features | Terminal |
Claude Code
Claude Code runs in the terminal, in VS Code and Cursor, in JetBrains IDEs, in the Claude desktop app and in the browser at claude.ai/code. Most surfaces need a Claude subscription or a Console account. The terminal, VS Code and JetBrains also support third-party cloud providers.
Plans: Pro is $20 a month, or $17 a month billed annually. Max is $100 a month with 5x Pro usage, and Ultra is $200 a month with 10x Pro weekly usage. The Free plan does not include Claude Code.
Limits: Pro and Max have a five-hour session limit and a weekly limit. Verified Ultra accounts have no five-hour limit. These limits are shared with Claude chat. Our Claude Code usage limits guide explains the details.
Stand-out features: project instructions in a CLAUDE.md file (it can also read an existing AGENTS.md), MCP connections, hooks, skills, subagents, scheduled tasks and GitHub Actions.
OpenAI Codex CLI
Codex CLI is OpenAI's open source coding agent. It runs locally on your computer. You can install it with npm, Homebrew or an install script, and the repo lists builds for macOS, Linux and a Windows installer.
Plans: OpenAI's pricing page says Codex is included in ChatGPT Free, Go, Plus, Pro, Business, Edu and Enterprise. Listed prices are Go at $8 a month, Plus at $20, Pro at $100, $200 or $500, and Business at $20 per user a month billed annually ($25 monthly).
Limits: for Plus and Standard Business, OpenAI gives ranges of local messages per five hours that depend on the model, and says weekly limits may also apply. It says Pro plans currently have no five-hour limit.
API key: you can sign in with a ChatGPT account, which the repo recommends, or use an API key. With an API key you pay API prices, and cloud features such as GitHub code review and Slack are not included.
Gemini CLI, and the move to Antigravity CLI
Gemini CLI is Google's open source terminal agent, licensed under Apache 2.0 and installed with npm. It supports three sign-in methods: a Google account, a Gemini API key, or Vertex AI.
The big change came on June 18, 2026. In an announcement on the project's GitHub, the Gemini CLI team said the tool stopped serving requests for Google AI Pro, Google AI Ultra and free-tier individual accounts. Enterprise users with Gemini Code Assist licenses and API key users were not affected. The repo now says the CLI is maintained for enterprise Gemini Code Assist workflows.
Individuals move to Antigravity CLI, run with the agy command. Google's installer copies over Gemini CLI settings such as skills and MCP servers. Antigravity's docs list a Free plan at $0 a month, plus higher rate limits on Google AI Plus, Pro and Ultra. Limits are tracked separately for Gemini models and for Claude and GPT models, each with a weekly and a five-hour window. You can also sign in with a Gemini API key.
Which should you choose?
- You pay for ChatGPT: start with Codex CLI. It costs nothing extra, even on Free.
- You pay for Claude, or want the most surfaces: Claude Code. One subscription covers the terminal, IDEs, desktop and web.
- Your company has Gemini Code Assist: Gemini CLI still works with those licenses and with API keys.
- You are an individual Google user: use Antigravity CLI, not Gemini CLI.
- You want to avoid subscriptions: all three accept API keys, so you pay only for what you use.
More reading: Claude Code explained, Claude Code vs GitHub Copilot, best AI coding tools, Claude plans explained and the AI tool price table.
FAQ
Is Codex CLI free?
The CLI is open source, and OpenAI says Codex is included in every ChatGPT plan, including Free. Usage limits vary by plan.
Does Gemini CLI still work?
For enterprise Gemini Code Assist licenses and API key users, yes. It stopped serving free, Google AI Pro and Ultra individual accounts on June 18, 2026.
Is Claude Code included in the free Claude plan?
No. Claude Code needs Pro or higher, or a Console account billed at API rates.
Can I use these tools with an API key instead of a subscription?
Yes. Claude Code works with a Console account, Codex CLI with an OpenAI API key, and Gemini CLI with a Gemini API key or Vertex AI.
Sources
- Claude Code Docs: Overview (checked November 12, 2026)
- Claude plans and pricing (checked November 12, 2026)
- Claude Help Center: Use Claude Code with your Pro, Max, or Ultra plan (checked November 12, 2026)
- OpenAI Codex pricing (checked November 12, 2026)
- OpenAI Codex CLI on GitHub (checked November 12, 2026)
- Gemini CLI on GitHub (checked November 12, 2026)
- Gemini CLI team: Gemini CLI has stopped serving requests for individual accounts (checked November 12, 2026)
- Antigravity docs: Overview (checked November 12, 2026)
- Antigravity docs: Get started (checked November 12, 2026)




