A monthly usage cap on every AI agent key

An AI agent budget is a monthly cap on the Anlyon operations one agent key can run. Give each key your agents use its own cap. You hear about it before the cap, and at the cap that key stops with a clear error while every other key keeps working. A loop that won't end can't run up the month.

A few lines on your server, then connect a user.

  1. 1.Pick a keyEach agent gets its own API key, so each one can get its own cap.
  2. 2.Set the capA monthly cost cap, a cap on action invocations, or both.
  3. 3.Hear about it earlyAt 80% of the cost cap by default, a budget.alert event and a notification.
  4. 4.Stop at the capThat key's calls return 429 BUDGET_EXCEEDED until the month turns or you raise it.

One key hits its cap. The others never notice.

A cap belongs to a key, not to the account. When the research agent runs away, it stops at the number you chose, and support keeps answering customers.

Budgets · productionOctober · day 1
  • research-agent$0.00 / $25.00

    running

  • support-agent$0.00 / $50.00

    running

  • nightly-sync$0.00 / $10.00

    running

Events
  1. Oct 01month opens · every key at $0.00
  2. Oct 11budget.alert · research-agent · 80% of $25.00
  3. Oct 19429 BUDGET_EXCEEDED · research-agent
  4. Oct 19200 · support-agent · still running

An agent stuck in a retry loop calls all night, and you find out from the invoice. With Anlyon each key has a monthly cap, so the loop stops where you said and the rest of your agents keep working.

Less risk

A runaway key stops at its own cap. It can't take the rest of your agents down with it.

Less cost

You choose the most each key can cost in a month, and you hear about it before it gets there.

Less effort

No metering, counters or cut-off switch to build. The cap is a setting on the key.

What a budget caps. And how it counts.

Budgets cap what an agent's key can run on Anlyon. Your own dashboard session is never budgeted.

A cap for each key, not one for the account

The research agent gets $25 of Anlyon operations a month and production gets $500. Set a cost cap, a cap on action invocations, or both, from the console or the API.

  • Each key's cap is independent of every other
  • A client connected over MCP gets a ledger of its own
  • Raise a cap mid-month with the budgets:write scope

One operation counts once

A unit is one accepted operation, not one HTTP request. Admission is serialized per key, so parallel calls can't slip past the cap together.

  • Checked after validation, so a malformed request costs nothing
  • A retry of an accepted request is not charged again
  • An action that never leaves Anlyon gives its reservation back

You hear about it at 80%, not 100%

When a key's projected spend reaches its alert threshold, Anlyon emits a budget.alert event and sends a notification. The alert reports; the key keeps running until the cap.

  • 80% of the cost cap by default, or your own threshold
  • Delivered through your notification channels and the event stream

Blocked means blocked, and says so

Past the cap, each covered call on that key returns 429 BUDGET_EXCEEDED: an error your agent can catch and explain, never a silent drop. The count starts again with the next UTC month.

  • Nothing covered runs on that key until the month turns or the cap rises
  • Every other key keeps working

Budgets vs impact limits. Two caps, for two different questions.

Budgets

  • How much can this key run?

    A monthly cap on the Anlyon operations one agent key performs.

  • Counted in operations and cents

    Action invocations, priced as Anlyon operations. Not model tokens.

  • At the cap: 429 BUDGET_EXCEEDED

    The key stops until the month turns or the cap rises.

Impact limits

  • What can the agent do in a user's account?

    A cap on what actions change: notes written, emails sent, money refunded.

  • Counted per user, in your unit

    Reserved right before dispatch, shared by every agent and key acting for that user.

  • Over the limit: refused

    The call is refused with impact_limit_exceeded, and nothing is sent.

In your code. One call per key.

Set it once from your server or the console. Your agent only ever sees the error, and only at the cap.

budgets.ts
// The research agent: $25.00 of Anlyon operations a month,// and no more than 1,000 action invocations.await anlyon.budgets.put(researchAgentKeyId, {  monthlyCostCentsCap: 2500,  dimensionCaps: { actionInvokes: 1000 },  alertThreshold: 0.8, // budget.alert at 80% of the cost cap});// At the cap, that key's covered calls return//   429 BUDGET_EXCEEDED// and every other key keeps running.

Let your agent act for your users, safely.

A few lines of server code, then send a user a connect link. Nothing to host.

$ claude mcp add --transport http anlyon https://api.anlyon.com/mcp