Lago is an open-source billing engine for usage-based and subscription billing — metering, invoicing, and payments.
What You Get for Free (Self-hosted)
- Usage metering — ingest events, aggregate by any dimension
- Subscription plans — recurring billing with tiers
- Add-ons — one-time charges on top of subscriptions
- Coupons — percentage or fixed-amount discounts
- Invoicing — automatic PDF invoice generation
- Tax management — tax rates per customer/plan
- Webhooks — invoice.created, payment.succeeded events
- API-first — RESTful API for all operations
- Multi-currency — bill in any currency
Quick Start
git clone https://github.com/getlago/lago.git
cd lago && docker compose up -d
# Dashboard at http://localhost
# Ingest usage events
curl -X POST https://api.getlago.com/api/v1/events \
-H 'Authorization: Bearer YOUR_KEY' \
-d '{
"event": {
"transaction_id": "txn_123",
"external_customer_id": "customer_1",
"code": "api_calls",
"properties": { "tokens": 1500 }
}
}'
Why Developers Switch from Stripe Billing
Stripe Billing wasn't designed for usage-based models:
- Real-time metering — ingest millions of events
- Flexible pricing — graduated, package, percentage tiers
- Open source — no per-invoice fees, self-hosted
- Multi-model — usage + subscription + one-time in one system
A SaaS spent 6 months building custom billing for their API (metering, aggregation, invoicing). After Lago: same functionality, 2-day integration, zero maintenance.
Need Custom Data Solutions?
I build production-grade scrapers and data pipelines for startups, agencies, and research teams.
Browse 88+ ready-made scrapers on Apify → — Reddit, HN, LinkedIn, Google, Amazon, and more.
Custom project? Email me: spinov001@gmail.com — fast turnaround, fair pricing.
Top comments (0)