Skip to content

Spend and budgets ​

See who is spending the project's model money and on what, and set limits so that no person, key or project can run away with the budget.

At a glance ​

WhereSidebar → Project → Spend. Organisation-wide: Organisation → Usage. Your own keys: Settings → My LLM keys
WhoEveryone sees Spend (members see their own; Admins see everyone). Only Admins set budgets and open Usage
Before you beginAt least one run, so there is something to show

1. What it is and why it matters ​

Every agent in a project normally runs on one shared model key. Without limits, nobody knows who spent what, and one person running a workflow in a loop can use the month's money in a day.

QuestionAnswer in Studio
How much can this project spend?Project budget, one pool for everyone
How much can each person spend?Member allowance, with per-person exceptions
How much can an outside caller spend?API key budget
Who spent what, on which agent?The Spend page

The one rule: a run starts only if it is under every limit that applies, the project budget and the person's (or key's) own limit. Whichever runs out first stops it.

2. Key terms ​

TermMeaning
PeriodDay, Week or Month. Resets at 00:00 UTC (05:30 IST), not local midnight
Limit byDollars, Tokens, or Both (whichever is reached first)
Block new runs / Warn onlyBlock stops runs at the limit. Warn never stops anyone; the meters turn red
OverrideAn exception for one person: Custom (another limit) or Unlimited (exempt from the allowance, the project budget still applies)
Own keyA member's personal model key. Tracked, never budgeted

What counts ​

CountedNot counted
Playground runs, workflow runs, calls to published agentsRuns on a member's own key (tracked and shown, but never budgeted)
Every model call in the run, sub-agents includedA run resumed after a review (it was admitted when it started)
Only runs on the project's shared key
Run started fromCharged toCounted against
PlaygroundThe signed-in personTheir allowance + project budget
Workflow in StudioThe person who started itTheir allowance + project budget
Published agent, by APIThe API keyThat key's budget + project budget

3. See where the money goes ​

Open Project → Spend and choose a period: Today · This week · This month · 90 days.

Screenshot: Spend, as an AdminSpend page

As a member you seeAs an Admin you also see
Your allowance: a meter, what is left, when it resetsA Project budget card: used of limit, status
The project budget as "$X left for everyone", no one else's numbersFigures: Project's key, Members' own keys, Runs, Active people, Need attention
Your spend on the project's key and your own key, your runs, a daily chartA projected month-end line, Spend by agent
Your spend by agent, Your recent runsA Rules card, and People and API keys tabs

The People tab (Admins): one row per person, runs, spend, tokens, allowance meter. Filter by Everyone · Near the limit · Blocked · Using own key, or find a person. Click a row for their allowance, spend by agent and recent runs (each opens its trace).


4. Set the budgets (Admin) ​

  1. On Spend, click Set a budget (or Rules → Budgets). The Budgets drawer opens.

    Screenshot: The Budgets drawerBudgets drawer

  2. Project budget, switch it on and set Period, Limit by, the dollar and/or token limit, and When it runs out (Block new runs or Warn only). A sentence confirms it, e.g. "Everyone in the project shares $20 a month; new runs stop when it is spent."

  3. Member allowance, switch it on and set the same fields. This is each member's default, e.g. Day, $2. The sentence shows the total: "Each of 10 members can spend up to $2 a day, $20 together a day." If that exceeds the project budget, Studio warns that the pool will run out first; you may still save.

  4. Members' own keys, Off, Allow or Require (§8).

  5. Click Save budgets. Switching a section off and saving removes that budget. Changes apply from the next run.

ChooseWhen
DollarsYou want a money figure. Needs priced models
TokensA model has no price, or you want one limit for every model
BothWhichever comes first stops the run

How the limits combine (monthly; Asha has spent $7) ​

