Skip to content
SecondStack SecondStack Docs

Budgets and spend

Updated · Checked against SecondStack v3.7.2This page as Markdown
On this page
Labels on this page
your budget, in ControlTower
Budget and Spend
your budget, in Chat settings
Budget & spend
a person's hard cap
User Spend Limit
a person's share of a team
Team Member Budget
a team's cap
Total Team Budget
the Chat App key, on a base install
Regular models in AI Chat
the Agent Claude key
Agent Claude using API Billing
a one-time top-up
Grant temporary spend

Budgets and spend in ControlTower set what the organization, each team, each person, each key and each named agent may spend on AI per period, so cost management happens before a request runs rather than on an invoice. SecondGate enforces every level at request time, alerts fire at a threshold, and a supervisor can grant a one-time top-up.

Chapters and full transcript: How to Adjust Budget & Spend in SecondStack

Recorded on SecondStack v2. Some labels in the app have changed since.

The mockup below shows a person’s Budget and Spend page at v3.7.2, with one key’s amount being typed in.

Budget and Spend· ControlTower

Budget and Spend

Refresh
Total User Spend in All Teams
$133.82
Next Reset
1 Dec 2026
Total spend in Engineering $133.82 of $400.00

AI Chat

Regular models in AI Chat $96.20 used of $200.00

Shared by regular chat, agent reasoning, and model API calls initiated by agents.

Agent Claude using API Billing $12.40 used of $100.00

API Keys

VS Code $18.32 used of $50.00
nightly-report $40.00 Double-click to type an amount
Available for allocation $10.00
Budget allocation changed. Click Save to confirm. Reset Save
A person's Budget and Spend page at v3.7.2: the team share split across the Chat App, Agent Claude and two API keys with sliders, one key's amount typed in, and the save bar waiting for Save.

How the budget levels fit together

A request is charged to a key, and the key sits under a person, a team and the organization, each with a cap of its own. The table lists the levels from the top, with the default site’s values.

LevelWhat it capsDefault site
OrganizationEverything the platform spends10,000 per 30 days
Total Team BudgetEverything a team spendsSet per team, per month
User Spend LimitOne person across all their teams400 per calendar month for a new user
Team Member BudgetOne person’s share of one teamThe team’s Default Team Member Budget
Chat App key, shown as Regular models in AI ChatChats and agent turns in the Chat App200
Agent Claude key, shown as Agent Claude using API BillingAgent Claude when no subscription serves it100
API KeysEach key a person creates50 suggested for a new key
Apps & Agents keysOrganization-level keys for apps and agents, with an optional Spend capNone

A named agent on its own budget has an allocation of its own, per month or per day, on the budget of whoever funds it; an agent that charges whoever uses it runs on the caller’s Chat App key. The Agents overview explains that choice.

Three rules hold the tree together. A missing amount means no cap and a zero means a cap that is already spent. A member’s share cannot exceed their User Spend Limit or the team’s total, though the members’ shares together may exceed the team. Lowering a member’s share rebalances their keys in proportion. The organization and team caps run per month; budgets set on screen run per calendar month, and a site’s defaults or an import can set a daily, weekly or 30‑day period instead.

How SecondGate enforces a budget

SecondGate admits a request only while the key and every level above it have room, and it checks before a byte leaves for the provider. A request that would pass any level is refused with HTTP 402 and the reason budget_exceeded, and the Chat App tells the person and links them to their budget. Subscription calls are metered as a value for analytics and debit no budget.

The budgets reach SecondGate through Sync Job 3, ControlTower → SecondGate, every 2 minutes, and a spend window resets on the period’s boundary; Next Reset on the budget page shows the date.

How people allocate their own budget

A person splits their Team Member Budget across their keys on their own Budget and Spend page, without an administrator. The page shows Total User Spend in All Teams, then one block per team with Total spend in that team:

  1. Drag a card’s slider, or double-click the amount to type one; the hint reads Double-click to type an amount. Typed amounts shipped in v3.6.0.
  2. Keep the sum within the budget. Available for allocation shows what is left, and an allocation over the budget is refused with the amount to reduce.
  3. Choose Save, or Reset to drop the changes. The bar says “Budget allocation changed. Click Save to confirm.” until you do.

The Chat App card is shared by regular chat, agent reasoning and the model calls agents make; Usage Analytics & Logs separates those workloads. A team supervisor edits a member’s share under Team Supervision, and an administrator sets the User Spend Limit under Users.

How alerts work

Each budget scope has one alert threshold, 70% of the budget in the default site, and a team can override its own. Alerts exist for keys, users, team members, teams and Apps & Agents keys; the organization budget has none.

  • A key, user or team-member alert reaches the person as a Chat App banner, a browser notification and an email. A team or Apps & Agents key alert reaches the supervisors or the administrators as a banner and an email.
  • The alert worker runs every 15 minutes. An alert fires once per period, again when a new period starts or when the cap rises and spend grows, and a user-level alert silences that user’s key alerts. A team alert repeats daily while the team stays over the threshold.
  • A supervisor sets the team’s Alert threshold (% of Total Team Budget) under Team Supervision → Settings, and the alert texts live under Localized Content → Budget alerts.

How a temporary grant works

Grant temporary spend adds room to one budget until the current period resets, without changing the configured amount. A team supervisor or an administrator grants it to a team member from the Members tab of Team Supervision, and only an administrator grants it to an Apps & Agents key.

The grant is refused when the levels above lack the room, and a member’s grant lifts the person’s own window by the same amount. The budget page then reads “Includes a one-time grant of … on top of your … budget”, the person spreads the extra across their keys with the sliders, and saving a changed budget clears the grant. Users, a person’s keys, teams and the organization take no grant.

What usage analytics shows

Analytics & Logs shows what the platform spent, by whom and on what, and every role sees its own slice. Administrators see the whole deployment, supervisors their teams under Team Supervision → Usage, and each person their own under Usage Analytics & Logs.

  • Two reports: Gateway LLM Traffic, every request metered at the gateway, and the Chat App’s usage.
  • Four figures: Total Requests, API-billed Cost, Subscription-backed Usage Value and Total Tokens, with a toggle between API-billed, Subscription-backed and Both.
  • Gateway usage breakdown stacks the spend by Users, Models, Keys, Teams or Subscriptions, and Tokens by type splits the tokens.
  • Request Logs lists each call with its model, user, tokens, duration and status.

Subscription usage shows with a ¤ sign: it is a value, never a charge. The currency sign on every page is a deployment setting the operator makes.

What budgets do not do

  • A budget does not convert currencies. The sign is set once for the deployment, and amounts are plain numbers.
  • A budget does not count subscription calls. They debit nothing and show as a value in analytics.
  • The organization budget raises no alert, and the screen offers no weekly period: weekly and daily periods come from site defaults or an import.
  • A temporary grant does not go to a user, a key, a team or the organization, and it never outlives the period.
  • A person cannot raise their own User Spend Limit or their team’s total. Those are the administrator’s and the supervisor’s.
  • A refused request is not queued. SecondGate answers at once, and the person asks for a grant or waits for the reset.