Claude Code vs. Grok Build

Comparison between Claude Code and Grok Build 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

Updated
Artificial Analysis Coding Agent Index v1.5 · 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 Grok Build.

Coding Agent Comparison

Metric
Claude Code
Opus 5.5 (max)
Grok Build
Grok 4.7 (xhigh)
Analysis
Agent Harness
Claude Code
Grok Build
Representative Model
Opus 5.5 (max)
Grok 4.7 (xhigh)
Coding Agent Index
66
56
Claude Code has a higher Coding Agent Index than Grok Build
DeepSWE v1.1
68%
73%
Grok Build has a higher DeepSWE v1.1 score than Claude Code
Terminal-Bench 4.0
63%
33%
Claude Code has a higher Terminal-Bench 4.0 score than Grok Build
SWE-Atlas-QnA
66%
63%
Claude Code has a higher SWE-Atlas-QnA score than Grok Build
Cost per Task
$13.04
$8.82
Grok Build has a lower cost per task than Claude Code
Time per Task
1.1h
39.2m
Grok Build has a lower time per task than Claude Code
Turns per Task
155.1
162.6
Claude Code has a lower turns per task than Grok Build
Token Usage per Task
15.6M
14.3M
Grok Build has a lower token usage per task than Claude Code
Cache Hit Rate
95%
94%
Claude Code has a higher cache hit rate than Grok Build

Model Variants

Evaluated model variants for Claude Code and Grok Build.

Model Variants

Claude Code
Opus 5.5 (max)
66
68%
63%
66%
$13.04
1.1h
15.6M
Claude Code
Fable 5.1 (max) (with fallback)
62
64%
58%
65%
$12.39
34.8m
5.7M
Claude Code
Opus 5 (max)
60
63%
55%
62%
$10.79
41.9m
11.4M
Claude Code
Qwen3.8 Max
43
51%
17%
62%
$3.48
1.1h
8.7M
Grok Build
Grok 4.7 (xhigh)
56
73%
33%
63%
$8.82
39.2m
14.3M
Grok Build
Grok 4.6 (xhigh)
47
65%
18%
58%
$3.57
19.5m
5.5M

Performance

Performance across the Artificial Analysis Coding Agent Index.

Artificial Analysis Coding Agent Index

Artificial Analysis Coding Agent Index v1.5 incorporates 3 benchmarks: DeepSWE v1.1, Terminal-Bench 4.0, and SWE-Atlas-QnA · Higher 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
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
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

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