Skip to main content

What are limits?

Two types of rules you can set per agent:
  • Notify — Sends an email alert when a threshold is reached.
  • Block — Returns HTTP 429 and stops requests when the threshold is reached.

Creating a rule

1

Open agent settings

Open your agent’s Settings page in the dashboard.
2

Add a rule

Under “Notification Rules”, click Add Rule.
3

Configure the rule

Pick a metric (tokens or cost), period (hour / day / week / month), threshold, and action (notify or block).
4

Save

Save. The rule takes effect immediately.

How blocking works

When a “block” rule triggers, the next ingest request returns 429 Too Many Requests with a message:
Limit exceeded: cost usage ($X) exceeds $Y per day
The block resets at the start of the next period.

Email notifications

Emails are sent via the platform’s mail provider. Make sure your account email is valid.

Checking rules

  • Rules are evaluated hourly (cron) for notifications, and on every ingest for blocks.
  • A notification is sent once per rule per period to avoid spam.