Your power users eat your profits.
A flat subscription cannot account for a customer who burns millions of tokens. Charge for the usage you deliver.
Every token costs you money. Every agent run adds to the bill. Stop letting your most active customers become your biggest expense.
Meter records usage per customer, prices it against their plan and issues an invoice.
A flat subscription cannot account for a customer who burns millions of tokens. Charge for the usage you deliver.
Tool calls and retries multiply consumption. Attribute each billable event to the right customer.
Replace manual reconciliation with running totals and itemized invoices.
Send customer-level usage events. Then follow totals, pricing and charges in the simulated workspace.
POST /api/v1/usage
x-api-key: <customer key>
{
"event_id": "evt_1042",
"eventType": "TOKENS",
"units": 20000
}One Docker Compose command starts the whole stack.
NestJS, PostgreSQL, Drizzle, Redis and SeaweedFS storage (S3-compatible; Cloudflare R2 for deploys).
Walk through the pipeline and some simulated failure scenarios.
Set up a sample plan, send an event and see the bill change.
View the codeManage how your AI product earns revenue.
Walk through a plan, a first event and a draft invoice.
Follow usage from API request to customer invoice.
Experiment with plan allowances and transparent overage calculations.
Illustrative monthly charge
Applying saves pricing rules only, in this page. In the real service, plans are defined in the seed script.
How the real service moves an event to an invoice. The payloads are examples.
The repository stack, started with Docker Compose. Storage is SeaweedFS (S3-compatible; Cloudflare R2 for deploys).
Set up a sample plan and follow one event through to a draft invoice.
Walk through a setup, or explore a preconfigured sample business.
Roadmap, not built: agent-assisted setup through MCP.