Back to rankings

getlago/lago

Gogetlago.com

Open Source Metering and Usage Based Billing API ⭐️ Consumption tracking, Subscription management, Pricing iterations, Payment orchestration & Revenue analytics

billingfintechinvoicespaymentsusage-based-billingsubscriptionsmeteringpricinganalyticsopen-sourcepricing-data-scienceself-hosted
Star Growth
Stars
10.2k
Forks
705
Weekly Growth
Issues
15
10.2k10.2k
Oct 2021May 2023Dec 2024Jul 2026
ArtifactsGo Modulesgo get github.com/getlago/lago
README

Lago

Lago

The AI-native billing platform
Open-source metering, billing & revenue infrastructure for product-led companies.

Docs · Website · Slack · Issues · Roadmap

Github Stars Release License Slack YC


Trusted by

PayPal Mistral AI Groq Synthesia Laravel


What is Lago?

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.

  • Open-source — self-host for full control over your data, or use Lago Cloud to get started faster. Either way, the code is transparent
  • Payment-agnostic — works with Stripe, Adyen, GoCardless, or any payment gateway
  • API-first — every feature available via REST API
  • SOC 2 Type II certified

Features

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

Get Started

Cloud (fastest)

Start billing in minutes — no infrastructure to manage.

Sign up for Lago Cloud or email hello@getlago.com

Self-hosted

Requirements

  • Docker & Docker Compose
  • Git

Quick start

# 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.

After an update

docker compose up

Configuration

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.

Find your API key

  1. Open the Developer section in the sidebar
  2. Go to the API keys tab
  3. Click Copy

Documentation

SDKs & Client Libraries

Language Package
Node.js lago-javascript-client
Python lago-python-client
Ruby lago-ruby-client
Go lago-go-client

Full OpenAPI spec: lago-openapi

Stay up to date

Contributing

We welcome contributions! See our contributing guide and the development environment setup.

Look for issues labeled beginner or help-wanted to get started.

License

Distributed under the AGPLv3 License. Why we chose AGPLv3.

Analytics & Tracking

Lago tracks basic actions on self-hosted instances by default. No customer PII or financial data is collected. Learn more or opt out.

Related repositories
akaunting/akaunting

Online Accounting Software

PHPPackagistOtherphplaravel
akaunting.com
10k2.9k
hexclave/hexclave

The user infrastructure platform. You choose the frontend, backend, and database. Hexclave handles everything else.

TypeScriptnpmOtherauthenticationnextjs
hexclave.com
6.8k521
killbill/killbill

Open-Source Subscription Billing & Payments Platform

JavaMavenApache License 2.0killbillbilling
killbill.io
5.6k941
ever-co/ever-gauzy

Ever® Gauzy™ - Open Business Management Platform (ERP/CRM/HRM/ATS/PM) - https://gauzy.co

TypeScriptnpmGNU Affero General Public License v3.0hrsalary
gauzy.co
3.8k789
flexprice/flexprice

Usage-based pricing and billing for developers 🔓 Cloud or self-hosted ⚙️ No-code UI 💰 Realtime usage metering 🎟 Credits & top-ups 🔑 Control feature access

GoGo ModulesGNU Affero General Public License v3.0billingclickhouse
flexprice.io
3.6k187
hyochan/react-native-iap

In App Purchase module for React Native that confirms OpenIAP

TypeScriptnpmMIT Licensereact-nativeamazon
hyochan.github.io/react-native-iap
3.2k692
InvoicePlane/InvoicePlane

A self-hosted open source application for managing your invoices, clients and payments.

PHPPackagistOtherphpinvoices
invoiceplane.com
3.1k865
naiveHobo/InvoiceNet

Deep neural network to extract intelligent information from invoice documents.

PythonPyPIMIT Licenseinvoiceinvoice-management
2.7k412
laravel/cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

PHPPackagistMIT Licenselaravelstripe
laravel.com/docs/billing
2.5k741
openmeterio/openmeter

Metering and Billing for AI, API and DevOps. Collect and aggregate millions of usage events in real-time and enable usage-based billing.

GoGo ModulesApache License 2.0kafkametering
openmeter.io
2.1k196
uselotus/lotus

Open Source Pricing & Packaging Infrastructure

PythonPyPIMIT Licensepricingpython
uselotus.io
1.8k134
dj-stripe/dj-stripe

dj-stripe automatically syncs your Stripe Data to your local database as pre-implemented Django Models allowing you to use the Django ORM, in your code, to work with the data making it easier and faster.

PythonPyPIMIT Licensepythondjango
dj-stripe.dev
1.8k512