Coding Agent Benchmarks

Grok Build vs. OpenCode

Comparison between Grok Build 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 Grok Build and OpenCode.

Metric
Grok 4.7 (Xhigh)
GLM-5.3 (Max)
Analysis
Agent Harness
Grok Build
OpenCode
Representative Model
Grok 4.7 (Xhigh)
GLM-5.3 (Max)
Coding Agent Index
42
40
Grok Build has a higher Coding Agent Index than OpenCode
FrontierCode-AA 2.0
30
21
Grok Build has a higher FrontierCode-AA 2.0 score than OpenCode
Terminal-Bench 4.1
32
40
OpenCode has a higher Terminal-Bench 4.1 score than Grok Build
SWE-Atlas-QnA-AA
63
59
Grok Build has a higher SWE-Atlas-QnA-AA score than OpenCode
Cost per Task
$15.35
$5.41
OpenCode has a lower cost per task than Grok Build
Time per Task
36.6m
52.8m
Grok Build has a lower time per task than OpenCode
Turns per Task
174.2
114
OpenCode has a lower turns per task than Grok Build
Token Usage per Task
17.1M
17.7M
Grok Build has a lower token usage per task than OpenCode
Cache Hit Rate
95%
97%
OpenCode has a higher cache hit rate than Grok Build

Models

Evaluated models for Grok Build and OpenCode.

Grok 4.7 (Xhigh)
xhigh
42
30
32
63
$15.35
36.6m
17.1M
GLM-5.3-Flash (Max)
max
35
17
33
56
$0.59
2.0h
16.5M
GPT-6 Luna (Max)
max
25
21
17
37
$0.28
26.5m
13.6M
GLM-5.3 (Max)
max
40
21
40
59
$5.41
52.8m
17.7M
GLM-5.3-Flash (Max)
max
39
19
41
55
$0.60
1.2h
17.2M
GPT-6 Luna (Max)
max
23
22
13
34
$0.16
20.4m
7.31M

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 logo

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
Artificial Analysis logo

Token Usage

Token consumption across the Artificial Analysis Coding Agent Index.

Token Usage per Task

Average input, cache, and output tokens per task
Artificial Analysis logo
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
Artificial Analysis logo

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
Artificial Analysis logo

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 logo

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
Artificial Analysis logo