Open source metering and usage-based billing
open coreAGPL-3.0self-hostablefreeMCP
Lago is an open source (AGPL-3.0) metering and billing platform for usage-based, subscription and hybrid pricing. It ingests events and meters usage in real time, then handles plans, invoicing, prepaid credits with alerts and auto top-ups, entitlements, quotes and order forms, payment collection through connected payment providers, revenue analytics and revenue recognition, with Lago Embedded for white-label billing on platforms. Run it yourself for free, or on Lago Cloud (US or EU): Launch has no minimum (the first $100,000 of billings and 5 million events free once, then 0.7% of billings and $20 per million events), Scale starts at $12,000 a year with SSO, custom roles and audit logs, and Enterprise adds VPC or on-premises deployment. It has a REST API with OpenAPI, webhooks, a CLI, an MCP server for live billing data, and clients for JavaScript, Python, Ruby, Go, Java and PHP. Lago says it's SOC 2 Type II compliant.
Problems it solves
- bill customers for usage of my API
- an open source alternative to building usage-based billing myself
- meter events and invoice customers by consumption
- self-host my subscription and usage billing
Features
- real-time usage metering
- subscription, usage and hybrid plans
- invoicing
- prepaid credits and spend alerts
- entitlements
- revenue analytics and recognition
- white-label Lago Embedded
- API, webhooks, CLI and MCP server
Ways to run it
Lago Cloud
Launch: first $100,000 of billings free, then 0.7%; Scale: from 0.6%, $12,000/year minimum; Enterprise: custom1
Lago open source
free2
Not included
- features of the premium edition
You arrange
- PostgreSQL
- Redis for the job queue and the cache
- S3-compatible storage
- an SMTP provider for email
Lago Premium
Price not published2
You arrange
- PostgreSQL
- Redis for the job queue and the cache
- S3-compatible storage
- an SMTP provider for email
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Has official SDKs | plan not known |
| Has single sign-on | Scale plan and up, 0.6% of processed billings, $12000/year minimum on the Scale plan1 |
| Sends webhooks | plan not known |
Alternatives
The same job
These do what Lago does.
