Questions and answers
Last updated 24 November 2026
Everything people ask about Xpenvo Agents: what it does, how to set it up, how limits and prices work, and how we keep your data safe. Something missing? Write to [email protected].
The basics
Who is this for?
Teams that run AI agents in production, or are about to, and want a limit that actually stops spending instead of an alert that arrives after the bill.
I already have a spending limit on my API key. Why do I need this?
Keep it: it is a good last line of defence. But a key limit is one number shared by everything on that key. If one agent gets stuck in a loop, it uses up the budget for every other agent and customer, and when the limit trips, all of them stop, not just the broken one. A request that has already started also runs to the end, so the limit stops spending only once the money is mostly gone. Xpenvo sets a separate limit per agent, per run and per end customer, checks it before each request is sent, and pauses an agent when it starts repeating itself.
Can’t I just build this myself?
For one agent on one provider, yes: count the tokens, assume the worst for the reply, and refuse the call if it does not fit. It gets harder with several agents, customers and providers, because each one prices differently, streaming replies have to be settled, parallel calls must not race past the limit, and the code has to live in every agent. Xpenvo does that once, in front of all of them, without changing your agent code beyond the base URL and one header.
Gateways like LiteLLM, Portkey, Cloudflare and OpenRouter have budgets now. Why Xpenvo?
They are good gateways, and most now have some kind of budget. The difference is in how strictly it holds. Several of them say in their own documentation that their budgets are checked against spend already recorded, so parallel requests or a long request can go past the limit. Xpenvo checks the most each request could cost before it is sent and holds that money, so parallel calls cannot race past a limit. It also does what gateways mostly do not: a hard limit per agent run, loop detection that pauses a stuck agent, a person approving any request above an amount you choose, and limits on tool and API spending, not only models. If you already run a gateway for routing or logs, keep it; Xpenvo is the spending control.
My cloud provider has budgets. Is that not enough?
Usually not for agents. Azure cost budgets only send alerts; they do not stop requests. AWS Budgets for Bedrock can attach a deny policy, but only after you build that yourself, and the cost data behind it can be hours old, so a loop can run all afternoon first. OpenAI, Anthropic and Google offer monthly limits per organisation or project, with no daily or per-agent limit. Xpenvo stops the request before it is sent, per agent, per run and per customer, on every provider at once.
Why should I trust you with my AI traffic?
Because we hold as little as possible. Prompts and answers pass through and are never stored. Your provider key is forwarded with each request and never saved or logged. Each organisation has its own walled-off budget engine, and we keep a one-way fingerprint of your agent keys, not the keys. The full list of protections, and every company that helps us run the service, is on our Security page.
What happens if Xpenvo is down?
You choose. By default we fail closed: if we cannot check a budget, the request is stopped with a clear 503 error and nothing reaches your provider, so our outage can never spend your money. If you would rather keep agents running, one header (or one SDK option) sends requests straight to your provider while we are unavailable, marked as unmetered so you can count them. Requests we stop on purpose are never let through. And you can always remove us by changing the base URL back.
How accurate is the cost?
Before a request is sent, we work out the most it could cost from its size, its answer limit and the official price list, including cached input, long-context and fast-mode prices. After the reply, we charge the real cost from the token counts the provider reports, streaming included, and free the rest. If a reply is cut off and the provider reports no usage, we count the whole amount we set aside, so budgets are never under-counted. A model or feature we cannot price yet is stopped with a clear message, never let through unchecked.
What does my agent see when it is stopped?
An error in your provider’s own format, so your SDK and framework handle it like any other: 402 for money, 403 for rules and safety stops, 429 for pace. The reason code is in the x-xpenvo-error header and the message says what to change. If you named a cheaper fallback model, the request is sent with that model instead and the reply tells you so.
Does it cover tools and APIs, or only models?
Both. Model calls are checked automatically. For search APIs, browser sessions, paid tools or messages, your agent asks Xpenvo first with one small call, and the same budgets, run and customer limits, approvals and kill switch apply.
Can I limit my team’s coding agents?
Yes. Give each developer their own key with its own daily or monthly limit, and point Claude Code, Codex, Cursor or Cline at Xpenvo. Each developer keeps their own provider key. Loop detection and the kill switch work the same as for any other agent. The setup guide shows the exact settings for each tool.
What will it cost after the beta?
The beta is free. Paid plans will not start before 1 April 2027, and you will be told at least 30 days before anything is charged, with time to decide. We will never charge a percentage of your AI spending: a tool meant to cut your bill should not earn more when your bill grows.
Who keeps the prices up to date?
Xpenvo does, automatically. Every 6 hours our prices are compared with independent public price sources, and a change is applied only when they agree. Anything odd waits for a person, and price changes announced ahead of time start on their date. The full list and its changelog are public on our prices page, and the bill check compares our count with your real invoice.
Which model providers does it support?
OpenAI, Anthropic, Google Gemini, Mistral, OpenRouter, Azure OpenAI and Amazon Bedrock, including streaming responses.
Will Xpenvo store my prompts?
No. The proxy reads a request only to price it. It keeps the metadata the decision log needs, such as model, token counts and cost, and never the prompt or response text.
Does it add latency?
Every request gets one extra budget check. Every reply carries a Server-Timing header showing how many milliseconds our checks added, so you can measure it yourself.
Setting up
How do I connect an agent to Xpenvo?
Create a budget and an agent key in the dashboard. Then change one setting in your agent: the base URL of your AI provider’s client points to Xpenvo, and you add your agent key as the X-Xpenvo-Key header. You keep using your own provider key. Nothing else in your code changes, and you can undo it by changing the base URL back. Setup guide →
Do I have to use your SDK?
No. Changing the base URL and adding one header is enough for any SDK or framework that lets you set the base URL, including the official OpenAI and Anthropic SDKs, LangChain, LangGraph, the OpenAI Agents SDK and others. Our small SDKs for JavaScript, TypeScript and Python are optional extras: they set the headers for you, wait for an approval and resend the request, and read how much budget is left. SDKs →
Does it work with n8n?
Yes. In an n8n OpenAI credential, set the Base URL to https://agents.xpenvo.com/v1, keep your own OpenAI key, and add a custom header named X-Xpenvo-Key with your agent key. Anthropic credentials work the same way with the Base URL https://agents.xpenvo.com. The connection test and the model list work as usual. Give each client its own agent key and budget, and one client’s stuck workflow stops only that client’s key. n8n guide →
Does it work with Claude Code, Codex, Cursor and Cline?
Yes. Give each developer their own agent key with a daily or monthly limit. Claude Code uses ANTHROPIC_BASE_URL and a custom header, Codex uses a model provider in its config file, Cline uses the OpenAI-compatible provider with a custom header, and Cursor uses a base URL and the combined key. The setup guide shows the exact settings for each. Coding agents →
My tool only has an API key field and no place for extra headers. What do I do?
Put both keys in the API key field, separated by a colon: your agent key, then a colon, then your provider key (xpv_…:sk-…). Xpenvo splits them, checks the agent key, sends only your provider key on to the provider, and stores neither.
Which providers and APIs are supported?
OpenAI (Chat Completions and Responses), Anthropic (Messages), Google Gemini through its OpenAI-compatible API, Mistral, OpenRouter, Azure OpenAI and Amazon Bedrock (Converse with a Bedrock API key). Streaming works on all of them. Providers →
Can I try it before setting anything up?
Yes. The demo runs a pretend budget in your browser: send requests, start a stuck loop, approve a big request and press the kill switch. Nothing is sent to any provider and nothing is saved. Try the demo →
Limits and controls
What kinds of limits can I set?
Budgets that reset every day, every month or never, nested like an org chart: one for the company, split across teams, then one per agent. On top of that: a limit per agent run, a limit per end customer, an hourly spending limit and a requests-per-minute limit per key, the models and providers a budget may use, the hours it may be used, and an amount above which a person must approve the request. Rules →
When do daily and monthly budgets reset?
At midnight in the budget’s own time zone, which you choose when you create it. UTC is the default. Teams in different countries can each use their own.
Can parallel requests go over the limit?
No. Before each request is sent, Xpenvo sets aside the most it could cost. If that does not fit, the request is stopped. Requests sent at the same moment each set aside their own amount, so together they can never go past the limit. This is tested on every release. Tested guarantees →
How do I cap a single agent run?
Send the same run id in the X-Xpenvo-Run header on every request of the run, and set a limit per run on the budget. A run that reaches it is stopped, while other runs carry on. The Flight Recorder shows each run step by step: models, tokens, cost and any stop. Runs and end customers →
How do I limit spending per end customer?
Send your own id for the customer in the X-Xpenvo-Customer header and set a limit per customer on the budget. One customer who uses your product heavily, or whose agent gets stuck, then cannot use up the budget meant for everyone else. Use an internal id, never an email address or a name.
What is a cheaper fallback model?
Instead of stopping an agent when its budget runs short, Xpenvo can send the request with a cheaper model you choose. You name up to three in order. When a limit would block the request, Xpenvo tries each one and sends the first that fits. Each try is checked like a new request, so a fallback can never overspend, and rules, safety stops and approvals still apply. The reply carries an x-xpenvo-fallback header saying which model was used. Fallback models →
Where do I set fallback models?
Two ways. In code, add the X-Xpenvo-Fallback-Model header with up to three model names separated by commas, for example gpt-5-mini,gpt-5-nano. Or without touching code: in the dashboard open Agent keys, choose Limits on a key and fill in Cheaper fallback models. The dashboard setting is used whenever the agent does not send its own header, which suits coding tools and n8n.
Can a person approve expensive requests?
Yes. Set an approval amount on a budget. A request that could cost more is held and your team is told by email, Slack, Microsoft Teams or webhook. An admin approves or denies it in the dashboard. After approval, the agent sends the same request again within an hour and it goes through. Our SDKs wait and resend for you. Approvals →
What happens when an agent gets stuck in a loop?
If a key sends the same message again and again in a short time, Xpenvo pauses that key and alerts you. Only that key stops; your other agents keep working. It compares a one-way fingerprint of each message, never the text. A key that suddenly spends far faster than usual is paused too. Safety stops →
Is there a kill switch?
Yes. One button stops every request in your organisation at once, until an admin turns it off. You can also pause a single key or budget without deleting anything.
Can I limit spending on search APIs, browsers and other paid tools?
Yes. Before your agent calls a paid tool, it asks Xpenvo with one small call, giving a price or the most it could cost. The same budgets, run and customer limits, approvals and kill switch apply. Afterwards it reports the real cost and the rest is freed. A hold that is never closed is charged in full when it expires, so a crashed agent never leaves spending uncounted. Spending outside the model →
Can my agent check how much budget it has left?
Yes. A free status call returns whether the key can spend, how much is left, and each budget’s limit. It costs nothing and changes nothing, so an agent can use it to plan its work. How much is left →
Can Claude Code show my remaining budget at the bottom of the screen?
Yes. The status call has a one-line text format, for example “Xpenvo: $14.20 left of $20.00 today · run $0.84”. Add it as Claude Code’s statusLine command in your own settings file and it shows under the prompt while you work. Any other tool that shows the output of a command can use the same line. Status line setup →
How do I know what a run will cost before it starts?
After a key has finished at least 5 runs in the last 30 days, Xpenvo shows the typical cost of a run, the cost 9 in 10 runs stay under, and the most expensive one. While a run is going, it can tell your agent that this run has already passed the 9 in 10 mark, so the agent can stop or ask before it costs more. A good per-run limit is a little above the 9 in 10 figure. What a run costs →
Prices and accuracy
How does Xpenvo know what each model costs?
It keeps a price list for every model it supports, from each provider’s published prices: input, cached input, cache writes, output, long-context and fast-mode prices. The full list is public on our prices page, along with what one typical agent step costs on each model. Model prices →
Do I have to keep the prices up to date?
No. Every 6 hours our servers compare the price list with independent public price sources and apply a change only when they agree. This runs on our side around the clock, whether or not anyone is signed in. Anything unusual, such as sources that disagree or a very large jump, is held for a person to check instead of being applied. Price changes the providers announce in advance start by themselves on their date, and every change is listed in a public changelog. How the check works →
What if a price source is wrong?
Then nothing changes. A price is applied only when independent sources agree on it, a very large jump is held for review, and if an unusual number of prices change at once the check assumes a source is broken and applies none of them. Prices corrected by a person are never overwritten by the automatic check.
What happens when a provider releases a new model?
Until the model is priced, requests to it are refused with a clear message, never let through unpriced, so a new model can never spend outside your budget. New models are added once the price sources agree on their price.
Are cached tokens and long prompts counted correctly?
Yes. Xpenvo charges what each request really used, from the token counts the provider reports: cached input, cache writes, long-context prices above a model’s threshold and fast modes are all priced separately. If a streamed reply is cut off and the provider reports no usage, the whole amount set aside is counted, so budgets are never under-counted.
Can I compare Xpenvo’s numbers with my real bill?
Yes. In the dashboard, under Activity, Check against your bill puts what Xpenvo counted for a provider and month next to what the provider billed you. Type the bill amount, or for OpenAI and Anthropic give an admin key with read access to costs and Xpenvo reads it for you. The admin key is used for that one check and never stored. You also see the same requests recounted at today’s prices, and you can enter a negotiated discount. Check against your bill →
My bill is not in US dollars. How is it converted?
At the European Central Bank reference rate for the last day of that month, or the last working day before it. That is the official rate for the date, so it is a fair comparison, but the amount your bank or card actually charged can differ by a few percent because of their own rate and fees. Small differences between our count and your bill are normal; a large one usually means some agents are not going through Xpenvo.
Can I use your price data in my own tools?
Yes, for free and without an account. The price list is available as JSON at https://agents.xpenvo.com/v1/xpenvo/prices, the changelog at /v1/xpenvo/prices/changes, and an Atom feed at /v1/xpenvo/prices/feed.xml for any feed reader. Use the data →
Can I get an email when an AI model price changes?
Yes, free and without an account. Sign up on the prices page with your email and confirm the link we send. After each 6-hourly check that finds a change, you get one short email listing what changed. Every email has a one-click unsubscribe, which deletes your address. Sign up for price alerts →
Trust, security and reliability
How do I know the limits actually hold?
Every promise we make, such as parallel requests never going over a limit, cut-off streams being counted, and unknown models being refused, has automated tests behind it. They run before every release and the results are published with each promise next to its tests. Tested guarantees →
Is there a status page?
Yes. It checks the live service every minute and shows whether budget checks are working and when prices were last checked. Every incident is written up there within 5 working days: what happened, who was affected, and what changed so it cannot happen again. Service status →
How can I check that the SDK file I downloaded is genuine?
Compare its SHA-256 checksum with the one on our status page, for example with shasum -a 256 on macOS and Linux or Get-FileHash in Windows PowerShell. The checksums are updated with each release. SDK checksums →
Can I export an audit log for compliance reviews?
Yes. The organisation export holds every spending decision and audit entry, chained with SHA-256 hashes so that changing or removing any record breaks the chain. Keep each export, and you can later prove nothing was altered. It is useful as evidence for audits such as SOC 2 and for AI governance records. The setup guide includes a short script that checks an export. Checking an export →
What are anonymous cost benchmarks?
An optional setting, off by default. If you switch it on, only the cost of each request per model leaves your organisation: no names, keys, prompts, customers or runs. A model’s figures are published only when at least 3 organisations contributed, so no single organisation can be picked out. In return everyone gets a fairer picture of what typical and expensive requests cost on each model. We do not sell data.
Do you sell my data?
No. We do not sell or rent data, we do not show ads and we do not use tracking cookies. Prompts and answers are never stored, provider keys are never saved, and you can download or delete your data yourself at any time. Privacy policy →
Where can I read about security in detail?
The security page lists every protection, how keys and data are handled, and every company that helps us run the service. Security →
The beta
How do I join the beta?
Choose Request beta access on the home page and leave your work email. We let teams in from the waitlist and email you when your access is ready. The beta is free until at least 31 March 2027. Request beta access →
Do I get anything for inviting another team?
Yes. Your invite link is under Billing in the dashboard. When a team asks for access through it and their agents send their first request, both of you get one extra free month after the beta ends, up to 12 months for you. Terms →
Who is the beta for?
Teams anywhere in the world that run AI agents or automations and pay the model bills: product teams with agents in production, agencies and freelancers who build agents for several clients, and companies that want a daily limit on each developer’s coding agent.
I have a question that is not answered here.
Write to [email protected]. A person reads every message.