Skip to content
Agentic Control Plane

How Much Does an AI Agent Cost? What 285,000 Tool Calls Showed

David Crowe David Crowe · · Updated · 26 min read
cost observability governance agents
Share X HN LinkedIn

Run agents? ACP lets you see, control, and price every tool call they make — allow/ask/deny policy, per-session cost, and a full audit log for Claude Code, Cursor, Codex, and OpenClaw, in one command:

macOS · Linux · WSL
curl -sf https://agenticcontrolplane.com/install.sh | bash
Windows · PowerShell
irm https://agenticcontrolplane.com/install.ps1 | iex

Getting started →  ·  see your first governed call →  ·  free up to 5 agents

“How much does it cost to run an AI agent?” is the question every team asks once the prototype works and the bill arrives. Most answers online are ranges, like “$5K to $180K,” because most people writing them are estimating.

We don’t have to estimate. Agentic Control Plane checks the tool calls a coding agent makes through the harness’s hooks, and prices the model calls it sees. This is a teardown of 285,814 calls across 96 workspaces, as of July 2026. Every chart is regenerated from the raw export by a checked-in script.

The short answer: tool calls are nearly free. The bill is the agent loop, which is part of the harness wrapped around the model. One frontier model drove 77% of the spend on 30% of the model calls. The cheapest model made 40% of the calls for 0.2% of the bill.

All of this is from our own workspaces, not customer data. It is the full corpus, no sampling, priced at API rates. Most of the frontier-model traffic was billed to a subscription, not to us. The split is in the methods note at the end.

1. The tools are almost free

93% of calls never touch a model. They read files, grep, edit, and run git. Calls that cost money are green:

Agent Actions by TypeRead32836,862Bash.grep13415,089Bash.git11813,239Bash.sed10211,500Read.src10111,380Edit.src879,769Bash.cd809,034llm.proxy.anthropic798,827 · $2,712Bash.gh596,601llm.chat556,144 · $19.53Edit525,819Bash.npm515,705llm.agent_run353,878 · $8.54calls a modeltools & file I/O
The 12 most-called tools across 285,814 governed calls plus all three model surfaces, 2026-07 snapshot, metered at the gateway. Green bars hit a model and are annotated with their spend (priced at API rates); grey bars are tool and file I/O. Chat-turn wrapper spans are excluded so their model calls are counted once, as llm.chat.

Very little of that chart is green. Reading a file or listing a directory shows up in your logs and makes up most of the volume, but it costs close to nothing. One green bar, the coding-agent proxy, carries nearly all of the $2,743. If you count tool calls to estimate cost, you are counting the wrong thing.

Where the calls are vs where the money isShare of all 286k governed calls57943tool & I/O calls 93% — cost ≈ $0model calls 7%Share of spend-1623model calls carry ~100% of the $2,743 bill
285,814 governed calls, 2026-07 snapshot. The 93% that are tool and I/O calls cost approximately nothing; the 7% that are model calls carry effectively the entire $2,743 bill (priced at API rates).

2. The model calls carry the bill, and a few models carry most of it

Take away the free I/O and what’s left is $2,742.65 over 19,506 model calls:

Model Calls Spend (@ API rates) Per call
Claude Fable 5 5,929 $2,098.48 35.4¢
Claude Opus 4.8 2,808 $608.03 21.7¢
Gemini 2.5 Pro 2,849 $24.64 0.86¢
Gemini 2.5 Flash 7,752 $5.87 0.08¢

Fable 5 was 30% of model calls and 77% of the spend. With Opus, the top tier is 45% of calls and 98.7% of the bill. Flash made 40% of the model calls for 0.2% of the spend. A Fable call costs 467 times a Flash call. When we first published this in April, the leading model was Sonnet at 7.6% of calls and 80% of spend. The models changed and the concentration stayed.

So agent cost is not a flat per-call number you can multiply out. A handful of calls on a frontier model make up most of it.

