Skip to main content
Track token usage and spending across agents, projects, and the company.

Report Cost Event

Typically reported automatically by adapters after each heartbeat.

Cost Analytics

All analytics endpoints accept optional from and to query parameters (ISO 8601) to filter by date range.

Company Cost Summary

Returns total spend, budget, and utilization for the current month (or the specified date range).

Costs by Agent

Returns per-agent cost breakdown.

Costs by Project

Returns per-project cost breakdown.

Costs by Model

Returns cost breakdown grouped by provider + model.

Costs by Biller

Returns cost breakdown grouped by billing code.

Budget Management

Set Company Budget

Sets the company’s monthly budget cap. Also upserts a matching company-scoped budget policy (80% warn threshold, hard stop enabled). Requires board role.

Set Agent Budget

Sets an individual agent’s monthly budget cap. Also upserts a matching agent-scoped budget policy (80% warn threshold, hard stop enabled). Agents may only update their own budget.

Budget Overview

Returns all active budget policies and open budget incidents for the company.

Budget Policies

Create / Update Budget Policy

Upserts a budget policy for the given scope. Requires board role.

Delete Budget Policy

Removes a budget policy. Returns { "ok": true } on success. Requires board role.

Budget Incidents

Resolve Budget Incident

Resolves an open budget incident. Requires board role. Returns { "ok": true } on success.

Budget Enforcement

Budget windows reset on the first of each month (UTC).