Examples

Per-seat agents

One customer, many agents, and a budget that does not let one of them eat the month.

When your product runs agents on a schedule, the risk is not a person typing too much. It is a loop. Give each agent its own key and its own cap, so a runaway costs one budget rather than the account.

ts

actorType: "agent" is not cosmetic. Agent traffic is separated in the console's usage views, because a human's spend and a loop's spend want different alarms.

When the cap bites

The agent gets a 402 with the code spend_cap_exceeded. Treat it as backpressure, not an error: stop the run, record it, and try again after the period rolls.

ts

Finding the expensive one

Because each agent has its own key, the console's per-actor breakdown is the answer directly, sort by cost and the loop is at the top.

bash