Budget Management
What Is Budget Management?
Section titled “What Is Budget Management?”Budget Management gives administrators precise control over how much each user, team, or the whole organization can spend on AI API calls per day and per month. When a limit is reached, AgentWatch automatically blocks further requests — preventing runaway bills from scripting errors, infinite loops, or unexpected usage spikes — and sends configurable alert notifications at configurable thresholds.
Budget Hierarchy
Section titled “Budget Hierarchy”Employee and team budgets are separate limits, not a cascade. A request must fit within the employee’s own limit and, when team budget enforcement is turned on for the organization (default Off), within the team’s limit too. Organization defaults are the starting values for new employees and teams, not a cap:
Organization defaults ── seed the limits of new employees and teams (not a ceiling)Employee budget ── always enforcedTeam budget ── enforced only when team budget enforcement is On (default Off)| Tier | Default Daily Limit | Default Monthly Limit | Where Configured |
|---|---|---|---|
| Organization | Seed value for new employees/teams — not enforced as a cap | Seed value — not a cap | Settings → General |
| Team | $50.00 | $1,500.00 | Management → Budget Management |
| User / Tenant | $10.00 | $300.00 | Management → Employee Management |
A Budget Override can temporarily raise a single user or team’s limit (with an expiry date), useful for end-of-quarter bursts or short-term projects.
How Budget Enforcement Works
Section titled “How Budget Enforcement Works”Every inbound API request passes through the budget gate before the LLM is called:
Inbound API Request │ ▼┌───────────────────────────────┐│ Check employee budget, then ││ team budget (if enforced) │└────────────┬──────────────────┘ │ ▼┌───────────────────────────────┐│ Check Daily Limit │──── Exceeded ──► 402 Budget Exceeded└────────────┬──────────────────┘ │ OK ▼┌───────────────────────────────┐│ Check Monthly Limit │──── Exceeded ──► 402 Budget Exceeded└────────────┬──────────────────┘ │ OK ▼ Forward to LLM │ ▼ Record token usage + cost │ ▼ Send threshold alerts if neededDaily limits reset at midnight UTC. Monthly limits reset on the 1st of each calendar month.
Budget Status Fields
Section titled “Budget Status Fields”AgentWatch tracks the following per tenant/user in real time:
| Field | Description |
|---|---|
dailySpent |
Cost consumed today (USD) |
monthlySpent |
Cost consumed this month (USD) |
dailyBudget |
Daily limit in effect |
monthlyBudget |
Monthly limit in effect |
dailyRemaining |
How much budget is left today |
budgetOverride |
Temporary raised limit (if set) |
overrideExpiry |
When the override expires |
warningLevel |
none / warning / critical / blocked |
Alert Thresholds
Section titled “Alert Thresholds”| Threshold | Default | Alert Type |
|---|---|---|
| 80% of daily or monthly | Configurable | First warning notification |
| 90% of daily or monthly | Fixed | Second warning (high alert) |
| 100% | Fixed | Budget exceeded — requests blocked |
Alerts are sent via:
- Email — to configured recipients (Settings → General → Notifications)
- Webhook — HTTP POST to your configured webhook URL with a signed payload:
{ "event": "budget.alert", "level": "warning", "tenantId": "emp-001", "tenantName": "Jane Smith", "budgetType": "daily", "budgetLimit": 10.00, "currentSpend": 8.12, "percentUsed": 81.2, "threshold": 80, "timestamp": "2026-05-06T14:22:00Z"}Webhook requests are signed with HMAC-SHA256 via the X-AgentOneHub-Signature header using the WEBHOOK_SECRET environment variable.
Budget Enforcement for Web Chat
Section titled “Budget Enforcement for Web Chat”Web chat traffic (ChatGPT, Claude.ai, Gemini, etc.) routed through AgentWatch Connect is subject to the same per-user daily and monthly limits as direct API calls.
- Before forwarding a web chat request to the upstream site, the agent calls the budget check endpoint.
- If the user’s budget is exceeded, the request is blocked:
HTTP 403 Forbidden{ "error": "Budget exceeded", "details": "<which budget was exceeded>. Contact your administrator."}- After the request completes, a post-request notification fires to update alert tracking.
Step-by-Step: Setting a Team Budget
Section titled “Step-by-Step: Setting a Team Budget”- Navigate to Management → Budget Management.
- Select the Team from the list, or click Create Team if one doesn’t exist.
- Enter a Daily Limit and Monthly Limit in USD.
- Set the Warning Threshold (default 80%) — alerts fire when spending crosses this percentage.
- (Optional) Enable email or webhook notifications under Settings → General → Notifications.
- Click Save. The new limits take effect immediately.
Step-by-Step: Setting an Individual Budget Override
Section titled “Step-by-Step: Setting an Individual Budget Override”- Navigate to Management → Employee Management.
- Find the user and click Edit.
- Under Budget, enter the new temporary daily or monthly limit.
- Set an Override Expiry date — the limit reverts to the team default after this date.
- Click Save.
API Reference
Section titled “API Reference”| Method | Endpoint | Description |
|---|---|---|
| GET | /admin/budget/status/:tenantId |
Get an employee’s budget status |
| POST | /admin/budget/limits/:tenantId |
Update an employee’s budget limits |
| POST / DELETE | /admin/budget/override/:tenantId |
Set or clear a temporary budget override |
| GET | /admin/budget/report |
Budget report across employees |