Lago
Open-source metering and usage-based billing platform for modern SaaS.
Why consider Lago?
Lago is an open-source usage metering and subscription billing platform and alternative to Stripe Billing and Chargebee. It calculates usage-based charges, hybrid pricing models, and automated invoices.
Learn Lago by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide3 sections
Overview of Lago
Lago provides modern usage-based and hybrid billing infrastructure. It ingests high-volume usage events, computes real-time customer bill totals, handles prepaid credits, and synchronizes with payment processors like Stripe and payment gateways.
Quickstart with Docker Compose
git clone https://github.com/getlago/lago.gitcd lagodocker compose up -dAccess the Lago administration UI at http://localhost:3000 to configure billing plans, billable metrics, and customer pricing overrides.
Ingesting Usage Events via API
curl -X POST "http://localhost:3000/api/v1/events" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "event": { "transaction_id": "tx_12345", "external_customer_id": "cust_999", "code": "api_requests", "timestamp": 1672531199, "properties": { "tokens": 450 } } }'Lago is distributed under the GNU AGPL-3.0 license.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.