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.6 Sol (max) | Muse Spark 1.1 (xhigh) | |
Coding Agent Index | 67 | 54 | Codex has a higher Coding Agent Index than Opencode |
DeepSWE | 69% | 54% | Codex has a higher DeepSWE score than Opencode |
Terminal-Bench v2 | 88% | 73% | Codex has a higher Terminal-Bench v2 score than Opencode |
SWE-Atlas-QnA | 43% | 33% | Codex has a higher SWE-Atlas-QnA score than Opencode |
Cost per Task | $7.08 | $1.43 | Opencode has a lower cost per task than Codex |
Time per Task | 10.2m | 12.6m | Codex has a lower time per task than Opencode |
Turns per Task | 114.2 | 55.4 | Opencode has a lower turns per task than Codex |
Token Usage per Task | 13.2M | 12.2M | Opencode has a lower token usage per task than Codex |
Cache Hit Rate | 90% | 95% | Opencode has a higher cache hit rate than Codex |
Model Variants
Evaluated model variants for Codex and Opencode.
Model Variants
67 | 69% | 88% | 43% | $7.08 | 10.2m | 13.2M | ||
65 | 67% | 86% | 42% | $5.24 | 7.4m | 9.9M | ||
64 | 65% | 83% | 45% | $4.14 | 6.3m | 8.1M | ||
62 | 67% | 84% | 36% | $2.76 | 8.4m | 9.5M | ||
61 | 64% | 84% | 36% | $5.07 | 10.1m | 12.3M | ||
61 | 64% | 78% | 40% | $2.99 | 5.2m | 5.8M | ||
59 | 63% | 80% | 33% | $1.57 | 8.0m | 15.5M | ||
57 | 58% | 81% | 32% | $1.90 | 6.9m | 6.5M | ||
56 | 60% | 76% | 31% | $1.59 | 6.2m | 5.5M | ||
55 | 57% | 76% | 31% | $1.26 | 6.6m | 12.3M | ||
54 | 57% | 76% | 31% | $2.75 | 6.4m | 7M | ||
54 | 53% | 73% | 34% | $1.72 | 3.7m | 3.2M | ||
51 | 53% | 72% | 29% | $0.96 | 5.7m | 9.5M | ||
48 | 46% | 69% | 28% | $0.90 | 4.3m | 3.1M | ||
43 | 35% | 61% | 34% | $1.40 | 3.4m | 3.4M | ||
42 | 37% | 63% | 27% | $0.47 | 3.4m | 4.4M | ||
39 | 25% | 70% | 22% | $2.42 | 7.1m | 5.9M | ||
37 | 30% | 58% | 23% | $0.48 | 2.8m | 1.5M | ||
25 | 10% | 50% | 15% | $0.21 | 1.9m | 1.5M | ||
24 | 13% | 39% | 19% | $0.37 | 1.8m | 1.1M | ||
20 | 6% | 37% | 17% | $0.35 | 2.5m | 3.6M | ||
54 | 54% | 73% | 33% | $1.43 | 12.6m | 12.2M | ||
50 | 40% | 75% | 35% | $2.93 | 12.2m | 7.6M |
Performance
Performance across the Artificial Analysis Coding Agent Index.
Artificial Analysis Coding Agent Index
Artificial Analysis Coding Agent Index v1.3 incorporates 3 benchmarks: 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
Average 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. average 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
Average 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. average 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
Average agent wall time per task · Lower is better
Artificial Analysis Coding Agent Index vs. Execution Time
Artificial Analysis Coding Agent Index vs. average agent wall time per task
Most attractive quadrant