Skip to content
GitHub

GuideOps

AI spend

In the panel: Ops › AI spend/ops/spendNeeds ai:read

See what models cost this week against the weekly budget, who and what spent it, every model run, and how people use the MCP endpoint — and change the budget in place.

In the panel · Ops › AI spend
OpsAI spendConfigure⋯
This weekThis monthLast 30 daysAll I can seeFeatureModelStarted by
$63.40 spent · of $150 a week$121 forecast$41.20 / $22.20 automatic / people412 runs38.1 M tokens71% cache hits+12% vs same span last week3 · 0.7% errors0 blocked by budget
Weekly budgetOn track
$63.40 of $150 · 42% · resets Mon 00:00

Automatic work stops at $125. At this pace the week ends near $121, $4 to spare.

The scope and the Feature, Model and Started by filters narrow everything except the budget card.

The page shows what agent runs cost: reviews, chat, agent tasks, learnings and release notes. Everything is limited to the repositories you may read.

  • Period. This week is the budget week, from Monday 00:00 in the instance’s time zone. This month and Last 30 days widen the strip, the breakdowns and the runs. The budget card and the daily chart always show the budget week.
  • Scope switch. My teams counts your home teams, a picked team just that team.
  • Feature, Model and Started by (People or Automatic) narrow every figure on the page but the budget card, which always shows the real budget.

The strip under the toolbar shows spend in the period (with the weekly limit on This week), the week’s forecast, the automatic and people parts, runs, tokens, the cache hit ratio, the change against the same elapsed span before, errors with the error rate, runs blocked by the budget and runs whose cost is unknown.

One weekly limit covers every model run on the instance. Part of it, kept for people, is reserved for work a person started: a click in the panel, a chat message, a command on a merge request.

Work Stops when this week’s spend plus the run’s estimate goes above
Automatic: schedules, triggers, webhooks, freshness the weekly limit minus the amount kept for people
People: anything a person started the weekly limit

With When reached set to Block runs a run over the line is refused before the model is called, and a running agent stops when it has spent what is left. With Warn the run goes on. A fresh install starts at $150 a week with $25 kept for people, blocking, warning at 80%.

The card’s status reads:

Status Means
On track Spend and forecast stay under the automatic limit.
Close to the limit Spend reached the warning share, or the forecast passes the automatic limit.
Automatic work stopped Spend reached the limit minus the reserve; only people’s work runs.
Limit reached Spend reached the weekly limit.

The meter shows spent, the forecast to week end hatched after it, and a marker at Automatic work stops at $X. A line below says when automatic work is expected to stop, or how much is left to spare at this pace. The forecast for the rest of the week is the mean of the same span over the last four full weeks.

Under the card, Narrower budgets and caps lists the team and path budgets you may read with their scope, mode, status and a small bar. A narrower budget adds a limit for its repositories; it never lifts them out of the broader one. Two fixed caps follow, which are not settings:

In the panel · Ops › AI spend · Narrower budgets and caps
GizmoTeam · Block · $31.10 of $6052%
acme/kit/ui-kitPaths · Warn · $9.80 of $1098%
Write tasksDefault cap per task $1.50 · most a task may ask for $5
Chat repliesCap per reply $0.40 · average this week $0.07

With settings:write over everything, the global budget has an inline editor under the card.

In the panel · Ops › AI spend · Budget editor
Weekly limit$150
Kept for people$25Automatic work stops at $125
Warn at, %80
When reachedBlock runs
Changed by Mira K. · 2 weeks agoSave budget
  1. Enter the Weekly limit. $ and thousands separators are fine; it must be above $0.
  2. Enter how much is Kept for people: not negative and not above the limit. The form shows the automatic limit that results.
  3. Set Warn at, %, a whole percent from 1 to 100.
  4. Pick When reached: Block runs or Warn. There is no mode that pauses everything.
  5. Click Save budget. Every figure on the page refreshes.

Team and path budgets are entries of the same setting, added in Settings › AI.

Daily cost draws four Monday-to-Sunday weeks, each day a stacked bar of people over automatic spend, today in the accent colour. The rest of the budget week gets hatched forecast bars. Below it: the week’s forecast, the mean automatic spend of full weeks, last week’s total and the period’s spend per analyzer.

Three breakdowns follow, each narrowed like the rest of the page:

In the panel · Ops › AI spend · Breakdowns
By feature
Reviews$31.20 · 49%
Agent tasks$14.80 · 23%
Chat$9.10 · 14%
Learnings$6.30 · 10%
Release notes$2.00 · 3%
By model
claude-sonnet-5-5acme-gateway · 318 runs · $48.90
claude-haiku-5-5acme-gateway · 82 runs · $3.10
claude-opus-5-5acme-gateway · 12 runs · $11.40
  • By feature: Reviews (reviews and triage), Agent tasks (write tasks, fixes, ports, upgrades, tests), Chat, Learnings (review replies and the rule miner), Release notes, Vulnerability triage (urgency checks of critical and unknown advisories), and Other for anything else.
  • By repository: the top eight, each linking to its repository hub, the rest in one row.
  • By model: model, provider and runs. Models without a price say so and link to Settings › AI.

Model runs lists every run of the period, newest first, with Load older. Segments pick All, Errors or Blocked by budget.

In the panel · Ops › AI spend · Model runs
All412Errors3Blocked by budget0
Time Feature Repository Subject Model Tokens Cost Duration Outcome Started by
10:42 Reviews acme/checkout-web MR !214 · review claude-sonnet-5-5 · acme-gateway 18 turns · 74% cached $0.22 1 min ok job 2d9e71b0
10:31 Chat acme/admin-ui chat claude-sonnet-5-5 · acme-gateway 6 turns · 80% cached $0.05 22 s ok Jon D.
09:58 Agent tasks acme/widget-kit write-task claude-sonnet-5-5 · acme-gateway 41 turns · 68% cached $0.64 6 min error max turns reached job 7a10c3f2
09:12 Release notes acme/widget-kit v5.4.0 · release-notes claude-haiku-5-5 · acme-gateway 12.4 k in · 1.1 k out unknown 8 s ok release

Tokens read N turns · X% cached for agents, input and output otherwise, and not sent for a refused run. Started by names the job or analysis by its short id, a person by name (with users:read, else a short id) or the automatic actor. Prompts and answers are never stored, only the figures.

Last on the page, and never narrowed by the filters, a table shows how people use the MCP endpoint over seven days: avatar and name, teams, unexpired tokens, tool calls, a sparkline, the two most used tools, the error rate and the last call. MCP tool calls do not call a model, so they cost nothing here.

In the panel · Ops › AI spend · MCP usage by person
MCP usage · 7 daysYour tokens
Person Teams Tokens Calls Top tools Errors Last call
Mira K. Gizmo 2 1,284 find_packages, package_api 0.4% 2 min ago
Jon D. Widgets 1 412 repo_rules, check_commit_message 1.2% 1 h ago
Ana P. — 1 37 code_review, search_knowledge 0% yesterday

With users:read over everything you see everyone; anyone else sees only their own row. The endpoint has no request limits, so there is no rate-limited column. Your tokens opens Connect agents.

The page needs ai:read or ai:admin; others see a no-access card. Configure and ⋯ › Providers and models open Settings › AI.

  • Settings › AI — providers, model tiers, team and path budgets.
  • Tasks — agent tasks and their own write caps.
  • Runs — the jobs behind automatic spend, with each run’s cost.
  • Connect agents — MCP tokens for your coding agent.
  • AI usage — how runs are metered, budgets checked and forecasts made.