
About Lago
Lago is an open source billing platform for usage based, subscription and hybrid pricing. It can be run as a hosted cloud service or self-hosted on your own infrastructure.
What it does
Lago meters usage from products, including AI token counts for input, output and cached tokens. It combines subscriptions with prepaid credits and sends spend alerts when usage reaches a set level. Usage is turned into itemized invoices, so finance teams can trace each charge back to a customer. Developers can connect model providers and gateways, and the team behind the project shares its code on GitHub under an open source licence.
Key features
- Meter input, output and cached tokens separately
- Combine subscriptions with prepaid credits
- Set spend alerts for usage thresholds
- Generate itemized invoices from usage data
- Connect model providers and gateways
Who it's for
Lago suits AI product teams, SaaS companies and any business that charges for usage. Engineering teams can get granular usage data, and finance teams get a clear path from consumption to revenue. Teams that want control over their data may prefer the self-hosted option.
Pricing and good to know
The project is open source under the AGPL-3.0 licence, and a hosted version called Lago Cloud is also available. The cloud service handles operations for you, while self-hosting gives full control. Teams using AGPL software should review the licence terms before they run a modified version as a service.
Highlights
- Meter input, output and cached tokens separately
- Combine subscriptions with prepaid credits
- Set spend alerts for usage thresholds
- Generate itemized invoices from usage data
- Connect model providers and gateways












