Can you set limits on how much an AI agent uses your access?

Short answer: Yes, if the app enforces user-authored limits on the grant itself. With AgentAdmit, the user sets call ceilings (per day or for the life of the connection, per group of scopes or for the whole connection) at the moment they approve the agent. Every call the app verifies is checked against those numbers, and the agent cannot raise them on its own.

Scopes answer “what can this agent touch.” Durations answer “for how long.” Neither answers the question people actually ask once an agent is running unattended: “how much?” A read-only scope that is called ten times a day and the same scope called ten thousand times an hour look identical to a permission system. They are not the same risk.

Why isn’t a scope enough to limit an AI agent?

Because a scope is a yes/no on a capability, and volume is a separate axis. An agent allowed to read your files can read all of them. An agent allowed to send messages can send a thousand. The grant is valid the whole time.

OWASP’s LLM06:2025 entry on Excessive Agency names three root causes: excessive functionality, excessive permissions, and excessive autonomy. Scopes cover the first two. Autonomy is where volume lives, because an agent that loops, gets steered by an injected instruction, or simply misjudges the task will keep acting inside a perfectly legitimate grant until something stops it. OWASP also lists human approval of high-impact actions among its mitigations, and that is one answer. A ceiling is the cheaper one for everything below the “needs approval” line: the user does not have to approve each call, and the agent still cannot run away with the grant. OWASP is careful to file rate limiting under damage limitation rather than prevention, and that is the right register for ceilings too: they cap how far a bad run can go, they do not stop the first bad call.

What does a user-set limit look like in practice?

It is a number the user chooses on the consent page, next to the scopes they are granting. Here is an illustrative example. A user connects a scheduling agent and grants it two things: read the calendar and create events. They set a group ceiling of 200 calendar reads per day, a separate ceiling of 10 event creations per day, and a lifetime ceiling of 5,000 calls for the whole connection.

The ceilings can apply to a group of scopes or to the connection as a whole, and each can be daily (counted per UTC day) or lifetime. The agent is told its ceilings when it exchanges its credential, so a well-behaved agent can plan around them instead of discovering them by failing.

What happens when the agent hits the ceiling?

The call is refused, and the refusal says why. When the app verifies the agent’s call, a call over a ceiling comes back as bound_exceeded, with the specific bound that was hit, how much has been spent, and a hint about renewal. The grant itself stays active. Only the call that would go over is denied.

Two details matter. Denied calls do not consume budget, so an agent hammering a closed door does not dig a deeper hole. And the spent count is derived from the append-only audit log of permitted calls, not from a separate mutable counter, so the number the user sees on their dashboard and the number the enforcement uses are the same number.

Can the agent raise its own limits?

No. The only path to more budget is a fresh connection that the user authorizes. This is the same principle we wrote about in Can an AI Agent Approve Its Own Permission Request?: a limit that the limited party can edit is a suggestion.

The related rule on the app side is that API-key callers can only tighten protections, not loosen them. Changes that loosen a protection need a human at a consent surface. Tightening costs nothing and loosening takes a person, which is the direction you want the asymmetry to run.

Would a limit have helped in a real incident?

It depends on what the credential was, and the LiteLLM incident is a good illustration of why. On October 21, 2026, a compromised litellm==1.107.0 reached PyPI. In its root-cause analysis, LiteLLM says an internal agent platform, built so self-hosted cloud agents could file pull requests, was configured with a GitHub token that “was not associated with a service account and was not scoped down.” It was “a GitHub CLI OAuth token associated with our GitHub organization owner’s account.” An attacker used the platform’s master key to pull that token from the agent configuration on October 10 and, per LiteLLM, had owner-level access to all repositories from then on.

That token was not a grant made for an agent. It was a person’s full credential, lent to a machine. A call ceiling does nothing for a credential like that, because there is no grant to attach a ceiling to. The lesson is upstream of volume: give the agent its own grant, scoped and bounded, and then a thief who takes it inherits a daily call count instead of an owner’s account. We are not claiming this would have changed the outcome of that incident. LiteLLM’s account is a single source and the details are theirs. It shows the shape of the problem: unbounded, unscoped credentials held by agents are the ones that turn a small leak into a large one. See also Why do AI agent attacks keep going for the credential, not the model?

What do these limits not do?

Being straight about the edges is part of the design.

  • They count calls, not dollars or size. A ceiling of 200 means 200 calls. If one call can move a lot of money or return a lot of data, that limit belongs in the app’s own policy, keyed to the grant.
  • Group ceilings count calls that declare their scope. A call that does not say which scope it is using counts toward the connection-level ceiling only.
  • They are enforced where the app verifies. The check happens when the app asks AgentAdmit to verify a call. If an app skips the verify step, there is nothing for the ceiling to act on. And if the count behind a ceiling is ever unreadable, that one call is permitted and the failure is logged, so a storage blip does not deny every bounded connection at once. Scope, expiry and revocation checks fail closed; a ceiling sits above them as an extra layer.
  • They bound volume, not intent. An agent can do damage in 10 calls if those 10 are the wrong ones. That is what scopes, confirm-each-time actions, and review of the audit trail are for. Limits are one layer.

For drift that a number cannot capture, such as an agent suddenly using scopes it had not touched before, the model is different: those get flagged for a human to review, not auto-decided. Judgment calls stay with a person. Related: Can an AI agent accumulate permissions over time without the user knowing?

How does this fit with user-mediated authorization?

It is the same idea applied to quantity. In user-mediated authorization, the human is the one who decides, on the consent page opened on the app’s behalf, what an agent gets. Limits are one more thing the human decides there, and where the app requires a presence ceremony, they are part of what that ceremony commits to, so they cannot be quietly changed afterward.

FAQ

Can you limit how many times an AI agent can call an app on your behalf?

Yes. With AgentAdmit, the user sets call-count ceilings at the consent step, per day or for the lifetime of the connection, on a group of scopes or on the whole connection. A call over a ceiling is refused with a bound_exceeded error that names the limit and how much has been used.

Can an AI agent change its own usage limits?

No. Raising a limit requires a new connection that the user authorizes. The agent cannot edit its own ceilings, and API-key callers can only tighten protections, not weaken them.

Do usage limits count dollars?

No. Ceilings count calls. Dollar or data-size limits are the app’s own policy, tied to the grant, because only the app knows what a call costs.

What happens to the agent’s access when it reaches a limit?

Only the over-limit call is denied. The grant stays active, and denied calls do not use up any of the remaining budget.

Building an app or agent that needs scoped, bounded, user-approved access? See agentadmit.com.

Get new posts by email

One short email when a new post goes live. No spam, unsubscribe anytime.