Google Antigravity vs Codex: Which Coding Agent Fits?

Google Antigravity vs Codex used to be an easy split: Google's agent IDE against OpenAI's terminal tool. Now both are a desktop app, a CLI, editor extensions, an SDK and a cloud, so the names tell you very little.
Pick Google Antigravity if you want Gemini models with some Claude models beside them, a Google AI plan as the bill, and an agent that can drive a browser from both the app and the terminal. Pick Codex if you already pay for ChatGPT, want pull request review built in, or need an open-source CLI. Both run agents in parallel and both sandbox commands by default in their standard setups.
The short version:
- Models: Antigravity serves Gemini, plus Claude on some plans. Codex is built around OpenAI's GPT models
- Code review: Codex reviews GitHub pull requests when you type
@codex review. Antigravity documents local diff review, commit and push - Cloud: both have one. Antigravity's is newer, rolling out, and runs commands without asking unless you change a setting
- License: the Codex CLI is Apache-2.0. Antigravity's SDK repo is too, but its CLI repo has no license file or source code
- Billing: a Google AI plan or a ChatGPT plan. The one you already have is a fair tiebreaker
Quick Comparison
At the time of writing (November 2026):
| Google Antigravity | OpenAI Codex | |
|---|---|---|
| Desktop app | Antigravity App (launched as Antigravity 2.0) | Codex inside the ChatGPT desktop app |
| Terminal | Antigravity CLI (agy) | Codex CLI (codex) |
| Own code editor | Antigravity IDE | None |
| Editor extensions | VS Code, Visual Studio, JetBrains, Android Studio, Zed, Xcode, Eclipse | VS Code, Cursor and Windsurf extension; Xcode and JetBrains ship their own integrations |
| Cloud agents | Remote Agents (paid Google AI Pro and Ultra rollout) | Codex Cloud (ChatGPT sign-in required) |
| Models | Gemini 4 family, Claude on some plans | GPT-6 family |
| Browser from the CLI | Yes, /browser with your local Chrome | No, use the desktop app |
| Pull request review | No built-in reviewer found in the docs | @codex review, automatic reviews, Code Review plugin |
| Instructions file | AGENTS.md or GEMINI.md | AGENTS.md |
| Extensions | MCP, skills, plugins, hooks | MCP, skills, plugins, hooks |
| SDK | Python | TypeScript and Python |
| CLI source | Not in the public repo | Open source, Apache-2.0 |
| Billing | Google AI plan quota, credits, or API billing | ChatGPT plan allowance, credits, or API billing |
Apps, CLIs and Editors
Antigravity is a family. Google introduced the standalone desktop app as Antigravity 2.0 in May 2026. Its docs now call it the Antigravity App. Beside it sit the CLI, a separate Antigravity IDE with Tab completion, a Python SDK, and extensions for seven editors. Any other editor that speaks the Agent Client Protocol can launch agy acp.
If you only want the editor, read our Google Antigravity vs Cursor comparison instead. That's the closer match.
Codex has no editor of its own. You reach it through the CLI, an IDE extension, the web, your phone, or the ChatGPT desktop app. In the app you pick ChatGPT or Codex, then start a chat against a project folder. macOS and Windows are supported. Linux is in preview for a short list of distributions. Our OpenAI Codex guide covers each surface in turn.
Switching costs are small on paper. Both read AGENTS.md, both support SKILL.md skills and MCP servers. The catch is how they look for files:
- Antigravity loads
AGENTS.mdfrom your workspace folder and its parents, up to the repository root. It doesn't search subfolders below the workspace folder - Codex walks down from the project root to the directory you started in, with closer files overriding earlier ones and a 32 KiB default limit
In a monorepo, start either one inside the package you're working on. Open the repo root and a nested AGENTS.md won't load at startup in Antigravity or Codex.
Antigravity CLI vs Codex CLI
This is the comparison most terminal users want, and the two feel alike for the first ten minutes. The differences show up after that.
| Antigravity CLI | Codex CLI | |
|---|---|---|
| Start it | agy | codex |
| Sign in | Google account, business account, or Gemini API key | ChatGPT account or OpenAI API key |
| Plan first | plan execution mode | read-only sandbox through /permissions |
| Scripted runs | agy -p headless mode | codex exec |
| Review changes | /diff viewer with line comments | /review against uncommitted work, a commit or a branch |
| Isolated checkout | Subagents can branch into a Git worktree | /worktree in a session, or --worktree on codex exec |
| Cloud from the terminal | agy --remote-agent | codex cloud |
| Browser | /browser drives local Chrome | Not available |
| Plugins | Yes, shared with the app | Yes, with a plugin browser |
Two details are worth knowing before you script anything.
First, Google's FAQ says headless mode is for direct scripting and CI. Wrapping agy inside a third-party coding agent isn't supported on consumer plans, and using third-party software with your Antigravity login breaks its terms. An API key is the supported route.
Second, an API key changes what Codex gives you. OpenAI's pricing page lists the CLI, SDK and IDE extension for API-key users, but no cloud features such as GitHub code review.
Coming from Gemini CLI? Our Gemini CLI vs Claude Code post explains how that product turned into Antigravity CLI.
Models
Antigravity's model page is a menu that depends on your plan:
- Free and Google AI Plus get Gemini 4 Hydrogen
- Paid Google AI Pro and Ultra add Gemini 4 Neon and Carbon, plus Claude Sonnet 5.5 and Claude Opus 5.5
- Orchestrator, on the same paid plans, pairs a planner model with a faster executor
Google scheduled several older entries, including GPT-OSS 120B, Gemini 4 Argon and Claude Sonnet 4.6, for removal on November 30, 2026. Check the picker before you build a habit around one of them.
Codex's models page recommends GPT-6.2 Astra for demanding work and GPT-6.2 Sol for everyday coding. Both are available on Plus and higher plans. Free and Go accounts get GPT-6 Luna in the desktop app, which OpenAI describes as subject to rollout. Local Codex can also reach OpenAI models through Amazon Bedrock.
So if you want to switch between two labs' models inside one tool, Antigravity is the one that offers it. If you want OpenAI's newest models in the tool OpenAI builds for them, that's Codex.
Permissions and Sandboxing
Both use the operating system to fence in shell commands. Both also have an automatic mode that decides which out-of-sandbox requests need you.
| Antigravity | Codex | |
|---|---|---|
| Standard behavior | App preset Default: commands run in the sandbox, ask outside it | Ask for approval: works in the workspace, asks beyond it |
| Network | Off in the sandbox unless you allow a domain | Off by default for local commands |
| Automatic mode | Auto: safe, reversible commands run unprompted | Approve for me: eligible requests go to automatic review |
| No guardrails | Turbo preset | Full access mode |
| macOS | Seatbelt (sandbox-exec) | Seatbelt |
| Linux | Kernel namespaces | bubblewrap, install it first |
| Rules | Allow, Ask and Deny lists; Deny wins | Permission profiles and command rules |
The sources here are Antigravity's permissions and sandbox docs and OpenAI's sandbox and approvals docs.
Check the mode in your terminal. In recent versions of the Antigravity CLI, auto mode is the default where it's available. That means personal accounts with a working sandbox. It isn't what the desktop app starts with, and business accounts behave differently again. Look at the status bar in agy before your first real task.
Check the cloud default too. Google's Remote Agents docs say that in CLI remote sessions, the permission preset is turbo unless you change it, so remote agents run commands without asking. They run in an isolated Google-managed environment rather than on your machine, but any repository you attach is in scope.
Parallel Agents, Cloud and Browser
Worktrees. Both desktop apps can start a conversation in a new Git worktree, so two agents don't edit the same files. Codex adds Handoff, which moves a chat and its code between your local checkout and the worktree. Antigravity's subagents can each get their own worktree.
Subagents. Both support built-in and custom subagents. Antigravity also has /swarm, a preview feature where named agents split a task and share a message board. Codex's Ultra mode uses subagents on larger tasks. Both vendors warn that this burns through usage faster.
Cloud. Codex Cloud can check out connected GitHub or GitLab repositories, keeps working while your computer sleeps, and lets you commit or open a pull request from the result. Antigravity's Remote Agents do the same kind of long-running work with GitHub repositories, Google Drive files or uploads. They're limited to personal accounts on Google AI Pro and Ultra and are rolling out gradually. In a remote CLI session, local MCP servers, plugins and skills aren't available yet.
Browser. Antigravity has the wider reach. The app's built-in browser agent is rolling out to personal accounts on every plan, and the CLI and VS Code extension can drive your local Chrome. OpenAI says its Browser isn't available in the Codex CLI or IDE extension. You use it in the ChatGPT desktop app, on the web, or inside a Codex Cloud task. If you test front-end changes from a terminal, this one matters.
GitHub and Code Review
Here Codex has the clearer lead.
Comment @codex review on a GitHub pull request and Codex posts a standard review that flags only P0 and P1 issues. You can turn on automatic reviews and put your own checks under ## Code Review Rules in AGENTS.md. The ChatGPT desktop app includes a Code Review plugin for reading a pull request's description, changes, comments and checks. GitLab support there is in preview.
Antigravity's review docs focus on your own working tree. The app shows diffs per file, per turn or per branch. You comment on lines, the agent revises, and you commit and push from the same pane. A scheduled automation can check your open pull requests for failing checks. We didn't find a built-in reviewer that posts to GitHub like Codex's does.
The practical split: Antigravity's review loop happens before you push. Codex covers that and the pull request after it.
Usage, Billing and License
Antigravity ties usage to a Google AI plan. Free and Plus accounts get a quota that refreshes weekly. Paid Pro and Ultra quotas refresh every five hours, with weekly limits on top, and Pro and Ultra users can spend purchased AI credits past that. There's no bring-your-own-key option for extra plan limits. Separately, the CLI can run on a Gemini API key, and Pay As You Go bills tokens to your own Google Cloud project. Workspace plans don't include Antigravity plans.
Codex comes out of your ChatGPT plan's allowance, which it shares with ChatGPT Work. Local messages and cloud chats draw on the same pool. Eligible plans can add credits, and API-key sessions bill separately at API rates. See OpenAI's pricing page for current limits.
License. The Codex CLI repo is Apache-2.0, though OpenAI's open source page says the IDE extension and cloud aren't open, and the repo doesn't accept outside code contributions. The Antigravity CLI repo holds a README, changelog and examples, with no license file. The Python SDK repo is Apache-2.0 but relies on a compiled runtime shipped through PyPI.
Data. The Antigravity CLI README says using it lets Google collect your interactions data to improve the product, and that you can opt out in settings. Codex data handling follows how you sign in: workspace settings with ChatGPT, or your API organization's settings with a key. Check both before you open company code.
Which Should You Choose?
Choose Google Antigravity if:
- You already pay for Google AI Pro or Ultra
- You want Gemini and Claude models in one agent
- You want the agent to open a browser and test your app, including from the terminal
- You work in Visual Studio, Zed, Android Studio or Eclipse and want the vendor's own extension
- You want a separate AI IDE from the same family
Choose Codex if:
- You already pay for ChatGPT Plus or above
- Pull request review is part of what you're buying
- You need to read the CLI's source or fork it
- You want to commit and open pull requests from cloud tasks, or use GitLab
- You'd rather keep your current editor
Still split? Give both the same bug in the same repository, in separate worktrees, and compare the diffs. If neither wins, our Codex alternatives list covers other terminal agents and editors.
Where Taku Fits
Antigravity and Codex both assume you have a repository and time to review what an agent wrote. Plenty of people just want a working AI tool.
If you'd rather run a tool someone already built than set one up yourself, that's where Taku comes in. Taku Apps and Sites, built by the best AI minds. Find one, run it, and keep it in your Mac Dock. Taku is in Beta, and the Mac app is available now.
Key Points
- Surfaces mostly match. Antigravity adds its own IDE, and Codex lives inside the ChatGPT app
- Models are the cleanest difference: Gemini plus Claude on some plans, or OpenAI's GPT-6 family
- Safety defaults differ between the app, the CLI and the cloud. Antigravity's remote CLI sessions start in turbo
- Code review favors Codex, and browser use from the terminal favors Antigravity
- Open source applies to the Codex CLI, not the Antigravity CLI
- Your existing subscription is a sensible way to break a tie
FAQ
Is Google Antigravity better than Codex?
Not across the board. Antigravity is stronger for mixing Gemini and Claude models and for browser testing from the CLI. Codex is stronger for GitHub pull request review and for anyone who needs an open-source CLI.
Can I use Antigravity and Codex in the same project?
Yes. Both read AGENTS.md and both can work in separate Git worktrees, so they don't have to share a checkout. Keep shared rules in the root AGENTS.md, and note that Antigravity also reads GEMINI.md.
Can I run OpenAI's GPT models in Antigravity?
Not GPT-6. The only OpenAI model on Google's list was the open-weight GPT-OSS 120B, which Google scheduled for removal on November 30, 2026.
Does Codex have a desktop app like Antigravity 2.0?
Yes. Codex runs inside the ChatGPT desktop app on macOS and Windows, with Linux in preview. It has parallel chats, worktrees, a browser and code review.
Can I try both without a subscription?
At the time of writing (November 2026), yes, with limits. Antigravity has a weekly quota for personal accounts with no paid plan. OpenAI lists GPT-6 Luna in the desktop app for Free accounts, subject to rollout. Check both pricing pages first.
Which one works better for a company using Google Workspace?
A Workspace plan doesn't include an Antigravity plan. By default, you get a limited starter quota. For more, Google points you to Pay As You Go, Gemini Enterprise or a personal account. Codex is sold to teams through ChatGPT Business and Enterprise, so compare those contracts first.