Know who spent it,
and whether it paid.
Two lines of code price every AI call and tag it to a customer and feature. Connect provider billing and every day is checked against the invoice, with any gap shown.
Free up to 1M events a month. No card. No proxy required.

Your calls still go straight to the provider, on your own keys. TokenSpend reads the usage that comes back. Provider docs →
OpenAI
Anthropic
Google Gemini
Amazon Bedrock
Azure OpenAI
Vercel AI Gateway
OpenRouter
Mistral
xAI
Fireworks
Together AI
DeepInfra
Three AI bills.
No total.
Product calls, team seats and provider invoices. Here they are on one page, each counted once.
One model is 87.3% of billed spend.
Engineering has 21 seats. 2 are dormant.
Each day is checked against the invoice.
Billed and tracked this month, each source on its own line.
Analytics, Bill · Demo dataWhat your team's AI tools
are really doing.
Claude Code, Cursor, Codex and Copilot. By person, by repository, by pull request. Coding agents docs →
Which customers
lose you money.
Follow one call from your app. It gets a price, an owner and a place in that customer's month. Customers docs →
req_7f3a91gpt-4o1,204 in312 out$0.006130Checked against the invoice,
every day.
Connect provider billing once. Every day is checked against the invoice, and a gap over 2% is flagged.
Metered spend matches the invoice.
The two are more than 2% apart.
An estimate until the invoice lands.
Set the rules once.
The router enforces them.
Send your API calls through one endpoint. It saves where it can and stops what breaks your rules.
Router
See how it works →o1→gpt-4oTask typeRerouted.gpt-4o→gpt-4oAnswer reused from cacheCached.gpt-4o→claude-sonnet-4-5Backup model usedAnswered.A cheaper model where one is enough. A backup when a provider fails.
Rules
See how it works →req_9c21e4team Stagingo1o1 is a blocked model in staging.A call that breaks a rule stops before the provider sees it.
Budgets and alerts Paid plans
See how it works →A monthly cap, and an email or Slack message when spend nears it.
Improvements
See how it works →Savings found in your own usage, each with a monthly figure.
On Free the router runs on your own provider keys, for the model you name. Paid plans add auto routing, with $25 a month of model spend included. Caching is off until you turn it on.
Every source in.
One bill out.
Provider usage, coding tool analytics, your repositories and your bills. Each one connected once, each counted once.
Everything in the app.
Pick a page to see it.
What your team's tools spend, what your customers cost, whether it matches the bill, and what to do about it.
Coding tools
Customers and spend
Check
Act
Add two lines of code.
Your calls stay as they are.
Works in TypeScript and Python. Usage is reported in the background.
Name the customer and feature once. Every call inside gets that tag.
Change one URL to add routing, backups and caching.
import OpenAI from "openai"; import { TokenMeterClient, wrapOpenAI, action } from "@tokenmeter/sdk"; const tl = new TokenMeterClient({ apiKey: process.env.TOKEN_METER_KEY! }); const openai = wrapOpenAI(new OpenAI(), tl); await action("generate-report", { customerRef: "acme", feature: "reports" }, async () => { await openai.chat.completions.create({ model: "gpt-4o-mini", messages }); // tagged customer_ref=acme, feature=reports });
from openai import OpenAI from tokenmeter import TokenMeterClient, wrap_openai, action tl = TokenMeterClient(api_key=os.environ["TOKEN_METER_KEY"]) client = wrap_openai(OpenAI(), tl) with action("generate-report", customer_ref="acme", feature="reports"): client.chat.completions.create(model="gpt-4o-mini", messages=messages)
# Point your OpenAI client at the router OPENAI_BASE_URL=https://tokenspend.net/v1 OPENAI_API_KEY=$TOKEN_METER_KEY
01Do my calls go through your servers?
No. The SDK wraps the client you already use, reads usage from the response it returns and ships it in the background. The router is a separate choice, for when you want routing, fallbacks and caching.
02Do you hold my provider keys?
Not with the SDK: your keys stay in your app. For the invoice check you connect a billing source, such as a read-only provider admin key, AWS Cost Explorer, Azure Cost Management or a BigQuery billing export.
03How do I know a number is real?
Every figure says where it came from. Metered cost is set against what the provider bills, day by day. A day that agrees is confirmed, a day beyond the tolerance is flagged, and anything inferred is marked Inferred until the invoice lands.
04Which providers does it cover?
OpenAI, Anthropic, Google Gemini, Amazon Bedrock and Azure OpenAI directly, plus OpenRouter, xAI, Mistral, Fireworks, Together AI, DeepInfra and the Vercel AI Gateway through the OpenAI-compatible wrapper. Any other bill comes in by CSV.
05What counts toward a plan?
Events, one per model call, and AI spend, their metered cost. Imported invoice lines and seat licences count toward neither. Settings, Billing shows where you stand. See pricing →
06Does it cover Claude Code, Cursor and Codex?
Yes. Coding tools report through their vendor analytics or OpenTelemetry. You get seats and usage per person, with coding tool spend beside your API spend.
07Are the numbers on this page real?
They are demo data from a sample workspace, and the screens are captures of the app showing it. There are no invented customers, quotes or statistics on it.
08Does a budget stop spend?
A budget alerts by default, by email or Slack. A workspace cap can be enforced on calls sent through the router. Rules stop a routed call before it reaches the provider. Budgets and alerts are on paid plans.
09Is there a dark mode?
Yes. Use the switch in the top bar. The app keeps your choice.