README.md
Open-source metering, billing & revenue infrastructure for product-led companies.
<a href="https://doc.getlago.com">Docs</a>
·
<a href="https://getlago.com">Website</a>
·
<a href="https://www.getlago.com/slack">Slack</a>
·
<a href="https://github.com/getlago/lago/issues">Issues</a>
·
<a href="https://getlago.canny.io/">Roadmap</a>
Lago is the open-source billing platform for usage-based, subscription-based, and hybrid pricing models. If you can track it, you can bill for it.
| Feature | Description |
|---|---|
| Usage Metering | Real-time event ingestion and aggregation for any pricing dimension |
| Billing & Invoicing | Automated invoice generation for subscriptions, usage, and hybrid plans |
| Entitlements | Feature access management tied directly to your billing plans |
| Cash Collection | Payment orchestration with dunning, retries, and multi-gateway support |
| Revenue Analytics | Cross-stream visibility into MRR, usage trends, and revenue drivers |
| Lago Embedded | White-label billing for platforms and marketplaces |
| Lago AI | AI-powered billing intelligence and MCP server for AI agents |
| Integrations | NetSuite, Xero, Salesforce, HubSpot, Avalara, AWS/Azure/GCP Marketplace, and more |
Start billing in minutes — no infrastructure to manage.
Sign up for Lago Cloud or email [email protected]
# Clone the repo
git clone --depth 1 https://github.com/getlago/lago.git
cd lago
# Generate RSA key
echo "LAGO_RSA_PRIVATE_KEY=\"$(openssl genrsa 2048 | openssl base64 -A)\"" >> .env
source .env
# Start Lago
docker compose up
Open http://localhost for the UI. The API is at http://localhost:3000.
docker compose up
If your server is not at localhost, set these in your .env:
LAGO_API_URL="http://your-server:3000"
LAGO_FRONT_URL="http://your-server"
For the full list of environment variables and advanced configuration (S3/GCS storage, SMTP, SSL, dedicated workers for high-volume), see the self-hosted docs.
| Language | Package |
|---|---|
| Node.js | lago-javascript-client |
| Python | lago-python-client |
| Ruby | lago-ruby-client |
| Go | lago-go-client |
Full OpenAPI spec: lago-openapi
We welcome contributions! See our contributing guide and the development environment setup.
Look for issues labeled beginner or help-wanted to get started.
Distributed under the AGPLv3 License. Why we chose AGPLv3.
Lago tracks basic actions on self-hosted instances by default. No customer PII or financial data is collected. Learn more or opt out.