QNTX has a two-component budget tracking system where ai/tracker records individual API calls and feeds data to pulse/budget for centralized budget management and enforcement.
Purpose: Records every API call for auditing and cost tracking
Purpose: Centralized budget management and enforcement
API Call → ai/tracker (records) → pulse/budget (aggregates) → Decision
↓ ↓
Usage History Budget Enforcement
Tracks aggregate spending and limits:
spend_usd - Current spend amountdaily_budget - Daily limitweekly_budget - Weekly limitmonthly_budget - Monthly limitlast_reset - When counters were last resetDetailed per-call tracking (exact schema varies by implementation)
Budget settings in am.toml:
[pulse]
daily_budget_usd = 10.0
weekly_budget_usd = 50.0
monthly_budget_usd = 150.0
pause_on_budget_exceeded = true # or false to fail jobs
# Check current budget status
qntx am get pulse.daily_budget_usd # See limit
qntx pulse status # See current usage
# View in web UI
# Navigate to Pulse panel → Budget tab
Budget Exceeded: Jobs will pause (if pause_on_budget_exceeded = true) or fail. Check logs for ꩜ Budget exceeded messages.
Reset Timing: Counters reset at midnight UTC for daily, Sunday midnight for weekly, first of month for monthly.