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.

Sample stream 0 tokens $0.0000
TokenSpend Overview: AI spend $26,395.17 this month, requests, tokens in, tokens out, input cached and coding agents, each with its trendTokenSpend Overview: AI spend $26,395.17 this month, requests, tokens in, tokens out, input cached and coding agents, each with its trend
Bill, each source counted once
Improvements, with a saving
Invoice check, a gap found

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
The problem

Three AI bills.
No total.

Product calls, team seats and provider invoices. Here they are on one page, each counted once.

01Calls your product makes
o1$17,113.12
claude-sonnet-4-5$1,863.12

One model is 87.3% of billed spend.

02Seats your team sits in

Engineering has 21 seats. 2 are dormant.

03Invoices that land a month later
OpenAI$17,743.50Matched
Anthropic$611.32 apartFlagged

Each day is checked against the invoice.

One total $26,395.17

Billed and tracked this month, each source on its own line.

Analytics, Bill · Demo data
01 Inside “Who on my team is using what?”

What your team's AI tools
are really doing.

Claude Code, Cursor, Codex and Copilot. By person, by repository, by pull request. Coding agents docs →

How it gets hereVendor analyticsOpenTelemetryGitHubJiraSign-in and network logsDemo data
02 Outside “What does Nimbus cost me?”

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 →

RequestsDemo data
Requestsreq_7f3a91
OpenAIgpt-4o1,204 in312 out$0.006130
1,204 × $2.50 per 1M + 312 × $10.00 per 1M
customerNimbus Logisticsfeatureticket-classificationteamplatform-eng
CustomersNimbus Logistics, this month
Requests7,938
Cost to serve$4,986.04
Margin−$1,640.12 to −$1,490.17
Cost against revenueLosing money
03 Check “Can I trust this number?”

Checked against the invoice,
every day.

Connect provider billing once. Every day is checked against the invoice, and a gap over 2% is flagged.

Analytics, Bill, by providerAnalytics, Bill, by provider
Analytics, Bill, by providerDemo data
Confirmed

Metered spend matches the invoice.

Flagged

The two are more than 2% apart.

Inferred

An estimate until the invoice lands.

See how it works →
04 Control “Can we stop a runaway loop?”

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.

Asked forAnswered byWhy
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.

req_9c21e4team Stagingo1
Blocked. o1 is a blocked model in staging.

A call that breaks a rule stops before the provider sees it.

Budgets and alerts

See how it works →
Budget, Staging and dev sandboxes$3,714.04 of $3,790
Near cap, 98%$75.96 left
A runaway loop caughtCritical

A monthly cap, and an email or Slack message when spend nears it.

Downgrade support ticket classification to GPT-4o mini
High (98%)About $1,420 a month

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.

How it gets here

Every source in.
One bill out.

Provider usage, coding tool analytics, your repositories and your bills. Each one connected once, each counted once.

Provider usage
Vendor analytics
SDKTwo lines of code
OpenTelemetry
GHGitHub
JIRAJira
Cloud billing
CSVAny other bill
TokenSpendPriced, owned and checked once
Billed and tracked$26,395.17this month, each source counted once
Nimbus Logistics, margin−$1,640.12cost to serve passed revenue
Anthropic invoice$611.32 apartflagged, beyond the 2% tolerance
Demo data
The app

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

Demo data
Set up

Add two lines of code.
Your calls stay as they are.

01Wrap your AI client.

Works in TypeScript and Python. Usage is reported in the background.

02Say who each call is for.

Name the customer and feature once. Every call inside gets that tag.

03Or use the router.

Change one URL to add routing, backups and caching.

Start free →Read the quickstart
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
});
usage captured, gpt-4o-mini, 1,204 tokens, $0.0004, customer_ref=acme
FAQ

Ask the hard ones.
The answers are short.

Anything else, the docs go deeper.

Read the docs →
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.

Know who spent it
this week.

Free up to 1M events a month. No card.