Back to directory

Business Software · Finance & Accounting

Lago

Open-source metering and billing for usage-based products

Lago is an API-first billing platform for usage-based, subscription, prepaid, and hybrid pricing. It is maintained by Lago under AGPL-3.0, can be self-hosted for commercial use subject to the license, and has a managed Lago Cloud option with quoted plans and a standard minimum annual commitment in the five figures.

Key facts

License
AGPL-3.0
Main language
Ruby, Go, JavaScript
Maintainer
Lago and its open-source community
First released
2022
Latest release
v1.55.0, October 7, 2026
GitHub stars
10.7k, October 2026
Hosted option
Lago Cloud, quoted plans with a standard minimum annual commitment in the five figures

What Lago is

Lago converts product usage into billable metrics, charges, credits, entitlements, invoices, payments, and revenue analytics. Anh-Tho Chuong and Raffi Sarkissian started the company after working at Qonto, and Lago entered Y Combinator's Summer 2021 batch. The repository was created in February 2022 and had 10,689 GitHub stars at the October 2026 cutoff. Lago says companies including Mistral AI, PayPal, Synthesia, Together AI, and Juni use its platform. The company raised $22 million across seed and Series A financing, including a $15 million Series A led by FirstMark. Lago maintains the main repository with an open-source community that includes contributors such as Vincent Pochet, IxDay, and Jdenquin.

How it works

A typical workflow begins when an application sends an event containing a transaction identifier, subscription reference, metric code, timestamp, and properties. Lago aggregates those events into billable metrics, then applies recurring, usage-based, prepaid, graduated, package, volume, percentage, or hybrid pricing. Plans can include allowances, minimum commitments, wallets, credit grants, and automatic top-ups. Lago generates invoices and credit notes, calculates taxes and currencies, and synchronizes payment status with connected providers. Engineers use REST APIs, OpenAPI, SDKs, webhooks, the CLI, or the MCP server, while finance and operations teams can manage plans, customers, usage, and invoices through the web interface. This keeps pricing definitions separate from the application that produces the usage events.

Architecture and recent releases

The main application is written in Ruby and JavaScript, with a Go events processor. Rails and React are used inside the application, but the principal programming languages are Ruby, Go, and JavaScript. PostgreSQL stores application data, Redis or Valkey supports queues and caching, and ClickHouse and Redpanda support selected analytics and streaming paths. Docker Compose provides the quickest deployment route, while official Helm charts target Kubernetes 1.26 or newer. Releases 1.54.0 and 1.55.0 in October 2026 updated Node and Ruby images, Redis Sentinel settings, event processing dependencies, and Docker CI. SDKs are published for JavaScript, Python, Ruby, and Go. Separate workers make queue configuration part of the deployment rather than an optional afterthought.

License and pricing

The core Lago product uses AGPL-3.0, which permits commercial use, modification, redistribution, and paid support. Modified server software offered over a network carries source-sharing obligations under that license. Lago Cloud is a managed commercial service with Starter, Pro, Business, and Enterprise plans. The published pricing description gives a standard minimum annual commitment in the five figures, while exact plan rates are quoted rather than listed. Self-hosting has no software subscription charge, although operators pay for infrastructure, support, security work, backups, and administration. Premium capabilities, formal support, and managed operation can require a separate commercial agreement. Payment processing remains a separate service and adds its own commercial charges.

Limitations and how it compares

Lago is a substantial billing system rather than a small subscription component. Production operation can involve PostgreSQL, Redis or Valkey, workers, PDF generation, object storage, and, for selected functions, ClickHouse and Redpanda. It is better suited to metered or hybrid pricing than to a short list of recurring plans. Kill Bill, Solidus, Medusa, and OpenMeter are open-source alternatives with different scopes, while Stripe Billing is the closest proprietary comparison. Chargebee and Recurly provide managed commercial services with less deployment work. Choose Lago when pricing logic, usage events, payment-provider choice, and control of billing data justify operating a larger service. Budget for the staff time required to operate those dependencies.

