data/costs.db. Costs are computed via estimate_cost() against LiteLLM’s model registry, then enforced against per-agent budgets.
How It Works
- Agent makes an LLM call through the mesh proxy.
- The mesh checks the agent’s remaining budget before forwarding to the provider.
- If the agent has exceeded its daily or monthly budget, the call is rejected.
- After a successful call, token usage and dollar cost are recorded in
data/costs.db.
Configuring Budgets
Set per-agent budgets inconfig/agents.yaml:
Per-project rollups
Costs are tracked per-agent and per-project. The cost ledger keys on both, so you can see what each project is spending in aggregate across all its agents. Per-project rollups surface in the dashboard at Settings → Costs.Viewing Costs
From the interactive REPL:CAPTCHA Costs
CAPTCHA solver spend is tracked separately from LLM cost, in millicents (1/100,000 USD), indata/captcha_costs.json (chmod 0o600). Both per-agent and per-tenant monthly USD caps apply, with alerts at 50% / 80% / 100% of the cap. The fleet-wide kill switch CAPTCHA_DISABLED stops all CAPTCHA solving regardless of budget.
