How agents are billed
Per token at API rates
Cursor: "Cloud Agents are charged at API pricing for the selected model … a larger context window can increase token usage and costs." [1]
Plan plus metered usage
GitHub Copilot cloud agent "uses GitHub Actions minutes and AI credits." [8]
Whatever the model, bigger contexts cost more. On Anthropic's API, for example, input, output and cache reads are priced separately per million tokens. [2]
The real unit: cost per merged PR
A cheap run that gets thrown away costs more than an expensive one that merges. So measure what you actually want:
cost per merged PR =
(agent spend + CI spend + review hours × hourly cost)
÷ PRs merged
Example (illustrative):
Story A, vague: 4 runs × $3 + 4 CI runs × $0.40 + 60 min review → 1 PR
Story B, sharp: 1 run × $5 + 1 CI run × $0.40 + 15 min review → 1 PRThe numbers are made up; the shape isn't. Story B's run was more expensive, and it's still far cheaper — mostly because of the review line.
The multipliers
Vague stories
Each misunderstanding is a rework run. See our guide to stories for coding agents.
Tasks too big for one run
Long runs fill the context, and quality drops as it fills.
Slow feedback
The agent pushes, waits for CI, fixes, pushes again — every loop is tokens plus CI minutes.
Overlapping parallel work
Two agents in the same files means conflict-resolution runs nobody planned for.
On the context point, Claude Code's docs are direct: "Claude's context window fills up fast, and performance degrades as it fills." [4] More on writing work that runs right the first time in our guide to stories for coding agents.
Cost levers that work
Sharp stories
Acceptance criteria and non-goals cut rework runs more than any pricing change.
Smaller slices
One story, one run, one reviewable PR.
Fast local checks
Let the agent find problems before it pushes — see our guide to instant feedback.
Right-size the model
Use the strongest model where judgment matters and a cheaper one for mechanical changes.
Budgeting for a team
Three models dominate: prepaid credits, subscriptions with usage limits, and per-seat plans. The trade-off is between predictability and waste. Per-seat and subscription plans are predictable but pay for idle seats and hit limits at the worst moment. Prepaid credits track real use. A shared team pool lets the person running five agents this week borrow from the person on holiday; per-person limits protect against one runaway run.
Whatever you pick, budget per merged PR, not per seat.
Where Aerunit fits
Aerunit is billed the way this guide recommends thinking about cost: prepaid, pay-as-you-go credits in one pool per team, with no subscription. Agent runs themselves are billed by Cursor on your own Cursor account; Aerunit credits cover Aerunit's work — writing stories, dispatching and reviewing.
It also works on the biggest multiplier — rework runs. The story writer proposes Linear issues with scope, acceptance criteria and non-goals, and dependency-aware dispatch only starts a slice once the issue blocking it has merged, so agents don't build on code that isn't there yet. Automatic PR review sends findings back to the agent's session before you spend review time on it.
Pay as you go
Prepaid credits, one pool per team, no subscription.
Fewer rework runs
Sharper stories and dispatch in dependency order.
Review before you spend
Automatic review sends findings back to the agent before your review time goes in.
Common questions
How much does a coding agent cost per month?
It varies widely by tool and usage. As one data point, Anthropic reports that across enterprise deployments Claude Code averages around $13 per developer per active day and $150–250 per developer per month. Cursor Cloud Agents bill at API pricing for the model you pick, so cost tracks tokens used. [5] [1]
Is a cheaper model always cheaper?
No. If a cheaper model needs three runs to produce a mergeable PR and a stronger one needs one, the stronger one is cheaper per merged PR — and it costs you less review time too. Right-size the model to the task.
What's the biggest hidden cost?
Review time. It grows with PR volume and never shows on an invoice. CI minutes come next: they're metered beyond your plan's included quota, and every agent push can trigger a run. [7]
Sources
- [1]Cursor Docs — Cloud Agents (billing)
- [2]Anthropic — API pricing
- [3]Anthropic — Prompt caching
- [4]Claude Code Docs — Best practices
- [5]Claude Code Docs — Manage costs
- [6]OpenAI Developers — Codex pricing
- [7]GitHub Docs — GitHub Actions billing
- [8]GitHub Docs — About Copilot cloud agent
- [9]GitHub Docs — Control workflow concurrency
- [10]Claude Code Docs — Claude Code on the web (limitations)
