Cloudstation

Lago

Open-Source Usage-Based Billing

Lago

Handle complex billing without expensive Stripe Billing or Chargebee. Lago lets you charge for usage, subscriptions, or both - perfect for SaaS companies that need flexible pricing without revenue-based fees.

Overview

PropertyValue
CategoryFinance
Deployments9
Tech StackRuby, PostgreSQL
TagsUsage-based pricing, SaaS billing

Features

  • No revenue share - Open source means no percentage-based pricing like other billing platforms
  • Any pricing model - Usage-based, subscriptions, hybrid, prepaid credits - build what you need
  • Real-time metering - Track API calls, compute usage, or any metric instantly
  • Automatic invoicing - Generate and send invoices automatically every billing cycle
  • Multiple payment gateways - Connect Stripe, GoCardless, Adyen, and more
  • Coupons & discounts - Run promotions and special offers easily
  • Self-host ready - Complete control over your billing data and infrastructure
  • API-first - Integrate deeply with your existing systems

Use Cases

  • SaaS companies - Bill customers based on actual usage (API calls, seats, storage, etc.)
  • API businesses - Monetize your API with pay-per-call or tiered pricing
  • Cloud services - Charge for compute, bandwidth, or other metered resources
  • B2B SaaS - Handle complex enterprise pricing with custom contracts
  • Growing startups - Start simple, scale to complex pricing without switching platforms
  • Platform businesses - Built by Mistral AI, Algolia, and other scale companies

Quick Deploy

Deploy this template with one click on CloudStation:

https://app.cloud-station.io/template-store/lago?deploy=true

Configuration

Key environment variables for Lago:

VariableDescription
DATABASE_URLPostgreSQL connection string
REDIS_URLRedis connection URL
SECRET_KEY_BASERails secret key
LAGO_API_URLAPI endpoint URL

This template is maintained by CloudStation and receives regular updates.