- About
- Open-source usage-based billing and metering. Open-source alternative to Stripe Billing, Chargebee and Orb.
- Catalogue
- No. 394
- Category
- Development
- GitHub stars
- ★ 10.8k

Overview
Lago is billing infrastructure for usage-based pricing. It meters tokens, compute, API calls or any product usage and turns it into pricing, credits, entitlements, invoices and payments. You can self-host it or use Lago Cloud.
What it does well
Lago meters input, output and cached tokens separately, combines subscriptions with prepaid credits, sends spend alerts and generates invoices. You can work with it through the API, SDKs, a CLI or MCP. Lago Direct covers your own product, and Lago Embedded powers billing for your customers. The company names CoreWeave, Mistral AI and PayPal as customers.
Why it’s in the collection
Lago fits AI and API companies whose pricing depends on usage, without locking billing logic into a payment provider. It's AGPL-licensed.
On GitHub
- Stars
- 10,834
- Forks
- 787
- Commits
- 851
- Repository
- getlago/lago
Languages
- Go 87.1%
- Shell 8%
- Dockerfile 4.8%
- Other 0.1%



