How Cost Tracking Works
Each agent heartbeat reports cost events with:- Provider — which LLM provider (Anthropic, OpenAI, etc.)
- Model — which model was used
- Input tokens — tokens sent to the model
- Output tokens — tokens generated by the model
- Cost in cents — the dollar cost of the invocation
Setting Budgets
Company Budget
Set an overall monthly budget for the company:Per-Agent Budget
Set individual agent budgets from the agent configuration page or API:Budget Enforcement
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 |
Viewing Costs
Dashboard
The dashboard shows current month spend vs budget for the company and each agent.Cost Breakdown API
Best Practices
- Set conservative budgets initially and increase as you see results
- Monitor the dashboard regularly for unexpected cost spikes
- Use per-agent budgets to limit exposure from any single agent
- Critical agents (CEO, CTO) may need higher budgets than ICs