Guide

Budget controls for AI agents: caps, time budgets and approvals

An agent that can call a model, run a command or send mail needs limits that hold when nobody is watching. Grupr enforces three: a dollar cap on each gateway key, a daily time budget on each agent’s sandbox, and a human approval before anything risky runs. This guide shows what each one does, what the caller sees when it bites, and how to choose the numbers.

On this page:

The three layers at a glance

LayerApplies toLimitWhen it bites
Dollar cap per virtual keyAny tool or service calling models through the Grupr gateway (Grupr Analytics)Monthly USD amount per key; optional model allow-listHTTP 402 budget_exceeded; overage request and approval
Daily sandbox budgetEach Grupr agent’s workspace (AgentOS)5 minutes to 24 hours of sandbox time per UTC dayHTTP 429 sandbox_budget until 00:00 UTC; routines skip
Approval before the actionAgent commands, routines, mail; external coding agents via Remote ControlA person says yes or no, per action or by standing ruleThe call waits for the card; a denial is returned with the reason

Layer 1: dollar caps per key, with overage approvals

In Grupr Analytics an admin issues a virtual key per team, project or tool. Each key carries a monthly cap in US dollars and, optionally, the list of models it may call. Requests through the gateway are priced as they happen and counted against the key.

What the caller sees:

Asking for more:

This layer exists for organizations running Grupr Analytics. It is enforced at the gateway, so it covers any tool pointed at it, not only Grupr’s own.

Layer 2: a daily sandbox budget per agent

Every Grupr agent has a rented Linux sandbox that keeps its files between calls and pauses when idle, so an idle agent costs nothing. The owner can cap how much of it the agent may use in a day: from 5 minutes to 24 hours per UTC day, set on the agent page.

When the day’s budget is reached:

Two related guards run without configuration: a routine that fails three times in a row produces a room note and one owner email, and one that fails twenty times pauses itself until the owner resumes it.

Layer 3: approval before the action

Budgets bound how much; approvals decide whether. In Grupr rooms, every command an agent wants to run in its sandbox posts an approval card to the room and to the owner’s dashboard. The call waits about two minutes for Approve or Deny; a denial returns the reason to the agent. Standing permissions can pre-approve well-understood commands. Sending mail as the agent and installing a routine the agent proposed are approval-gated in the same way.

For coding agents you already run outside Grupr (Claude Code, Codex, Aider, Cursor), Remote Control on the Pro plan routes each permission prompt to your phone, the web, Slack or Discord, requires 2FA on destructive actions, and lets you write allow-list rules so routine prompts stop interrupting you.

Separately, Settings → Budgets in the app holds guidance budgets for your own account: spend estimates reported by Grupr’s review and build tools, with a warning at 80% and an “over” flag at 100%. Grupr Build stops at that cap. These are estimates to steer by, not billing.

A week with the controls on

Illustrative; not a customer’s data.

  1. Monday. The platform team’s virtual key (cap $1,500, models limited to two mid-tier options) is at $380. A developer tries a frontier model through it and gets 403 model_not_allowed; the tool falls back to the allowed model.
  2. Wednesday. A batch job pushes the key to $1,500 at 14:10. The next call returns 402 budget_exceeded. The job files an overage request for $300 with the reason “re-index after schema change”. The department policy auto-approves raises up to $250, so this one waits; the finance approver approves $300 with a note at 14:25. The raise expires at month end.
  3. Thursday. The release agent’s sandbox budget is 60 minutes a day. A flaky test loop burns it by 11:40. The agent’s next command gets 429 with “used 60 of 60 min, until 00:00 UTC”; its 15:00 routine is skipped with a note in the room. The owner sees one note and one email, reads the loop, and raises the budget to 90 minutes.
  4. Friday. The agent proposes a new routine to run the suite nightly. The approval card sits in the room until a person approves it; nothing is scheduled before that.

Choosing the numbers

A read-only report of sandbox time, denials, failures and routine health for one agent is described in Agent usage report in the docs.

What these controls do not do

Put a limit on something today

Remote Control and approvals are on the Pro plan, with a two-day trial. Key caps and overage approvals come with Grupr Analytics for organizations.