Antigravity CLI vs Claude Code vs Codex: The Terminal Agent Field Guide (July 2026)

TL;DR
Antigravity CLI vs Claude Code vs Codex: how Google's Gemini CLI replacement compares on architecture, pricing, multi-agent workflows, and daily coding.
Google killed Gemini CLI on June 18, 2026 and replaced it with Antigravity CLI, a ground-up Go rewrite that shares its agent harness with the Antigravity 2.0 desktop platform. That makes the terminal agent war a three-way race: Google's new agy binary against Anthropic's Claude Code and OpenAI's Codex.
This is a practical comparison for developers choosing a daily terminal agent. Every product fact below was checked against official documentation and pricing pages on July 31, 2026. Where Google has not published a number, we say so instead of guessing.
Last updated: July 31, 2026
Official Sources#
| Resource | Link | Last verified |
|---|---|---|
| Antigravity CLI announcement | developers.googleblog.com | July 31, 2026 |
| Antigravity CLI download | antigravity.google/download | July 31, 2026 |
| Antigravity CLI docs | antigravity.google/docs | July 31, 2026 |
| Gemini CLI repository | github.com/google-gemini/gemini-cli | July 31, 2026 |
| Claude Code docs | code.claude.com/docs | July 31, 2026 |
| Anthropic pricing | anthropic.com/pricing | July 31, 2026 |
| Codex docs | learn.chatgpt.com/docs | July 31, 2026 |
| Codex pricing | learn.chatgpt.com/docs/pricing | July 31, 2026 |
Quick answer#
Claude Code remains the best daily terminal agent for most developers: most mature sub-agent system, best model quality for multi-file work, and now bundled into every paid Claude plan. Codex is the strongest choice if you want the same agent across terminal, IDE, web, and cloud, or if you want to route between three model price points (Sol, Terra, Luna) from one tool. Antigravity CLI is the most interesting new entrant: fastest startup, real async multi-agent orchestration, multi-provider support (Gemini, Claude, GPT-OSS) from one binary, and free for personal use - but it is young, has a weekly compute cap instead of a daily request count, and the ecosystem is still catching up.
The honest recommendation for July 2026: if you already use Gemini CLI, Antigravity is a smooth migration with real improvements. If you are choosing your first terminal agent, Claude Code is still the safest default, and Codex is the best pick for ChatGPT-heavy workflows.
Head-to-head table#
| Antigravity CLI | Claude Code | Codex | |
|---|---|---|---|
| Vendor | Anthropic | OpenAI | |
| First shipped | June 2026 (as Antigravity) | Feb 2025 | May 2025 (CLI) |
| Binary | agy | claude | codex |
| Language | Go | TypeScript | Rust |
| Open source | Community forum, parts shared | No | CLI is open source |
| Default model | Gemini 3.x (1M context) | Opus 5 / Sonnet 5 | GPT-5.6 Sol / Terra / Luna |
| Other providers | Claude, GPT-OSS via /model | None | API-keys for third-party models |
| Async multi-agent | Yes, background orchestration | Sub-agents, parallel | Cloud background runs, subagents |
| Project memory | GEMINI.md-style context files | CLAUDE.md | AGENTS.md |
| Skills | Agent Skills, .agents/skills/ | Skills + library | Skills + plugin marketplace |
| MCP support | Yes, mcp_config.json | Yes | Yes |
| Free tier | Weekly compute cap (unpublished limit) | No | No (Plus/Pro subscription) |
| Personal plan price | Free with Google account | $20/mo Pro includes it | $20/mo Plus includes it |
The three-way landscape#
Antigravity CLI: the reboot with a harness#
Antigravity CLI is not Gemini CLI with a new name. Google announced on May 19, 2026 that Gemini CLI would stop serving requests for free-tier, AI Pro, and AI Ultra users on June 18, and that a new Go-based CLI built on the Antigravity platform would replace it. The community forum lives at github.com/google-antigravity/antigravity-cli, and the migration guide covers everything that changed.
What carried over: Agent Skills, Hooks, Subagents, and extensions (now called plugins). What changed under the hood: the binary is agy, startup is noticeably faster (Go), and the CLI shares its agent harness with Antigravity 2.0, Google's agent-first desktop platform. That shared harness is the strategic bet: improvements to core agents land in the CLI and the desktop app together.
The interesting differentiator is provider freedom. Gemini CLI was Gemini-only; Antigravity supports Gemini, Claude, and GPT-OSS models through the /model command, which makes it the only one of the three that can run another vendor's model from your terminal agent. Given the model-routing cost math that is a real feature, not a gimmick.
The trade-offs are equally real. There is no 1:1 feature parity with Gemini CLI at launch (the ACP mode gap is tracked as issue #31 in the community repo). The daily 1,000-request limit became a weekly compute-based cap, and Google has not published the exact numbers - community reports describe throttling after roughly 2,000 lines of generated code with multi-day cooldowns. MCP servers configure through a dedicated mcp_config.json (the migration trap is url versus serverUrl for remote servers); if you are choosing which servers to wire in, our MCP clients comparison covers the full 2026 client landscape. And while the free tier is generous for interactive use, heavy generation work needs planning.
Claude Code: the incumbent with the deepest memory#
Claude Code is the terminal agent that defined the category: local-first, reads your filesystem directly, spawns parallel sub-agents, and compounds project knowledge in CLAUDE.md files. It is now included in every paid Claude plan, which changed the pricing story completely - Pro at $20/month includes it, Max at $100-200/month removes the usage anxiety.
Model quality is the moat. Opus 5, launched July 24, 2026 at $5/$25 per million tokens, is the strongest generally available coding model for multi-file work, and Sonnet 5's introductory $2/$10 pricing (through August 31, 2026, then $3/$15) covers everyday tasks cheaply. The skills system - plain markdown files plus a curated library - is the reference implementation that Codex and others are now cloning.
Its weaknesses are structural: it is not open source, it has no official multi-provider mode, and it has no hosted sandbox of its own for risky tasks (you bring your own isolation). For a deeper dive, see Claude Code vs Codex: the full head-to-head.
Codex: the multi-surface agent with three price points#
Codex is the only one of the three that is also a consumer product surface: app, web, IDE extension, CLI, and ChatGPT Work. It runs the full GPT-5.6 family - Sol for flagship work, Terra for the balanced middle, Luna for budget volume - so a single Codex account can route tasks across a 25x input-price spread. The GPT-5.6 family guide has the full per-tier pricing.
Codex closed the skills gap in 2026: it has its own skills system, a plugin marketplace, AGENTS.md project memory, and subagents. Its cloud environment enables fire-and-forget runs, GitHub integration, and scheduled tasks that Claude Code cannot match without extra tooling - and with 8 million active users across Codex and ChatGPT Work since mid-July (Codex user guide), it is the most-tested agent surface of the three. For headless and CI-driven work specifically, our headless AI coding agents comparison breaks down how each agent behaves in pipelines. The CLI itself is open source.
The weaknesses: the product surface is broad, so you have to pick a workflow (CLI vs IDE vs app vs Work) and the choice changes the experience; and local-first purists will find the hosted/cloud defaults less direct than Claude Code.
Pricing compared#
All prices verified July 31, 2026 against the official pages.
| Antigravity CLI | Claude Code | Codex | |
|---|---|---|---|
| Free tier | Yes, Google account (weekly compute cap) | No | No |
| Subscription | None needed for personal use | Claude Pro $20/mo or Max $100-200/mo | ChatGPT Plus $20/mo or Pro $200/mo |
| API model rates | Gemini 3.1 Pro $2/$12 under 200K ctx | Sonnet 5 $2/$10 intro, Opus 5 $5/$25 | Terra $2/$12, Sol $5/$30, Luna $0.20/$1.20 |
| Enterprise | Gemini Code Assist licenses | Claude Team/Enterprise | ChatGPT Enterprise |
The free tier is Antigravity's killer feature: a personal Google account gets you the CLI, Gemini 3 models, and Google Search grounding at no cost, within the weekly compute cap. Claude Code and Codex both effectively require a $20/month subscription for meaningful daily use. On the API side, Luna at $0.20/$1.20 is the cheapest agent-capable tier on the market - see the budget model comparison - while Opus 5 and Sol are priced within a few dollars of each other. For the editor-side decision, see Antigravity vs Cursor.
When to use which#
Choose Antigravity CLI if:#
- You are a Gemini CLI user: the migration is mostly mechanical, and the Go rewrite is genuinely faster
- You want a free personal terminal agent with a 1M-token context window
- You want provider freedom: one CLI that can talk to Gemini, Claude, or GPT-OSS models
- You want real background multi-agent orchestration without leaving the terminal
- You already live in the Google ecosystem (Google Cloud, Gemini Code Assist, Vertex)
Choose Claude Code if:#
- Coding is your primary daily work and you want the strongest model quality for multi-file tasks
- You value compound memory: CLAUDE.md files and skills that make each project teach the agent
- You want the most mature sub-agent and hooks ecosystem
- You already pay for Claude Pro or Max - it is included, so marginal cost is zero
Choose Codex if:#
- You want one agent across terminal, IDE, web, and cloud
- You need async cloud runs, GitHub-native workflows, or scheduled tasks
- You want to route between Sol, Terra, and Luna from one tool based on task difficulty
- You already pay for ChatGPT Plus or Pro
When to stay with what you have#
Honest counterpoint: none of these tools is so much better than the others that switching is urgent.
- If you are happy with Claude Code, do not switch for Antigravity's free tier - the weekly compute cap makes it a poor primary workhorse for heavy generation, and your plan already includes Claude Code.
- If you live in ChatGPT, Codex Plus is the path of least resistance; Antigravity's provider freedom is only valuable if you actually want to mix models.
- If you run a team on Gemini Code Assist Standard or Enterprise, your Gemini CLI access was never cut - Google exempted enterprise licenses from the June 18 deadline, and there is no migration pressure on you.
FAQ#
Is Antigravity CLI free?#
Yes for personal use. Sign in with a Google account and you get the CLI with Gemini 3 models and Google Search grounding. The free tier is a weekly compute-based cap rather than the old daily 1,000-request limit, and Google has not published exact numbers. Community reports suggest roughly 2,000 lines of generated code before throttling.
Does Antigravity CLI work with Claude or GPT models?#
Yes. Unlike Gemini CLI, which was Gemini-only, Antigravity CLI supports multiple providers including Gemini, Claude, and GPT-OSS models through the /model command. Claude Code and Codex do not offer equivalent multi-provider support out of the box.
What happened to Gemini CLI?#
Gemini CLI stopped serving requests on June 18, 2026 for free-tier, Google AI Pro, and Google AI Ultra users. Google announced the transition on May 19, 2026. Enterprise users on Gemini Code Assist Standard or Enterprise licenses kept access, as did paid API-key usage. The replacement is Antigravity CLI.
Is Claude Code included in Claude Pro?#
Yes. Claude Pro ($20/month, or $17/month billed annually) includes Claude Code, Claude Cowork, Claude Design, and Claude Science. Claude Max at $100-200/month adds 5x or 20x usage. This made Claude Code effectively free for existing Pro subscribers.
What models does Codex use in 2026?#
Codex runs the GPT-5.6 family: Sol (flagship, $5/$30), Terra (balanced, $2/$12), and Luna (budget, $0.20/$1.20), with fast mode at 2x standard rates. Model selection is per-chat, so you can route cheap work to Luna and hard work to Sol within the same session.
How do the context windows compare?#
Gemini models in Antigravity CLI carry a 1M-token context window, which is the largest of the three. Claude Code models offer 200K (with flat pricing across the full window for Opus 5), and GPT-5.6 models offer 272K in short-context mode with a long-context tier above it.
Is Antigravity CLI open source?#
The CLI has a public community repository at github.com/google-antigravity/antigravity-cli where feedback and feature requests live, and it builds on Google's open-source agent ecosystem. The old Gemini CLI repository remains public at github.com/google-gemini/gemini-cli with over 100,000 stars. Claude Code is closed source; the Codex CLI is open source.
Continue Reading#
- Claude Code vs Codex App in 2026 - the deeper two-way head-to-head on local vs cloud agent architecture
- Gemini CLI to Antigravity CLI Migration Guide - the step-by-step migration, including the MCP config trap
- Google AI Pro vs Gemini API - what the AI Pro plan buys you in Antigravity versus paying per token with an API key
- Gemini 3.5 Pro Developer Guide - the model behind Google's agent tooling
- Claude Code vs Cursor vs Codex 2026 - where the IDE agents fit in
- Best CLI Tools for AI Development - the wider terminal-tool shortlist
- GPT-5.6 Sol/Terra/Luna Developer Guide - the OpenAI family and its pricing spread
- OpenAI Models on Google Cloud - the October 2026 Model Garden preview and what it means for Antigravity users
- Claude Code vs Codex - the head-to-head on pricing, workflow, and fit
- Best CLI Tools for Developers - more terminal agents compared
Sources#
- Google Developers Blog: Transitioning Gemini CLI to Antigravity CLI - the May 19, 2026 announcement and June 18 timeline (fetched July 31, 2026)
- Antigravity CLI download and installer - the official install script and binary distribution (fetched July 31, 2026)
- Gemini CLI repository - open-source features, free tier, and Gemini 3 model support (fetched July 31, 2026)
- Anthropic pricing page - Claude plans, Claude Code inclusion, Opus 5 and Sonnet 5 rates (fetched July 31, 2026)
- OpenAI API pricing page - GPT-5.6 Sol/Terra/Luna rates and fast mode (fetched July 31, 2026)
- Codex documentation - product surfaces, model selection, skills and plugins (fetched July 31, 2026)
Get the next comparison like this in your inbox
One email a week on antigravity and the rest of the AI dev stack. Free.
Read next on Claude Code
Claude Code vs Codex App in 2026: Local Agent Pairing vs Cloud Agent Orchestration
Claude Code vs Codex app: a local agent loop against cloud agent orchestration. Compare execution model, security controls, pricing and when each tool wins.
11 min readGemini CLI to Antigravity CLI Migration Guide: The June 18 Deadline
Gemini CLI to Antigravity CLI migration guide: install, migrate config, update scripts and CI, and avoid the silent MCP failure that breaks tool calls.
6 min readGoogle Antigravity in 2026: IDE, Antigravity 2.0, CLI, Pricing and Limits Explained
Google Antigravity in 2026 explained: the IDE, Antigravity 2.0 desktop app, agy CLI, extensions and Python SDK, plus how pricing, quota limits and models work.
11 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.