SetupAshaBen ($0 spent)
Project budget $10 onlyCan run; $3 left for everyoneCan run, but only $3 left for everyone
Allowance $4 onlyBlocked at $4Can run; his $4 is untouched
Project $10 + allowance $4Blocked by her allowanceRuns until his $4 or the pool runs out
Allowance $4, Asha Custom $8Can run ($7 < $8)Can run ($4)

5. Give one person a different limit (Admin) ​

  1. Spend → People, click the person.
  2. Under Allowance choose Project default, Custom (their own period, limit and Block/Warn) or Unlimited.
  3. Click Save allowance.

Keep the Admin who unblocks others on Unlimited while testing, so a limit can never lock out the person who needs to lift it.


6. What people see when a limit bites ​

WhenShows
Before the limitA budget chip in the Playground and the workflow run bar, e.g. "$0.29 left today". Amber at 80 %
At the limit, Block"Your allowance used up · resets in …" or "Project budget used up". Runs are refused: "Runs already going finish; an administrator can raise the limit on Spend."
At the limit, WarnNobody is stopped. "Over … · not blocked", red meters

By design:

  • A run that started under the limit always finishes, so spend can end slightly over.
  • The check is at the start of a run, not on each model call.
  • Runs launched together cannot jump the limit: Studio reserves room as each starts.
  • Dollar limits need priced models.

Unblock someone (Admin) ​

  1. Spend → Need attention (or the blocked chip in Rules) filters to Blocked.
  2. Open the person → Allowance → a higher Custom, Project default or Unlimited → Save allowance.
  3. If the project budget is the cause, raise it in Budgets.

They can run again at once.


7. See the whole organisation (Admin) ​

Organisation → Usage shows every project in one table.

Screenshot: Organisation → UsageUsage

ShowsMeaning
Total spend, Tokens, runsAcross all projects, including members' own keys
Projects over budgetTheir pool is spent
Near the limit80 % or more of their pool
Per projectSpend, project budget, tokens, people, Top spender, activity

8. Members' own keys ​

A member can run on their own model key, sparing the shared budget.

The Admin chooses in Budgets → Members' own keys:

SettingEffect
Off (default)Everyone runs on the project's key
AllowA member who has added a key for the model's provider runs on it; it never counts toward a budget
RequireMembers must bring their own key. API calls still use the project's key

The member adds a key in Settings → My LLM keys:

  1. Find the provider: OpenAI, Azure OpenAI, Anthropic, Google Gemini or AWS Bedrock.
  2. Add key, paste it, Save key. (Bedrock takes aws_access_key_id, aws_secret_access_key and aws_region as JSON.)
  3. The card shows Saved · ends in …1234. Replace or Remove later.

Screenshot: My LLM keysMy LLM keys

Nobody can read a saved key back, you included. Nobody else can use it. A run counts as own key only if every credential it used was yours.


9. API key budgets ​

Published agents called from outside are charged to the API key.

  1. Spend → API keys, click a key → Budget for name.
  2. Set Period, Limit by and the amount → Save budget. Remove budget clears it.

The project budget still applies on top. A refused call gets HTTP 429 budget_exceeded, with the limit, what was used, when it resets, and a Retry-After header. (Separately, each endpoint has a monthly token budget, see Published agents.)


10. Troubleshooting ​

SymptomLikely causeFix
No Set a budget buttonYou are not an AdminAsk an Admin
Enter a dollar amount above zeroBlank or 0Enter e.g. 2.50
Enter a whole number of tokensDecimal or textWhole numbers only
Blocked although the pool has moneyYour allowance is used upAdmin raises your allowance
Blocked although your allowance has roomThe project budget is used upAdmin raises it, or wait for the reset
Spend went slightly overThe last run started under the limitExpected
A dollar budget never bitesThe model has no priceUse a token limit, or price the model
Numbers look oldSpend appears when a run completesRefresh
This project runs on your own … keyPolicy is Require and you have no keyAdd one in Settings → My LLM keys
API caller gets 429Key, endpoint or project budget used upRead Retry-After; raise the budget

Copyright © 2026 elsai foundry.