Share of model calls → share of spend% of model calls% of spendGemini 2.5 Flash 40%Claude Fable 5 30%Gemini 2.5 Pro 15%Claude Opus 4.8 14%Fable 5 77%Opus 4.8 22%Pro 0.9%Flash 0.2%
Each line is one model, from its share of the 19,506 model calls to its share of the $2,743 spend. The frontier tier concentrates; the cheap models collapse to the floor. Generated from the raw 2026-07 export.

3. The money is in the loop

Group the same spend by what the model call was doing:

Surface Calls Spend
Coding-agent loop (via proxy) 8,826 $2,711.59
Product-agent loop (llm.chat) 6,144 $19.53
Scheduled-agent loop (agent_run) 3,878 $8.54
Context management 332 $2.19
Everything else (leaves) 326 $0.80

97% of the spend is the agent loop: $2,668 of $2,743. An agent doesn’t make one model call. It makes a chain of them, and on most turns it re-reads the whole growing context (system prompt, tool results, transcript) before choosing the next tool. That re-reading is why a 12-turn agent on an expensive model costs what it does.

We tag every call as callKind: loop (the model steering tools, turn by turn) or leaf (a single sub-task call). A flat token total can’t tell them apart, and the loop is the part you can change.

Model spend by call kindthe loop36097% · $2,668leaf calls103% · $75
Every model call carries a callKind tag at the gateway. The loop, where the model re-reads context to decide the next step, is 97% of all model spend in the corpus.

4. You need cost per agent and per call

The obvious lever is to run the loop on a cheaper model and keep the expensive one for the sub-tasks that need it. Fable 5 on the loop is the most expensive choice in this dataset. For many orchestration turns, a cheaper model is good enough.

You can only pull that lever if cost is attributed per agent, per call, loop or leaf. A monthly invoice can’t say which agent’s loop is the problem. Each call ACP sees carries its model, its callKind, its estimated cost, and the agent it belongs to. That attribution is the core of AI agent cost monitoring.

Cost also varies run to run. Run the same agent fifty times and the cost depends on how many loop turns it took. So we show p50 and p95 next to the average, because the average hides the runs that hurt.

Cost of 402 agent runs, one dot each (log scale)0.1¢1¢10¢$1$10$100$782p50 0.8¢p95 63.3¢same fleet, same month — five orders of magnitude
402 real agent runs from one workspace, July 2026, log scale. Median run: under a cent. p95: 63¢. The most expensive run, a multi-day frontier-model coding session, cost $782. An agent run has no single cost. It has a spread.

Three numbers to keep

  1. 93% of calls are free tool I/O. Counting tool calls tells you about activity, not cost.
  2. One model was 77% of the bill on 30% of the calls. The top tier was 99% of the bill on 45% of the calls. Model choice on the loop is your biggest lever.
  3. 97% of spend is the loop. Look at the orchestration, not the final answer.

You can get the same breakdown for your own agents. Sign in and the cost X-ray is in your dashboard. For model spend on harnesses other than Claude Code, launch through the installer’s launcher (for example codex-acp), since a plain launch records tool calls but not the model spend behind them. For how the checks work, read what an agentic control plane is.


Every number came from our own internal workspaces, not customer data. These figures are a 2026-07-12 snapshot of the full corpus, regenerated by a checked-in script from the raw export. Spend is priced at API rates. Of that, $34.80 was billed to our workspaces and the rest was caller-billed subscription traffic metered through the proxy. We never add the two anywhere except this teardown’s “what would this cost” framing, where API-rate pricing is the point. An earlier version of this post (April 2026, 210,840 calls) told the same story with Sonnet 4.5 in the leading role.

Share X HN LinkedIn
Get the next data drop
What agents actually cost, new tool-surface captures, and the occasional incident post-mortem — sent when we publish something worth your inbox, not on a schedule. Unsubscribe anytime.
Share: Twitter LinkedIn
Related posts

← back to blog