Codex vs. Opencode
Comparison between Codex and Opencode across the Artificial Analysis Coding Agent Index, including benchmark scores, cost, execution time, and token usage.
For details relating to our methodology, see our methodology page.
Explore other comparisons
vs
Highlights
Comparison
Side-by-side comparison of Codex and Opencode.
Coding Agent Comparison
Metric | Analysis | ||
|---|---|---|---|
Agent Harness | Codex | Opencode | |
Representative Model | GPT-5.5 (xhigh) | Opus 4.7 (medium) | |
Coding Agent Index | 76 | 65 | Codex has a higher Coding Agent Index than Opencode |
DeepSWE | 64% | 40% | Codex has a higher DeepSWE score than Opencode |
Terminal-Bench v2 | 84% | 75% | Codex has a higher Terminal-Bench v2 score than Opencode |
SWE-Atlas-QnA | 81% | 79% | Codex has a higher SWE-Atlas-QnA score than Opencode |
Cost per Task | $5.07 | $2.93 | Opencode has a lower cost per task than Codex |
Time per Task | 10.1m | 12.2m | Codex has a lower time per task than Opencode |
Turns per Task | 106.3 | 54.2 | Opencode has a lower turns per task than Codex |
Token Usage per Task | 12.3M | 7.6M | Opencode has a lower token usage per task than Codex |
Cache Hit Rate | 94% | 96% | Opencode has a higher cache hit rate than Codex |
Model Variants
Evaluated model variants for Codex and Opencode.
Model Variants
76 | 64% | 84% | 81% | $5.07 | 10.1m | 12.3M | ||
71 | 57% | 76% | 79% | $2.75 | 6.4m | 7M | ||
71 | - | 70% | 72% | $2.27 | 7.1m | 5.7M | ||
65 | 40% | 75% | 79% | $2.93 | 12.2m | 7.6M |
Performance
Performance across the Artificial Analysis Coding Agent Index.
Artificial Analysis Coding Agent Index
Composite average pass@1 across DeepSWE, Terminal-Bench v2, and SWE-Atlas-QnA · Higher is better
Token Usage
Token consumption across the Artificial Analysis Coding Agent Index.
Token Usage per Task
Mean input, cache, and output tokens per task
Prompt cache hit rates can vary significantly by provider routing, which can materially change effective cost.
Artificial Analysis Coding Agent Index vs. Total Tokens
Artificial Analysis Coding Agent Index vs. mean total tokens per task
Most attractive quadrant
Cost
Pay-per-token API cost across the Artificial Analysis Coding Agent Index, based on current per-token pricing.
Cost per Task
Mean pay-per-token API cost per task (USD) · Lower is better
Artificial Analysis Coding Agent Index vs. Cost per Task
Artificial Analysis Coding Agent Index vs. mean pay-per-token API cost per task (USD)
Most attractive quadrant
Execution Time
Active agent runtime across the Artificial Analysis Coding Agent Index.
Time per Task
Mean agent wall time per task · Lower is better
Artificial Analysis Coding Agent Index vs. Execution Time
Artificial Analysis Coding Agent Index vs. mean agent wall time per task
Most attractive quadrant