CodexvsAntigravity CLI
Answer
Antigravity CLI and Codex are level at the top of Terminal-Bench, within two tasks of each other: 64.5% for Antigravity CLI with Gemini 4 Carbon ($4.12 per task) and 62.1% for Codex with GPT-6.2 Astra ($4.27 per task).[1] Below $4.12 per task, Codex gives the higher score; from $4.12, Antigravity CLI does, up to 64.5%.
GPT-6.2 Astra in CodexGemini 4 Carbon in Antigravity CLIOther models in CodexOther models in Antigravity CLI
At a glance
marks the better value in a row. Score gaps smaller than two Terminal-Bench tasks count as level. Tokens and minutes are for each agent's cheapest run within two tasks of its best.
| Codex | Antigravity CLI | |
|---|---|---|
| Made by | OpenAI | GoogleFormerly Gemini CLI |
| Measured | 4 models[1]One Terminal-Bench run each | 4 models[1]One Terminal-Bench run each |
| Best Terminal-Bench score | 62.1%[1]GPT-6.2 Astra at Max · $4.27 | 64.5%[1]Gemini 4 Carbon at High · $4.12 |
| Lowest cost per task | $0.22Lower[1]GPT-6 Luna · scores 16.4% | $2.38[1]Gemini 4 Hydrogen · scores 56.4% |
| Best under $1.00 per task | 16.4%Only run[1]GPT-6 Luna · $0.22 | No runCheapest is $2.38 |
| Best under $3.00 per task | 61.5%Higher[1]GPT-6.2 Sol · $1.06 | 56.4%[1]Gemini 4 Hydrogen · $2.38 |
| Best under $10.00 per task | 62.1%[1]GPT-6.2 Astra · $4.27 | 64.5%[1]Gemini 4 Carbon · $4.12 |
| Output tokens per task | 48.6kFewer[1]GPT-6.2 Sol, the cheapest run near its best | 166k[1]Gemini 4 Carbon, the cheapest run near its best |
| Minutes per task | 20 minQuicker[1]GPT-6.2 Sol | 58 min[1]Gemini 4 Carbon |
| MirrorCode, best model alone | 76.7%[2]GPT-6.1 Terra at Max, without the agent | 58.9%[2]Gemini 4 Argon at High, without the agent |
Every current model
| Model and setting | Terminal-Bench | Cost per task | Output tokens | Minutes |
|---|---|---|---|---|
| Codex | ||||
| GPT-6.2 AstraMax · 0.169.0 | 62.1% | $4.27 | 49.9k | 23 |
| GPT-6.2 SolMax · 0.169.0on the cost frontier | 61.5% | $1.06 | 48.6k | 20 |
| GPT-6.1 TerraMax · 0.164.0 | 53.3% | $2.65 | 100k | 38 |
| GPT-6 LunaMax · 0.159.0 | 16.4%Version 4.0[3] | $0.22 | 138k | 38 |
| Antigravity CLI | ||||
| Gemini 4 CarbonHigh · 1.5.7on the cost frontier | 64.5% | $4.12 | 166k | 58 |
| Gemini 4 NeonXHigh · 1.5.12 | 61.2% | $5.83 | 174k | 82 |
| Gemini 4 HydrogenHigh · 1.5.7 | 56.4% | $2.38 | 119k | 32 |
| Gemini 4 ArgonHigh · 1.5.2 | 55.5% | $3.36 | 163k | 65 |
marks runs on the cost frontier of this page: nothing here scores higher for less. Runs scoring under three quarters of the top score aren't marked.
The models alone
Epoch AI tests each model on its own, without an agent. MirrorCode is the closest to an agent's work: the model rebuilds whole programs without seeing their source.[2] Each cell is the model's best score and the setting it came from.
| Model | MirrorCode | GPQA Diamond | FrontierMath Tiers 1–3 |
|---|---|---|---|
| Codex | |||
| GPT-6.2 Astra | 67.8%Max | 96.8%Max | 92.6%Max |
| GPT-6.2 Sol | — | — | — |
| GPT-6.1 Terra | 76.7%Max | 94.3%Max | 90.9%Max |
| GPT-6 Luna | 26.7%Max | 90.5%Max | 78.9%Max |
| Antigravity CLI | |||
| Gemini 4 Carbon | — | 96.5%High | 90.5%High |
| Gemini 4 Neon | — | 96.3%XHigh | 91.2%XHigh |
| Gemini 4 Hydrogen | — | 96.8%XHigh | 88.1%XHigh |
| Gemini 4 Argon | 58.9%High | 96.4%High | 86.0%High |
Choose Codex if…
- Your budget is under $4.12 per task: Codex scores higher at every budget below that, up to 61.5% with GPT-6.2 Sol ($1.06).
- You want shorter output: GPT-6.2 Sol wrote 48.6k output tokens per task against 166k for Gemini 4 Carbon.
- You want quicker runs: GPT-6.2 Sol took 20 minutes per task against 58 for Gemini 4 Carbon.
Choose Antigravity CLI if…
- Few reasons in this data: its best run, 64.5% with Gemini 4 Carbon for $4.12 per task, is within two tasks of Codex's best, 62.1% with GPT-6.2 Astra for $4.27.
Other matchups
Questions.
Is Codex better than Antigravity CLI?
Antigravity CLI and Codex are level at the top of Terminal-Bench, within two tasks of each other: 64.5% for Antigravity CLI with Gemini 4 Carbon ($4.12 per task) and 62.1% for Codex with GPT-6.2 Astra ($4.27 per task). Below $4.12 per task, Codex gives the higher score; from $4.12, Antigravity CLI does, up to 64.5%.
Which is cheaper, Codex or Antigravity CLI?
Each agent's cheapest run within two tasks of its best: GPT-6.2 Sol in Codex, 61.5% for $1.06 per task; Gemini 4 Carbon in Antigravity CLI, 64.5% for $4.12 per task. The cheapest run of all is GPT-6 Luna in Codex, $0.22 per task for 16.4%. A run's cost is what it reported spending across its trials, divided by the trials; on a subscription plan you pay the plan instead.
Which model works best in each agent?
In Codex, GPT-6.2 Astra scores highest, 62.1% for $4.27 per task; GPT-6.2 Sol comes within two tasks of it for $1.06. In Antigravity CLI, Gemini 4 Carbon scores highest, 64.5% for $4.12 per task.
What about Cursor, OpenCode or other coding agents?
These pages compare each lab's own agent running that lab's current models: Codex with OpenAI models and Antigravity CLI with Google models. The Terminal-Bench leaderboard also lists other agents, such as mini-SWE-agent, GitHub Copilot, Grok Build and Muse Code; they aren't compared here.
What happened to Gemini CLI?
In May 2026 Google announced it was moving Gemini CLI users to Antigravity CLI. On June 18, 2026, Gemini CLI stopped serving Google AI Pro and Ultra subscribers and people using it free through Gemini Code Assist for individuals; enterprise licences and paid API keys kept access. The Gemini results on these pages are Terminal-Bench runs in Antigravity CLI.
How were these agents tested?
Each run is on the official Terminal-Bench leaderboard: the agent attempts all 66 tasks at least five times each, and errored trials count as failures. Before a run is listed, an LLM judge reviews every passing trial for reward hacking, and trials the maintainers disqualify count as failures too. 8 runs with current models are compared here; GPT-6 Luna was graded on version 4.0, before 4.1 changed the checks on every task.
Sources and scope
Every run here is a submission on the official Terminal-Bench leaderboard: the agent attempts all 66 tasks at least five times, errored trials count as failures, and an LLM judge checks passing trials for reward hacking before the maintainers list the run. Cost is what the run reported at the API prices it ran on; subscription plans cost differently. Epoch AI's scores test each model alone, outside any agent, under CC BY 4.0. Only current models are listed. Written by aicharts from data checked Nov 24, 2026.