Lago
Open-source usage-based billing and metering infrastructure for turning product usage - API calls, compute, tokens - into pricing, invoices, and revenue.
- Actively maintained
- Well documented
Overview
Lago is open-source billing infrastructure for usage-based and subscription pricing models. It meters product usage - such as API calls, compute time, or LLM tokens - and turns that usage data into pricing calculations, credits, entitlements, invoices, and payment collection, rather than requiring a team to build metering and invoicing logic on top of a generic payments API.
It can be used directly as your own billing system (Lago Direct) or embedded to power billing for your own customers (Lago Embedded), and is used in production by companies including Mistral AI, Groq, and Synthesia for usage-based and AI-product billing specifically. The project positions itself for agentic and AI-product monetization as much as traditional SaaS subscriptions.
Lago is a fit for teams that need to bill based on metered usage rather than flat subscriptions, or that want an open-source alternative to hosted usage-billing platforms.
Why it's in this catalog
Catalog rating: ★★★★☆ (4/5)
Open-source usage-based billing engine, a strong differentiator in a very thin payments category.
- Emerging
- Vendor-backed
- Categories
- Payments
- Languages
- Go
- License
- AGPL-3.0
Related Projects
Kill Bill
Apache-2.0Open source subscription billing and payments platform for running recurring revenue, invoicing and billing logic on your own infrastructure.
Actively maintained
- Payments
OpenMeter
Apache-2.0Real-time usage metering and billing for AI, API and DevOps products -- collects and aggregates millions of usage events to drive usage-based pricing, entitlements and invoices.
Actively maintained
- Payments
Polar
Apache-2.0Open-source billing platform for selling software -- subscriptions, one-time purchases and usage-based pricing, with Polar acting as merchant of record for global sales tax.
Actively maintained
- Payments
Hyperswitch
Apache-2.0Open source payments orchestration platform that routes transactions across multiple payment processors with intelligent routing and a PCI-compliant, self-hostable core.
Actively maintained
- Payments
Spotted an error? Suggest an edit on GitHub.