Coding Agent Benchmarks

Claude Code vs. Opencode

Comparison between Claude Code 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
Artificial Analysis Coding Agent Index v2.1 · Higher is better
Average agent wall time per task · Lower is better
Average API cost per task (USD) · Lower is better

Comparison

Side-by-side comparison of Claude Code and Opencode.

Metric
Claude Fable 5.2 (Xhigh, Default Fallback)
GLM-5.3 (Max)
Analysis
Agent Harness
Claude Code
Opencode
Representative Model
Claude Fable 5.2 (Xhigh, Default Fallback)
GLM-5.3 (Max)
Coding Agent Index
58
40
Claude Code has a higher Coding Agent Index than Opencode
FrontierCode-AA 2.0
49
21
Claude Code has a higher FrontierCode-AA 2.0 score than Opencode
Terminal-Bench 4.1
64
40
Claude Code has a higher Terminal-Bench 4.1 score than Opencode
SWE-Atlas-QnA-AA
62
59
Claude Code has a higher SWE-Atlas-QnA-AA score than Opencode
Cost per Task
$15.47
$5.41
Opencode has a lower cost per task than Claude Code
Time per Task
53.3m
52.8m
Opencode has a lower time per task than Claude Code
Turns per Task
94.7
114
Claude Code has a lower turns per task than Opencode
Token Usage per Task
9.75M
17.7M
Claude Code has a lower token usage per task than Opencode
Cache Hit Rate
94%
97%
Opencode has a higher cache hit rate than Claude Code

Models

Evaluated models for Claude Code and Opencode.

Claude Fable 5.2 (Xhigh, Default Fallback)
xhigh
58
49
64
62
$15.47
53.3m
9.75M
Claude Fable 5.2 (High, Default Fallback)
high
58
49
64
62
$7.51
31.3m
5.12M
Claude Opus 5.5 (Max, Default Fallback)
max
58
44
65
66
$12.61
1.1h
15.9M
Claude Sonnet 5.5 (Max, Default Fallback)
max
56
39
66
64
$11.40
1.4h
26.4M
Claude Fable 5.2 (Max, Default Fallback)
max
56
44
63
60
$44.22
2.2h
24M
Claude Fable 5.2 (Medium, Default Fallback)
medium
53
36
60
64
$2.89
15.1m
1.9M
Claude Fable 5.1 (Max, Default Fallback)
max
52
33
58
66
$11.70
36.3m
6.68M
Claude Fable 5.2 (Low, Default Fallback)
low
48
31
53
60
$2.49
13.4m
1.64M
Step 5 Preview
reasoning
36
18
30
59
$3.55
59.5m
24.5M
Qwen3.8 Max
reasoning
33
25
17
56
$4.03
1.4h
9.64M
Claude Haiku 5.5 (Max)
max
30
23
32
34
$2.25
1.3h
12.4M
GLM-5.3 (Max)
max
40
21
40
59
$5.41
52.8m
17.7M

Performance

Performance across the Artificial Analysis Coding Agent Index.

Artificial Analysis Coding Agent Index

Artificial Analysis Coding Agent Index v2.1 incorporates 3 benchmarks: FrontierCode-AA 2.0, Terminal-Bench 4.1, and SWE-Atlas-QnA-AA · Higher is better
Color by

Artificial Analysis Coding Agent Index vs. Cost per Task

Artificial Analysis Coding Agent Index vs. average pay-per-token API cost per task (USD)
Color by
Most attractive quadrant
Pareto line

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
Color by
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
Color by

Execution Time

Active agent runtime across the Artificial Analysis Coding Agent Index.

Time per Task

Average agent wall time per task · Lower is better
Color by

Artificial Analysis Coding Agent Index vs. Execution Time

Artificial Analysis Coding Agent Index vs. average agent wall time per task
Color by
Most attractive quadrant