Money · Edition No. 11 · 5 Sep 2026

getlago/lago

Open-source metering and usage-based billing API — counting what someone used and turning it into a number they owe.

← MoneyRead the whole edition →

10.5k stars · AGPL-3.0 · v1.52.1 (2026-08-27) · Track this in Scout

Open-source metering and usage-based billing API — counting what someone used and turning it into a number they owe.

▶Repo detailsthe review · specs · pros & cons

What it is

An open-source metering and billing API: it ingests usage events, aggregates them, applies your pricing plan and produces invoices. It covers subscriptions, prepaid wallets, credits, coupons and revenue analytics, and hands the actual card charge off to Stripe or another processor.

What it is good for. When the real cost of a product is per use — model calls, embeddings, storage — a flat monthly price either loses money on heavy users or overcharges light ones, and there is no way to tell which until the usage is metered. Lago is what lets you charge per map, per document or per thousand messages without hand-writing invoicing logic, prorations and tax lines. It also solves the thing that actually sinks usage-based pricing in practice: showing a customer, mid-month, what they have spent so far, before the invoice surprises them. And it is the one entry here that lets you change your pricing model later without a data migration, which for a product still finding its shape matters more than the billing does.

Stars10.5k
LicenceAGPL-3.0
Latestv1.52.1 (2026-08-27)checked 7 Sep 2026
Written inGo
NeedsDocker Compose, Docker and Redis
RunsSelf-hosted on your own server
Setup effort
4 / 5
Payoff
4 / 5
Good
  • Genuinely usage-based — metering, aggregation, wallets and credits — rather than subscriptions with a usage bolt-on.
  • Ships roughly weekly; v1.52.1 landed on 27 August, nine days before this report.
  • API-first, so FastAPI talks to it directly and there is no SDK lock-in.
Watch for
  • AGPL-3.0: fine to run for your own business, but read it before linking anything into a distributed product.
  • The production topology is Rails plus Postgres, Redis, Kafka and ClickHouse. This is not a small container on a shared box.
  • Usage-based pricing is a product decision, not a plugin. Getting the metering model wrong is expensive to unwind once customers are on it.
Screenshots
getlago/lago: GitHub preview cardgetlago/lago: Screenshot 1getlago/lago: Screenshot 2getlago/lago: Screenshot 3

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.