On this page
Overview
Lago is API-first billing infrastructure that aggregates usage events into billable metrics and applies pricing, credits, entitlements, invoices, payments, and revenue workflows. It supports complex usage models such as AI tokens, compute, API calls, seats, and transactions.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Key features
Turn usage events into billable metrics and pricing
Tokens, compute, API calls, and other events can be metered and connected to tiers, allowances, overages, and prepaid-credit models.
Sources: [2]
Extend the workflow through invoices, payments, and revenue
The same billing model covers invoicing, payment-provider orchestration, credit notes, and revenue operations.
Sources: [2]
Best fit
Fits usage-based and AI products separating billing logic from application code
It is useful when pricing changes and metering should be shared as billing primitives through APIs, SDKs, and MCP rather than embedded deeply in product code.
Sources: [2]
Before adoption
Design credential handling and human review for financial actions
The README advises keeping API keys out of prompts and source control, confirming the target organization and environment, and reviewing financial changes before execution.
Sources: [2]
Official sources
- [1]getlago/lago repository(2026-09-30)
- [2]Lago README(2026-09-30)
- [3]Lago AGPL-3.0 license(2026-09-30)
- [4]Lago v1.53.0 release(2026-09-30)
- [5]Lago agentic AI billing demo(2026-09-30)
Supplemental curator note
Lago is an AGPL-3.0 billing engine that turns token, compute, API-call, transaction, and other usage events into billable metrics, pricing, credits, invoices, payments, and revenue. The README also offers Premium deployment, customization, security, and support options around the open-source engine. Production deployments must replace default credentials and should keep human review around financial mutations.
Try it in 3 steps
- 1
Clone Lago v1.53.0
Check out the release tag containing the maintained local demo.
git clone --depth 1 --branch v1.53.0 https://github.com/getlago/lago.git && cd lago - 2
Run the local AI billing demo
Using Docker, curl, and jq, start an isolated Lago stack that meters token usage and converts it into charges. Demo credentials are local-only.
./examples/agentic-ai-demo/run.sh - 3
Clean up after verification
After reviewing usage and charges in the UI or API, remove the demo containers, network, and volume.
./examples/agentic-ai-demo/run.sh --cleanup
Growth
Growth trends · Last 30 days
10,642 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 18
- Open PRs
- 8
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- billing
- fintech
- invoices
- payments
- usage-based-billing
- subscriptions
- metering
- pricing
- analytics
- open-source
- pricing-data-science
- self-hosted
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- Hi.Events4,039 Stars
2 shared tag(s) · 3 shared category(s)
self-host ticket sales, attendee operations, and event check-in
PHP - BillionMail15,768 Stars
2 shared tag(s) · 2 shared category(s) · Same language
combine Postfix, Dovecot, Rspamd, Roundcube, and newsletter/campaign management in one self-hosted mail platform
Go - FlexPrice6,924 Stars
2 shared tag(s) · 2 shared category(s) · Same language
connect usage events to metering, pricing, credits, entitlements, subscriptions, and invoices in an Open Core billing stack
Go - OpenCloud6,079 Stars
2 shared tag(s) · 2 shared category(s) · Same language
self-host file sharing, search, and collaboration around filesystem storage and OIDC-separated identity
Go - Notifuse2,226 Stars
2 shared tag(s) · 2 shared category(s) · Same language
unify newsletters, transactional email, automation, and web analytics on a self-hosted PostgreSQL messaging platform
Go - ownCloud Infinite Scale2,133 Stars
2 shared tag(s) · 2 shared category(s) · Same language
Self-host file sync, sharing, WebDAV, OIDC, and office integrations on a Go multi-service architecture
Go
Report incorrect information
Tell us if any listing information is incorrect or outdated.