Lago logo

Lago

Open-source metering and usage-based billing API for SaaS products

10k Docker AGPL-3.0 7 days ago

Overview

Lago is an open-source billing infrastructure for usage-based and hybrid pricing models. It provides metering, aggregation, subscription management, and invoice generation via a REST API and webhooks. Companies embed it to replace Stripe Billing or Chargebee for complex, event-driven pricing. The stack is Ruby on Rails + PostgreSQL + Redis, deployed via Docker Compose, with a managed cloud option available.

Where it falls short of QuickBooks

  • Developer-oriented billing API, not a personal finance or budgeting tool for end-users
  • No AR/AP or general-ledger accounting; revenue recognition requires integration with an ERP
  • Tax calculation engine is basic; real-world tax compliance needs third-party integration (e.g. Avalara)
  • Dunning workflows and payment retries are less mature than Chargebee or Stripe Billing

We list the gaps honestly so you can decide if the trade-off is worth owning your data.

Tags

billing
usage-based
metering
subscriptions
api
Maintain Lago?

Claim this listing to keep it accurate, add a deploy template, or feature it on relevant pages.

Show off your self-host difficulty score

Embed the Lago difficulty badge in your README — it links back here.

Self-host difficulty badge← add this to your README
[![Self-host difficulty](https://openreplace.com/api/badge/lago)](https://openreplace.com/lago)

Similar open-source projects

Other self-hostable tools in the same space worth comparing.

Open payment switch — route traffic across 50+ processors with one API

43k Docker Apache-2.0 today
4/5
Lago vs HyperSwitch

Local-first zero-sum budgeting app with optional cross-device sync

27k Nodejs MIT today
2/5
Lago vs Actual

Self-hosted personal finance manager with budgets, rules, and bank import

24k PHP AGPL-3.0 today
3/5
Lago vs Firefly III

Double-entry accounting software for small businesses and freelancers

9.9k PHP BUSL-1.1 today
3/5
Lago vs Akaunting