Setting Budget Limits
What Happens When a Limit Is Reached
CostHQ does not terminate your session automatically — you stay in control of when to stop. When spend crosses a threshold, the proxy andcs run emit a warning to your terminal so you see it immediately. The dashboard Alerts page also lights up with a triggered-alert badge and rings alarm mode if you have it enabled.
cs budget Options
| Flag | Description |
|---|---|
--daily <amount> | Alert when daily AI spend exceeds this amount (USD) |
--session <amount> | Alert when a single session’s spend exceeds this amount (USD) |
Dashboard Alerts Page
Open the Alerts page in the dashboard (cs dashboard) for a real-time view of your budget health:
- Visual progress bars — watch spend creep toward each limit without switching to the terminal
- Status badges — active rule count, total alarm count, and triggered-alert count displayed at the top of the page
- Sessions over limit table — every session that exceeded its budget, sorted by overage
- Alarm mode — when a budget is exceeded, the browser fires a desktop notification and plays a sound so you notice even if the dashboard tab is in the background
Best Practices
Set a per-session limit before experimenting
Before you run an unfamiliar agent, cap what a single session can cost:
Add a daily limit as a safety net
A daily limit catches runaway spend even if you forget to set a per-session limit:
Monitor progress in real time
Open the dashboard Alerts page while your agent is running:The progress bars update live so you can see spend approaching the limit before it trips.
Pro: Spend Firewall
Pro tier feature. Standard budget alerts warn you after a limit is crossed. The Spend Firewall goes further: it can block API calls before they happen, detect runaway agents automatically, and let you define multi-level budget rules (warn at 80%, hard-stop at 100%). Upgrade to Pro to enable it.