selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Lago logo

Self-host Lago

v1.57.0

Open-source usage-based billing and metering platform

ReleaseOpen CoreAGPL-3.0
docker run -d --name lago -p 80:80 -p 3000:3000 getlago/lago:latest
Updated4 days ago
LanguageGo
Setup difficultyAdvanced
Stars
10 789
Ports
3000 (API back-end (API_PORT, mapped as ${API_PORT:-3000}:3000)), 80 (Front-end application (FRONT_PORT, mapped as ${FRONT_PORT:-80}:80))
Docker
getlago/api

What is Lago?

Lago alternatives

All self-hosted alternatives to Chargebee → All self-hosted alternatives to Stripe Billing → All self-hosted alternatives to Zuora →

Should you self-host Lago?

Lago scores 72/100 on selfhost.directory (how scoring works) and ranks #1 of 13 in Billing. It has 10 789 GitHub stars, +128 in the last 30 days.

It shipped 20 stable releases in the past year. The latest, v1.57.0, came out on 5 November 2026. New versions land roughly every 2 weeks.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is meteroid (55/100, 1 357 stars). Lago scores higher overall. See Lago vs meteroid side by side.

Features

  • AI billing assistantsFinance Assistant is beta / early access; Billing Assistant is a Premium beta available on request.
  • Customer billing portalOffered as a Lago Premium feature.
  • Dedicated background workers
  • Entitlements
  • Flexible charge pricing models
  • Payment provider orchestration
  • PDF invoice generation
  • Prepaid credits and wallets
  • Prometheus Metrics
  • REST API and SDKs
  • Revenue and MRR analyticsThe pricing page lists the built-in analytics dashboard under Lago Premium.
  • Role-based Access ControlListed among Lago Premium features.
  • Subscriptions, invoices and credit notes
  • Usage metering from events
  • Webhooks

Lago README

How to install Lago

Install Lago with Docker

Docker on your machine; Docker Compose and Git also listed as requirements
Environment variables
LAGO_RSA_PRIVATE_KEY, SECRET_KEY_BASE, LAGO_FRONT_URL, LAGO_API_URL
docker run -d --name lago -p 80:80 -p 3000:3000 getlago/lago:latest

You can now open your browser and go to http://localhost to connect to the application. Just after signing up, Lago's API is exposed at http://localhost:3000.

Signing up to create your organization is mandatory on a fresh instance.

How to configure Lago

  • LAGO_API_URLhttp://localhost:3000URL of the Lago back-end application
  • LAGO_FRONT_URLhttp://localhostURL of the Lago front-end application. Used for CORS configuration
  • DATABASE_URL(Without docker compose) Full url to the postgres server
  • SECRET_KEY_BASEyour-secret-key-base-hex-64Secret key used for session encryption
  • LAGO_RSA_PRIVATE_KEYPrivate key used for webhook signatures

Lago releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Does Lago replace my payment processor?

No. Lago works out the charges, produces the invoice and applies tax, then hands collection to processors such as Stripe, Adyen or GoCardless.

How is Lago different from Stripe Billing, Chargebee, or Zuora?

Lago is open source, so teams can read the code, host it themselves and extend it, instead of depending on a closed vendor platform.

How much does Lago cost?

Self-hosting the open-source edition is free; Lago Premium is not publicly priced and is discussed per deployment when you book a demo.

Can teams run Lago on their own infrastructure?

Yes, the AGPLv3-licensed code can be self-hosted, or you can run the managed Lago Cloud service instead.

How do applications integrate with Lago?

Applications talk to Lago over its REST API and official JavaScript, Python, Ruby and Go SDKs, and receive signed webhooks; the public OpenAPI spec documents each path.

What is Lago?

Lago is an open-source billing platform covering usage-based, subscription, prepaid and hybrid pricing, connecting product usage and commercial terms to customer invoices.

More in Billing

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…