Open-source billing infrastructure for usage-based, subscription-based, and hybrid pricing models
- Stars9.8k
- Forks627
- Open Issues19
AGPL-3.0
- Go
- Shell
- Dockerfile

About Lago
Lago is an open-source metering and billing platform for product-led companies that need to track usage, manage subscriptions, and bill from events. It handles usage-based, subscription-based, and hybrid pricing, with self-hosting for full control over your data or Lago Cloud for a faster start.
It is API-first, exposing every feature through a REST API, with SDKs for Node.js, Python, Ruby, and Go. Lago is payment-agnostic and works with Stripe, Adyen, GoCardless, or any gateway. It also includes prepaid credits, coupons, dunning and payment retries, revenue analytics, and white-label embedded billing.
It is licensed under AGPL-3.0. Self-host with Docker Compose, with optional S3 or GCS storage, SMTP, and SSL, or deploy on-prem or in a VPC. The hosted service is SOC 2 Type II certified.
Key features
- Real-time usage metering and consumption tracking
- Usage-based, subscription, and hybrid pricing
- REST API with Node, Python, Ruby, and Go SDKs
- Works with Stripe, Adyen, GoCardless, or any gateway
- Prepaid credits, coupons, dunning, and revenue analytics
Details
- On GitHub since
- 2022
- Deployment
- self-hostable · cloud · docker
- Language
- Ruby
- Stack
- Docker Compose
- API
- REST API with SDKs
- License
- AGPL-3.0
