Back to services

Lago

Metering and usage-based billing.

View alternatives to Lago
Suggest edit
Open source
Self-hostable
AGPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Overview

Lago is a billing platform that supports subscriptions, usage-based billing, prepaid credits, and hybrid pricing. It ties actual product usage and contract terms to every customer invoice. It is offered as a hosted service, Lago Cloud, and can also be self-hosted. The open-source edition is licensed under AGPLv3, and the code is hosted on GitHub (getlago/lago). The official website lists customers including CoreWeave, Mistral AI, PayPal, Groq, Synthesia, and Laravel.

Key Features

  • Real-time usage metering: Bill on any usage metric. For AI products, input, output, and cached tokens are metered separately and attributed to specific customers.
  • Billing and invoicing: Subscription fees and usage fees can be combined on a single invoice, itemized line by line.
  • Prepaid credits and spend controls: Supports customer wallets, real-time credit balances, spending alerts, and automatic top-ups.
  • Quotes and orders: Generate quotes and orders directly from the product catalog, so negotiated terms convert straight into billing configuration.
  • Entitlements and quotas: Set which features each plan can use and how much usage it includes.
  • Collections management: Payment collection workflows adapted to hybrid billing models. An AI collections agent sends personalized reminders and retries failed charges.
  • Revenue analytics and revenue recognition: View revenue reports such as MRR, track recognized and deferred revenue on an accrual basis, and use AI to forecast usage-based revenue.
  • Lago Embedded: A white-label billing solution for platform products.
  • Lago AI: An AI assistant for finance and billing that lets you query invoices, subscriptions, and financial reports in natural language.

Target Users and Use Cases

  • AI companies: Charge by token, GPU, or credits, or combine them into hybrid plans.
  • SaaS and multi-product companies: Manage multiple products and pricing models in one system.
  • Enterprise customers: Need custom contracts, compliance controls, and private deployment.
  • Fintech and banking: Need real-time, flexible, auditable billing infrastructure.
  • IoT and telecom: Need complex metering and per-device billing.
  • Team division of labor: Engineering teams don't have to build a billing system from scratch, finance teams can automatically produce accurate invoices, and product teams can change pricing without waiting for an engineering slot.

Integrations and Developer Support

  • REST API with a public OpenAPI specification.
  • Official SDKs for JavaScript, Python, Ruby, and Go.
  • Signed webhooks, the Lago CLI (for example, create a plan with lago plans create --input @plan.json), and MCP.
  • The AI Agent SDK can collect usage directly from OpenAI, Anthropic, AWS Bedrock, Google Gemini, Mistral, Snowflake Cortex, Databricks AI Gateway, Cloudflare AI Gateway, Ramp Router, and more.
  • Can connect to payment, accounting, tax, CRM, and data systems.

Note: Lago is not a replacement for a payment processor. It calculates charges, generates invoices, and computes taxes, while the actual payment collection is handled by the payment provider you choose.

Deployment and Pricing

  • Lago Cloud: Officially hosted, so you don't need to operate the billing service yourself.
  • Self-hosted: Can be deployed on-premises, in a VPC, or in other environments. The open-source edition can be self-hosted for free, but when comparing total cost you should account for infrastructure and operations effort. For deployment steps, see the official self-hosting documentation and the GitHub repository.
  • Premium: Available for both Cloud and self-hosted, with pricing quoted on request.

Security and Compliance

  • SOC 2 Type II certified.
  • Supports role-based access control (RBAC).
  • Offers a public Trust Center.

Core Strengths

Subscriptions, usage, prepaid credits, and hybrid pricing are all handled in one system. The code is open source, so it can be inspected and self-hosted. Support for AI usage billing is fairly deep. The vendor positions it as an alternative to billing solutions such as Stripe Billing, Chargebee, and Zuora.