qmetrics.net

Lago

Open-source usage-based billing and metering platform with API

Lago screenshot

Lago is an API-first billing platform that meters usage events, applies pricing and entitlements, generates invoices, and collects payments. It is available as a hosted cloud service or can be self-hosted.

Overview

Lago sits between product usage and revenue. Applications send events, which become billable metrics. Lago then applies pricing and entitlements, produces invoices, and collects payments. It is aimed at AI products, so it can meter input, output and cached tokens, compute such as GPU and CPU, API calls, seats, and custom events.

Pricing models include usage-based, recurring, prepaid, percentage, graduated, package, volume, minimum-commitment and hybrid charges. Customers can have subscriptions with allowances and overages, prepaid credit wallets with automatic top-ups, usage alerts, credit notes, taxes, multiple currencies and entities, and customer-specific overrides for negotiated contracts. Event ingestion is idempotent by transaction id, and a batch with an invalid event is rejected whole.

Lago is headless. You use it through a REST API, SDKs, webhooks, a CLI and an MCP server, and it also has a web UI for product and finance teams. A read-only Finance Assistant answers questions about billing and revenue in plain language, and a Billing Assistant is offered as a Premium option. Payment processing is kept separate from metering, with connections to Stripe, Adyen and GoCardless. Other integrations cover CRM, accounting, tax, data warehouses and cloud marketplaces.

You can use it as Lago Direct to bill your own customers, or as Lago Embedded to offer white-label billing inside your platform. Lago Cloud is the managed option in US or EU regions. You can also self-host it with Docker Compose, or with Helm charts for larger deployments with dedicated workers. It exposes Prometheus metrics. Self-hosted instances send basic product analytics by default, and you can opt out.

Key features

  • Real-time event metering with idempotent ingestion
  • Usage, graduated, package, volume and hybrid pricing
  • Prepaid credit wallets with automatic top-ups
  • Subscriptions, invoices, credit notes and taxes
  • Entitlements, allowances and usage alerts
  • Payment provider orchestration and dunning
  • MRR and revenue analytics
  • REST API, SDKs, CLI, webhooks and MCP server

Use cases

  • Metering and billing AI token usage
  • Usage-based billing for APIs and compute
  • Managing subscriptions with overages and minimum commitments
  • Prepaid credit and top-up billing
  • Offering white-label billing inside a platform

Does the same job as

Lago doesn't name these products itself, but its own description shows it does the same job.

Tags

Compare Lago

Similar software

ERPNext

Open-source ERP for accounting, inventory, manufacturing, sales and projects

ERPNext is an open-source ERP system that covers accounting, order management, manufacturing, asset management, projects, CRM, point of sale and support in one application. It can be self-hosted or run on managed hosting.

★ 41.7k⟳ todayGPL-3.0
Open Source Alternative to:FreeAgentFreshBooks+16

Bigcapital

Open-source accounting and inventory software for small businesses

Bigcapital is open-source accounting and inventory software covering invoicing, expenses, bank reconciliation and financial reports. It runs as a managed cloud service or can be self-hosted with Docker.

★ 4.3k⟳ todayAGPL-3.0
Open Source Alternative to:FreeAgentFreshBooks+8

PNLCS

Self-hosted hosting billing and client portal

PNLCS covers hosting sales, invoicing, domains, SSL, tickets, and in-portal hosting management. It mirrors familiar WHMCS-style workflows as open, self-hosted software.

★ 141⟳ yesterdayMIT
Open Source Alternative to:cPanelWHMCS

Odoo

Open-source web business apps and integrated ERP suite

Odoo is a suite of web-based open source business applications. Install individual apps or combine them into a full ERP for CRM, sales, inventory, and more.

★ 56.2k⟳ todayLGPL-3.0
CRM & SalesSelf-hostable
Open Source Alternative to:AttioBreakcold+14

ruoyi-vue-pro

Spring Boot and Vue modular enterprise admin platform

Yudao ruoyi-vue-pro is a full-stack rapid development platform with a Spring Boot backend and Vue admin UIs. It bundles RBAC, multi-tenant SaaS, workflows, and many optional business modules.

★ 40.7k⟳ 4 days agoMIT

ELADMIN

Spring Boot and Vue separated backend administration platform

ELADMIN is a front-end and back-end separated administration console built with Spring Boot, JPA, Spring Security, Redis, and Vue. RBAC governs permissions with dictionary and data-scope controls.

★ 21.9k⟳ 26 days agoApache-2.0
ERP & OperationsSelf-hostable