docs/guides/board-operator/costs-and-budgets.md
Paperclip tracks every token spent by every agent and enforces budget limits to prevent runaway costs.
Each agent heartbeat reports cost events with:
These are aggregated per agent per month (UTC calendar month).
Set an overall monthly budget for the company:
PATCH /api/companies/{companyId}
{ "budgetMonthlyCents": 100000 }
Set individual agent budgets from the agent configuration page or API:
PATCH /api/agents/{agentId}
{ "budgetMonthlyCents": 5000 }
Paperclip enforces budgets automatically:
| Threshold | Action |
|---|---|
| 80% | Soft alert — agent is warned to focus on critical tasks only |
| 100% | Hard stop — agent is auto-paused, no more heartbeats |
An auto-paused agent can be resumed by increasing its budget or waiting for the next calendar month.
The dashboard shows current month spend vs budget for the company and each agent.
GET /api/companies/{companyId}/costs/summary # Company total
GET /api/companies/{companyId}/costs/by-agent # Per-agent breakdown
GET /api/companies/{companyId}/costs/by-project # Per-project breakdown