Skip to main content

Install

The setup wizard runs automatically after install. You can skip it and configure later with npx burn0 init.

Add the import

Add this as the first import in your app’s entry file (before any SDK imports):
burn0 must be imported before any API SDK (OpenAI, Anthropic, etc.). It patches fetch and http globally — if an SDK initializes first, its calls won’t be tracked.

Run your app

You’ll see costs appear in your terminal as API calls happen:
When you stop the app (Ctrl+C):

Check your costs

Optional: Connect to the dashboard

For team visibility and historical data, connect a free API key:
1

Sign up

Go to burn0.dev/login and sign in with GitHub.
2

Create an API key

Navigate to Dashboard → API Keys → Create new key.
3

Add to your project

Paste your API key when prompted.
4

See costs in the dashboard

Visit burn0.dev/dashboard to see costs across all your projects.

Next steps

CLI Reference

All CLI commands

Track features

Attribute costs to specific features

Dashboard

Visual cost breakdown

Supported services

50+ services tracked