Platform
Margin Engine
Set hard spend limits per agent, workflow, or workspace. When a budget ceiling is hit, the runtime rejects the call before it reaches your provider — zero overage, zero surprise invoices.
Configure budgets
Create a budget in Dashboard → Margin Controls. Scopes: workspace (global cap), agent (per-agent cap), or workflow (per-run cap).
Budget exceeded response
When a budget is exceeded, the runtime returns a structured error before making any provider call — no charges incurred.
{
error: 'BudgetExceeded',
code: 'BUDGET_EXCEEDED',
message: 'Monthly budget of $500.00 exceeded. Resets on 2026-06-01.',
budget: { limit: 500, spent: 501.23, currency: 'USD' }
}Alerts
Configure threshold alerts (e.g. 80% of budget) in Dashboard → Anomaly Detection to get notified before a ceiling is hit. Alerts ship via Slack, PagerDuty, or webhook.