
Lago
Open Source Metering and Usage Based Billing.
The Lens
Lago handles the billing plumbing that makes SaaS companies tear their hair out: usage metering, subscription management, invoicing, payment orchestration, and revenue analytics. If you're building usage-based pricing (per API call, per seat, per compute hour), this is the open source engine that competes with Chargebee and Stripe Billing.
Self-hosting runs on Docker Compose with PostgreSQL. The API and frontend are separate services, which adds some initial complexity but keeps things modular. Event ingestion handles real-time usage tracking, aggregation rules turn raw events into billable metrics, and the invoicing engine generates PDFs. Integrations with NetSuite, Xero, Salesforce, and tax providers like Avalara cover the accounting side.
Solo founders can run the full billing stack for free. Growing startups avoid Stripe Billing's percentage-of-revenue pricing by self-hosting. Enterprise teams get Lago Cloud for managed infrastructure with pay-as-you-go pricing.
The catch: AGPL license. If you embed Lago into a SaaS product, the copyleft clause may require open-sourcing your application. Many companies end up on the paid cloud plan specifically to avoid that legal exposure.
Free vs Self-Hosted vs Paid
free self hosted paid cloud## Free Tier Full platform self-hosted under AGPL. All features including metering, invoicing, payment orchestration, and revenue analytics.
## Self-Hosted Docker Compose deployment. Requires PostgreSQL. Separate API and frontend services. Moderate operational complexity.
## Paid Cloud Lago Cloud: managed hosting with pay-as-you-go pricing. Avoids AGPL license obligations. Enterprise plans with custom SLAs available.
Free self-hosted (AGPL). Cloud pricing is usage-based. The AGPL license is the real pricing mechanism.
Similar Tools
About
- Stars
- 9,533
- Forks
- 581
Explore Further
More tools in the directory
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
357.5k ★claw-code
The repo is finally unlocked. enjoy the party! The fastest repo in history to surpass 100K stars ⭐. Join Discord: https://discord.gg/5TUQKqFWd Built in Rust using oh-my-codex.
184.3k ★n8n
Fair-code workflow automation with native AI capabilities
184.1k ★Get tools like this delivered weekly
The Open Source Drop — the best new open source tools, analyzed. Free.
