Now in private beta · Canada first

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.

0% markup on your own keys Change one env var Metadata-only logs
claude-code — via upivia
Works with the agents you already run
Claude CodeCodexCursorOpenCodeOpenAI SDKAnthropic SDK
The difference

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 routerUpivia
BudgetsCaps per API keyHard budgets per agent, team and person
EnforcementOn recorded usage, after the factReserved before the call goes out
IdentityKeys and teamsEvery agent has its own identity and key
VaultBYOK for 3 providersEvery provider, write-only, never shown to agents
ApprovalsNonePhone approvals for big calls and top-ups
LoggingPrompts stored by default for a yearMetadata only by default
SpendTokens onlyTokens plus the paid services agents call
AvailabilityUS onlyOpen in Canada
How it works

Live in three steps. No call needed.

01

Connect an agent

Create an agent, copy two env vars. Claude Code, Codex, Cursor and any OpenAI or Anthropic SDK work unchanged.

02

Set a budget and caps

Monthly, daily and per-action limits, plus a dollar threshold that sends a call to a human first.

03

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.

.env — that's the integrationClaude Code
ANTHROPIC_BASE_URL=https://gateway.upivia.com
ANTHROPIC_API_KEY=upv_ak_live_••••••••••••••••••••••••3kq7
Budgets that mirror your org

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.

Workspace · Acme Health$3120 / $5000
Team · Platform$1460 / $2000
Person · Mikail$512 / $800
Agent · Claude Code · $3 per action$188 / $300
Projected month-end$4,410 · runs out never

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.

For agencies and partners

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.