Skip to content
Docs

Rate Limiting Quotas and Budget Management

Configurable globally (per organization), per user, per API key, for the agent proxy, and for the MCP proxy. Defaults: global 1,500/min, per-user 300/min, agent proxy 60/min, MCP proxy 120/min, per-API-key 0 (= unlimited), import (10/min); a coarse per-IP DoS backstop defaults to 5,000/min (AW_IP_RATE_MAX). Scalability: maxSockets=1000, maxConcurrent=500, queueSize=10000, queueTimeout=60s.

Behaviour on limit breach is set by rateLimitMode: enforce returns 429, monitor allows the request and raises an alarm (webhook + email). Breaches are de-duplicated and recorded in the Rate-limit Alarms dashboard.

Organization defaults ($10/day, $300/mo) seed new users and teams and are not themselves enforced as an org-wide cap. Team ($50/day, $1500/mo) budgets are enforced when an org enables Team budget enforcement (off by default); Tenant/employee ($10/day, $300/mo) and User API Key ($10/day, $100/mo) budgets are enforced. maxApiCallsPerMonth=0 is treated as unlimited (not zero-calls-allowed).

Hard enforcement, not just alerting: when a daily or monthly budget is exceeded, the gateway rejects the request with 402 Payment Required rather than letting the spend continue. This is the categorical difference from observation-only platforms that emit a Slack alert after the fact — AgentWatch can actually stop the spend.

Alert cadence: email alerts fire at a configurable warning threshold (default 80%) and when a budget is exceeded.

Admin override with expiry: company admins can grant temporary budget overrides (extra headroom for a known launch event, a specific tenant doing migration, etc.) with an automatic expiry timestamp — no need to remember to revoke them.

Budget efficiency leaderboards: the analytics views rank teams/employees by tokens-per-dollar, by output quality vs. cost (when paired with downstream feedback), and by month-over-month spend trend — useful for FinOps reviews and for identifying which teams have adopted cost-aware patterns (semantic caching, prompt caching, cheaper models for non-critical workloads).