Walkthrough

Cost Budgeting

Keeping a multi-agent fleet from setting your CFO's hair on fire.

Multi-agent systems can spend money fast. Per-role budgets, per-run caps, and weekly fleet limits are all required for production. Without them, one runaway run can blow a month's budget in an afternoon.

Steps · 0 / 3 done
  1. Set per-role budgets

    Cap each role's monthly spend.

    antigravity budget set --role planner  --monthly_usd 200
    antigravity budget set --role builder  --monthly_usd 800
    antigravity budget set --role reviewer --monthly_usd 200
    antigravity budget set --role deployer --monthly_usd 100
    Verifyantigravity budget list shows the four limits.
  2. Per-run cap

    Hard ceiling on what any single run can spend. Prevents one run from eating the whole role budget.

    antigravity budget set --per_run_usd 25
    VerifyA run that hits $25 in spend is auto-cancelled with a clear reason in the log.
  3. Alert thresholds

    Warn at 70%, hard-stop at 100%. Slack channel optional but recommended.

    antigravity budget alerts --warn 70 --stop 100 --channel '#fleet-alerts'
    VerifyA test run hitting 75% pings #fleet-alerts.
Check your understanding
Q1. Why a per-run cap on top of monthly role budgets?
· Tick off the 3 step(s) above.
· Score 100% on the quiz.