Main features

  • Usage metering. Ingest real-time events with dimensions, custom aggregations, batch processing, and idempotency through transaction identifiers.
  • Flexible pricing. Model recurring, usage-based, prepaid, graduated, package, volume, percentage, minimum-commitment, and hybrid charges.
  • Credits and entitlements. Manage allowances, wallets, grants, top-ups, usage alerts, and feature access alongside subscriptions and plans.
  • Invoices and payments. Generate invoices and credit notes, calculate taxes and currencies, and synchronize collection across payment providers.
  • Revenue analytics. Inspect usage, MRR, invoice, customer, and revenue measures through application workflows and analytics components.
  • API and agents. Automate billing with REST, OpenAPI, SDKs, webhooks, CLI commands, and an MCP server for compatible agents.

Self-hosting Lago

The documented quick start uses Docker and Docker Compose, with Git required for a source-based deployment. Official Helm charts support Kubernetes 1.26 or newer. A production deployment generally requires PostgreSQL 15 or newer with pg_partman, Redis 7.x or Valkey 7.2+, and backups. External object storage such as S3 is used when required by the deployment. Selected analytics functions require ClickHouse 25.6 or newer, while streaming features require Redpanda 25.2 or newer. The Compose stack includes front, API, workers, clock, PostgreSQL, Redis, and PDF containers. Use tagged images, configure encryption keys, TLS, SMTP, storage, and upgrade procedures, and test database and object-storage restoration before production changes. The hosted service is winding down, making operational readiness especially important for self-hosted users.

Strengths

  • Handles usage, subscription, prepaid, and hybrid pricing in one model.
  • Payment processing remains separate from the product catalog.
  • REST APIs and SDKs cover application-driven billing workflows.
  • Self-hosting keeps billing data under operator control.

Drawbacks

  • Production operation needs several stateful services.
  • Cloud pricing is quote-based with a high standard commitment.
  • AGPL obligations need review for modified hosted deployments.

What teams replace with it

Teams usually evaluate Lago when they want to move off Stripe Billing, Chargebee, Recurly, Orb.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Lago

Frequently asked questions

Is Lago free to use?

The open-source Lago product is free to self-host under AGPL-3.0. You still pay for servers, databases, storage, monitoring, and administration. Lago Cloud is a separate managed service with quoted Starter, Pro, Business, and Enterprise plans. Its pricing description gives a standard minimum annual commitment in the five figures, while partner introductions can be below that level. Cloud and self-hosted deployments have different operational costs, and the hosted service is winding down.

Can Lago be used commercially?

Yes. AGPL-3.0 permits commercial use, modification, redistribution, and paid support. It also requires source access for modified server software offered over a network under the license terms. A company should review how it changes, combines, and exposes Lago before choosing a deployment model. The README's noncommercial and commercial-license statement is separate from the exact AGPL-3.0 license. Premium Lago capabilities, formal support, and managed services can have separate commercial terms.

What does a Lago deployment require?

Docker and Docker Compose are the easiest starting point, and official Helm charts support Kubernetes. Production deployments generally use PostgreSQL 15 or newer, Redis 7.x or Valkey 7.2+, persistent storage, and backups. ClickHouse and Redpanda are needed for selected analytics and streaming functions. The stack also includes workers, a clock process, PDF generation, SMTP configuration, encryption keys, and optional S3-compatible storage. Operators should plan upgrades and restoration testing.

How does Lago compare with Stripe Billing?

Lago is an inspectable, self-hostable billing engine with an AGPL license, REST APIs, and payment-provider orchestration. Stripe Billing is proprietary and managed inside Stripe's broader payments service. Lago suits teams that need control over data, pricing logic, and deployment. Stripe suits teams that prefer managed infrastructure and direct access to Stripe's payment network. Lago therefore exchanges operating work for more control, while its hosted option is winding down.

Does Lago support AI usage billing?

Yes. Lago can model tokens, model input and output, cached or reasoning usage, tool calls, GPU, CPU, and other custom events through billable metrics and pricing rules. Its API, SDKs, webhooks, CLI, and MCP server support automated workflows. Teams still need to design event idempotency, pricing changes, payment collection, data retention, access controls, and operational monitoring around those billing flows. Self-hosting may be the relevant deployment path as hosted service operations wind down.

Similar projects to compare

Sources

Last updated 2026-10-22.