# getlago/lago

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

Repository: https://github.com/getlago/lago
Canonical: https://ross.abutalabs.com/products/lago
Homepage: https://www.getlago.com
Language: Go
License: AGPL-3.0
License Family: copyleft
Topics: billing, fintech, invoices, payments, usage-based-billing, subscriptions, metering, pricing, analytics, open-source, pricing-data-science, self-hosted, clickhouse, react, ruby, go, events, ingestion
Last push: 2026-08-26T15:00:39+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 1647, "days_push": 7, "days_rel": 7, "gap_med": 7, "n_releases_24m": 76}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10411, forks 728 (observed 2026-08-28T04:10:41.913861+00:00)

## What it is
Lago is an open-source metering and usage-based billing platform that ingests usage events, manages subscriptions and pricing, and generates invoices, payments, and revenue analytics. It exposes a JSON HTTP API with client SDKs, a no-code UI, and can be self-hosted via Docker or used as a cloud service.

## Use cases
- meter API calls and bill customers by usage
- implement usage-based or hybrid subscription pricing for an AI product
- track token and compute consumption and turn it into invoices
- manage prepaid credits and entitlements for SaaS plans
- self-host a billing system instead of using Stripe Billing
- integrate billing with Stripe, NetSuite, Salesforce, or a data warehouse
- iterate on pricing models without engineering work

## When to choose
- you need usage-based, credit-based, or hybrid subscription billing with full control
- you want an open-source, self-hostable alternative to proprietary billing vendors
- you bill AI workloads (tokens, compute, API calls) at high event volume
- you need payment-agnostic orchestration and integrations with ERPs, CRMs, and tax tools

## When to avoid
- you only need simple fixed-price invoicing with no usage component
- you cannot comply with the AGPL-3.0 license in your product
- you want a fully managed billing service and prefer not to operate infrastructure
- you need a lightweight billing library embedded in your app rather than a standalone platform

## Facets
- artifact type: service
- maturity: active
- function: api-framework, analytics, etl, webhook, self-hosted
- domain: fintech, apis, analytics, self-hosted, e-commerce, artificial-intelligence
- platform: self-hosted, cloud, go, ruby, python
- tags: billing, usage-based-billing, metering, subscriptions, invoicing, payments, revenue-analytics, ai-billing, open-source, docker, web-server, nodejs

## Member repositories
- getlago/lago (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:41.913861+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:03.469066+00:00, confidence not recorded.
  - readme: https://github.com/getlago/lago (fetched 2026-08-28T04:10:41.913861+00:00, sha b12d860d02c3)
  - homepage: https://www.getlago.com (fetched 2026-08-29T08:18:18.410872+00:00, sha 9d5ac9690208)
  - site_page: https://getlago.com/docs/api-reference/intro (fetched 2026-08-29T08:18:18.421786+00:00, sha ef91c597565d)
  - site_page: https://getlago.com/docs/changelog/product (fetched 2026-08-29T08:18:18.423961+00:00, sha 199767d5f056)
  - site_page: https://getlago.com/docs/welcome (fetched 2026-08-29T08:18:18.426704+00:00, sha da639a64cfd1)
  - site_page: https://getlago.com/platform/usage-metering (fetched 2026-08-29T08:18:18.413987+00:00, sha ff6752e3cc5e)
  - site_page: https://getlago.com/platform/integrations (fetched 2026-08-29T08:18:18.416451+00:00, sha 8c89250f525b)
  - site_page: https://getlago.com/solutions/teams/product (fetched 2026-08-29T08:18:18.418355+00:00, sha 6912454c5e8f)
  - site_page: https://getlago.com/solutions/use-cases/hybrid-plans (fetched 2026-08-29T08:18:18.420029+00:00, sha 78f217596526)
  - site_page: https://getlago.com/pricing (fetched 2026-08-29T08:18:18.428275+00:00, sha 103892bc5104)
- Data as of 2026-08-30T08:39:29.467469+00:00.
