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

Midday

All-in-one business stack for freelancers and solo founders

Midday combines invoicing, time tracking, automatic receipt-to-transaction matching, file storage, financial exports and an AI assistant for freelancers, contractors, consultants and solo entrepreneurs.

  • Invoicing with online payment
  • Live time tracking
  • Automatic receipt and transaction matching
TypeScriptWebDetails →
★ 15.2k⟳ 5 months agoAGPL-3.0
Open Source Alternative to:ClockifyEverhour+8

Invoice Ninja

Source-available invoicing, quotes, expenses and time-tracking app built with Laravel

Invoicing application for freelancers and small businesses covering invoices, quotes, online payments, expenses, projects and time tracking. Available hosted or self-hosted, with a client portal and mobile and desktop apps

  • Invoices and quotes with e-signature approval
  • Online payments via Stripe, PayPal, Square, GoCardless
  • Recurring invoices and auto-billing
PHPLinux, macOS, WindowsDetails →
★ 10.6k⟳ 5 days agoSource-available
Alternative to:ClockodoFreshBooks+4

Polar

Usage-based billing and merchant-of-record platform for AI software

Billing platform for AI and software companies covering usage metering, subscriptions, seats, credits and checkout. Acts as merchant of record, handling sales tax, VAT, receipts and payouts.

  • Event-based usage metering
  • Real-time meters per customer
  • Subscriptions with proration and dunning
PythonWeb, CLIDetails →
★ 10.5k⟳ todayApache-2.0
Open Source Alternative to:ChargebeePaddle+2

Akaunting

Free online accounting software for small businesses and freelancers

Web-based accounting software for small businesses and freelancers. It covers invoicing, expense tracking and bookkeeping, and can be self-hosted or used online. Extra features come from an app store.

  • Invoicing
  • Expense tracking
  • Cash flow overview
PHPDetails →
★ 10.4k⟳ 2 days agoSource-available
Alternative to:FreeAgentFreshBooks+9

Crater

Open-source invoicing app for tracking expenses, payments and estimates

Crater is an open-source web and mobile app for creating invoices and estimates and tracking expenses and payments. The web app uses Laravel and Vue; the mobile apps use React Native.

  • Invoice and estimate creation
  • Expense and payment tracking
  • Recurring invoices
PHPWeb, DockerDetails →
★ 8.4k⟳ 3 years agoAGPL-3.0
Finance & AccountingNo commits in 18+ months
Open Source Alternative to:myBillBookQuickBooks Online+2

Flexprice

Open-source usage-based billing and metering platform for SaaS and AI companies

Flexprice is a billing and monetization platform for usage-based, credit-based, seat-based and hybrid pricing. It meters events in real time, manages credits and entitlements, and generates invoices. Self-hosted or cloud

  • Real-time usage metering
  • Prepaid and promotional credit grants
  • Automatic credit top-ups and expiry
GoWeb, Docker, CLIDetails →
★ 6.9k⟳ yesterdayAGPL-3.0
Open Source Alternative to:ChargebeePaddle+2