Overview
Lago is an open-source billing platform for usage-based, subscription and hybrid pricing. Your application sends events (tokens, API calls, compute minutes), Lago aggregates them into billable metrics, applies plans, prepaid credits and entitlements, then generates invoices and collects payment through Stripe, Adyen, GoCardless or Cashfree.
The core is AGPLv3 and can be self-hosted with Docker at no licence cost; the repository has been public since 2022. Lago Premium, available in Lago's cloud or self-hosted, adds features such as entitlements, customer portal, real-time usage alerts, RBAC, SSO via Okta and AI assistants, and is priced by quote.
Lago says it processes up to 1,000,000 billing events per second and counts Mistral AI among its users. It is not a payment processor or merchant of record, so tax registration remains yours unless you use its tax integrations.
Self-hosting needs Docker and supporting services; the repository ships a local demo that prices sample AI requests end to end, which is a quick way to judge fit. Lago Cloud removes the operational work but requires a sales conversation.
Pricing and plans
| Plan | Price | What you get |
|---|---|---|
| Open source (self-hosted) | Free | AGPLv3 code on your own infrastructure |
| Lago Premium | Custom | Cloud or self-hosted; entitlements, progressive billing, RBAC, SSO, AI assistants; add-ons on demand |
What it does
- Event-based metering
- Ingest usage events and define billable metrics with aggregation rules.
- Hybrid pricing
- Combine subscriptions, usage charges, prepaid credits and wallets in one plan.
- Invoicing
- Invoice generation, credit notes, grace periods and an invoice preview endpoint.
- Payment integrations
- Collect through Stripe, Adyen, GoCardless or Cashfree.
- Self-hosting
- Deploy on-prem or in your VPC with the same AGPLv3 codebase.
- MCP server and SDKs
- SDKs for JavaScript, Python, Ruby and Go, plus an MCP server for AI-assisted billing.
Strengths and limitations
Strengths
- Free to self-host with full metering and invoicing
- Handles high-volume usage events
- Works with several payment providers
- SOC 2 Type II for the cloud
Limitations
- Premium and cloud pricing are not published
- AGPLv3 licence has obligations if you modify and offer it as a service
- Several features (dunning, tax integrations, progressive billing) are Premium add-ons
- Self-hosting means running and upgrading it yourself
Who it suits
Good for
- AI products billing tokens or compute
- Infrastructure and API companies with metered pricing
- Teams that must keep billing data on their own servers
Look elsewhere if
- Simple flat subscriptions, where Stripe Billing or a MoR is less work
- Teams without capacity to operate a self-hosted billing system
Alternatives to Lago
| Tool | From | Free option | Stages |
|---|---|---|---|
| Stripe Billing Subscription billing | Usage-based | ||
| Paddle Merchant of record for software | Usage-based | ||
| Stripe Payments Payment processor (API-first) | Usage-based | ||
| Razorpay Payment gateway (India, plus US, Singapore, Malaysia) | Usage-based | ||
| Square Payments Payment processor (in-person and online) | Usage-based | ||
| FastSpring Merchant of record for software | — |
Questions
Is Lago free?
The AGPLv3 open-source version is free to self-host. Lago Premium and Lago Cloud are priced by quote.
Does Lago process payments?
No. It integrates with Stripe, Adyen, GoCardless and Cashfree to collect payments.
What licence is Lago under?
GNU Affero General Public License v3.0.
Sources read for this page