Your agents can spend money. Cap them before they do.
Upivia gives every AI agent its own identity and a hard budget that is reserved before each model call — with approvals for the big ones, a vault for every provider, and spend projections finance can read.
A router caps a key. Upivia caps an agent, before it spends.
Gateways give routing away for free. Control is the part nobody ships: who is spending, how much is left, and who said yes.
| A typical AI router | Upivia | |
|---|---|---|
| Budgets | Caps per API key | Hard budgets per agent, team and person |
| Enforcement | On recorded usage, after the fact | Reserved before the call goes out |
| Identity | Keys and teams | Every agent has its own identity and key |
| Vault | BYOK for 3 providers | Every provider, write-only, never shown to agents |
| Approvals | None | Phone approvals for big calls and top-ups |
| Logging | Prompts stored by default for a year | Metadata only by default |
| Spend | Tokens only | Tokens plus the paid services agents call |
| Availability | US only | Open in Canada |
Live in three steps. No call needed.
Connect an agent
Create an agent, copy two env vars. Claude Code, Codex, Cursor and any OpenAI or Anthropic SDK work unchanged.
Set a budget and caps
Monthly, daily and per-action limits, plus a dollar threshold that sends a call to a human first.
Watch a call get blocked
Fire a test call over the cap. It stops before the provider is called, and lands in To-Do with the reason.
ANTHROPIC_BASE_URL=https://gateway.upivia.com ANTHROPIC_API_KEY=upv_ak_live_••••••••••••••••••••••••3kq7
Authority only narrows as it descends.
Give a client team $5,000. Give each person a slice. Give each agent a monthly cap and a rule that no single action costs more than $3. Every request checks every level, and the tightest one wins.
Reserved before it spends
Every call reserves its worst case across agent, person, team, workspace and wallet in one transaction. 50 parallel calls against a $1 cap never settle above $1.
Approvals on your phone
Calls above a dollar threshold, and top-up requests from capped agents, wait for a tap. Approve and the agent continues without a restart.
One vault, every provider
Anthropic, OpenAI, Google, xAI and OpenRouter keys are write-only. Agents get an Upivia key; a leaked agent key can't drain anything.
Private by default
We store model, tokens, cost and latency — not prompts. Content logging is opt-in per workspace, encrypted, with 7, 30 or 90-day retention.
Projections, not surprises
Daily burn, projected month-end and the date each budget runs out, at every level of the tree. Export by agent, team, person or client.
Runaway protection
Retry storms and repeated prompts pause the agent automatically and alert the owner. Every decision lands in a hash-chained audit log.
Run Upivia under your own brand, for every client.
One workspace per client, budgets by team, spend reports you can bill from. Build your own portal on the SDK with short-lived session tokens — your clients never see us.
import { Upivia } from "@upivia/sdk";
const upivia = new Upivia({
secretKey: process.env.UPIVIA_PARTNER_KEY,
workspace: client.upiviaWorkspaceId,
});
// Hand your frontend a 1-hour token
const { token } = await upivia.sessionTokens.create({
user_id: user.upiviaId,
scopes: ["spend:read", "approvals:decide"],
});One dashboard, one wallet, one endpoint.
See it on your own agents. We'll set up your workspace with you, so nothing ships unguarded.