Lago

Platform

Open-source metering and billing engine for usage-based and hybrid pricing

Price
Free, open source; Cloud by quote
Access
API key

About

Open-source billing platform that turns usage events into invoices for usage-based, subscription and hybrid pricing. Self-host the AGPL-3.0 code with Docker, or use Lago Cloud in the US or EU. Payments go through connected providers such as Stripe or Adyen.

What you can do with it

  • Ingest usage events and aggregate them into billable metrics
  • Price plans with usage, seats, prepaid credits, commitments and fixed fees
  • Generate invoices and show customers their current usage in real time

Get started

  1. Self-host with Docker Compose or sign up for Lago Cloud
  2. Create an API key
  3. Create a billable metric, a plan and a subscription

Example

curl -X POST https://api.getlago.com/api/v1/events \
  -H "Authorization: Bearer $LAGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"event": {"transaction_id": "txn_0001", "external_subscription_id": "sub_1234567890", "code": "api_calls", "properties": {"custom_field": 12}}}'

Details

Hosting
Hosted service, Self-hosted
Available in
Worldwide
Official SDKs
JavaScript/TypeScript, Python, Ruby, Go
MCP server
Local

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .