AI & cloud cost tracking

See your API bill before it sees you.

Spend Meter pulls your OpenAI, Anthropic, AWS, Azure and Google Cloud costs every hour. It puts them on one meter and pings you on Telegram, email, WhatsApp, Slack or Teams as you near your budget.

Runs on your own Cloudflare accountKeys encrypted, never sharedOpen source & free to self-host
October · month to dateLive
of $1,600.00 budgetprojected $1,598
Anthropic$612.40
OpenAI$377.95
AWS$294.02

Pulls costs from

AnthropicOpenAIAWSAzureGoogle Cloud+ 25 API gateways
How it works

Three steps, about ten minutes.

No agents to install and no code changes in your app. Spend Meter reads the billing APIs your providers already have.

Connect your providers

Paste an admin or read-only billing key in Connections. Each one is tested live, then stored encrypted.

It meters every hour

Costs are pulled per model and per service, totalled in US dollars, and charted day by day with a month-end forecast.

You get pinged in time

Set a monthly budget. At 50%, 80% and 100% you get one clear message on the channels you choose.

Features

Everything your API bill touches, on one meter.

Hourly cost pulls

Anthropic and OpenAI every hour, AWS and Azure every six. Per model, per service, per day.

Alerts on five channels

Telegram, email, WhatsApp, Slack and Teams. Each budget level fires once a month, never spam.

Month-end forecast

See where the month will land at today's run-rate, while there's still time to change course.

25 API gateways

Kong, Apigee, AWS API Gateway, Azure APIM and more. Request counts, error rates and latency per API, priced per 1,000 calls.

One currency, CSV export

Every provider totalled in US dollars, with a CSV export of each month for your books.

Your account, your keys

Runs on your own Cloudflare account. Keys are AES-encrypted and never leave it.

Budget alerts

A heads-up at every level.

Most surprise bills come from a loop that ran all weekend or a model swapped for a pricier one. Spend Meter tells you while it's still small.

TelegramEmailWhatsAppSlackTeams
50%

Halfway. Spend is where you'd expect, or it isn't, and now you know.

80%

Time to look. The message shows the top providers and the projected month-end.

100%

Over budget. One clear alert, with the numbers, so you can act.

Pricing

Free to run yourself. Or let us set it up.

Spend Meter is open source and runs on Cloudflare's free tier for most teams. AWS charges $0.01 per cost query, about $1.20 a month.

Self-hosted

Free
  • All providers, gateways and alert channels
  • Deploys to your Cloudflare account in about 10 minutes
  • Open source (AGPL-3.0), one-click deploy
Get it on GitHub
Questions

Good to know.

Where are my API keys stored?

In your own Cloudflare account, encrypted with AES-GCM. They're only used to read billing data and never appear in the browser. You can also set them as Cloudflare secrets.

Does it slow down or change my app?

No. Spend Meter reads each provider's billing API. It never sits between your app and the provider unless you choose to send gateway logs to it.

Which keys do I need?

An admin key for Anthropic or OpenAI, a read-only Cost Explorer user for AWS, and a Cost Management Reader app for Azure. Google Cloud reports through budget notifications.

How often does it update?

Anthropic and OpenAI hourly, AWS and Azure every six hours, Google Cloud several times a day. You can sync on demand any time.

Can I track APIs that aren't listed?

Yes. Log usage by hand, or post costs from any script or tool to a webhook URL.

Put a meter on your API spend today.

Try the live demo →