Limit one run
Set a USD threshold in the Agent configuration. Agentium checks the recorded cost before it starts more work.Set a threshold
Configuration factory: the host supplies a reviewed catalog and a fixed UTC period. Reuse the same period across workers and requests that share a budget.sessionId in the run options. Scope IDs identify accounting records; your application must authenticate and assign them.
Threshold mode checks known spend. A long request, concurrent request, delayed usage event, or late background job can cross the limit before the next admission check. The default unknown-cost policy warns and continues, while exposing incomplete accounting.
Reserve across workers
Install the optionalpg dependency and use the same Postgres accounting backend for evidence, selected assessments, budget balances, and reservations.
await tracker.flush() and then await store.close(). The host owns the store connection. Separate archival storage can receive a copy; it does not replace the transaction backend.
Choose scope and outcome
Limits include currency and an explicit start/end period. Do not add different currencies without a separately sourced conversion. Missing required scope IDs are not permission to ignore a limit.