All open source
Open SourceCommerce7k

Lago

Open-source metering and usage-based billing engine for modern SaaS.

Lago is an open-source billing platform built in Ruby and TypeScript, focused on usage-based, hybrid, and subscription pricing. It ingests usage events at scale, applies pricing plans, and produces invoices, with a REST API and integrations for tools like Stripe, making it a self-hosted alternative to closed metering services.

Repository

getlago/lago

Language

Ruby

What you'd build with it

  • Metering API or token usage and turning events into accurate invoices
  • Modeling complex hybrid pricing (seats plus usage) without building billing from scratch
  • Feeding AI-product consumption data into a self-hosted billing pipeline

Tags

billingusage-basedmeteringsaas