Lago API

Lago — open-source, self-hostable usage-based billing and metering platform for SaaS companies, with a REST API for ingesting usage events, managing plans, and generating invoices.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Other lago billing usage-based metering open-source self-hosted subscriptions
⚙ Agent Friendliness
64
/ 100
Can an agent use this?
🔒 Security
84
/ 100
Is it safe for agents?
⚡ Reliability
80
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
88
Error Messages
85
Auth Simplicity
88
Rate Limits
82

🔒 Security

TLS Enforcement
100
Auth Strength
80
Scope Granularity
72
Dep. Hygiene
85
Secret Handling
82

AGPL open source — fully auditable. Self-hosted gives complete data control. Cloud GDPR compliant. No SOC2 yet. API keys scoped to organization. Idempotency keys prevent billing duplication.

⚡ Reliability

Uptime/SLA
80
Version Stability
80
Breaking Changes
78
Error Recovery
82
AF Security Reliability

Best When

Your agent product has usage-based pricing (per API call, per token, per GB) and needs flexible metering, plan management, and invoicing without vendor lock-in.

Avoid When

You have simple fixed-price subscriptions — use Stripe Billing directly for straightforward recurring payments.

Use Cases

  • Agents ingesting usage events in real time for metered billing — API calls, compute minutes, tokens consumed
  • Billing automation — agents creating subscriptions, applying discounts, and generating invoices programmatically
  • Custom pricing model implementation — agents building credit-based, seat-based, or hybrid billing via Lago's flexible plan API
  • Usage analytics — agents querying Lago for customer consumption data to power usage dashboards
  • Dunning automation — agents handling failed payment flows and subscription lifecycle management via webhooks

Not For

  • Simple fixed-price subscriptions — Stripe Billing is simpler for standard subscription models
  • Teams not needing usage-based or complex pricing — overkill without metering requirements
  • Non-technical teams — Lago requires engineering integration for event ingestion pipeline

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
Yes

Authentication

Methods: bearer_token
OAuth: No Scopes: No

API key from Lago settings. Bearer token authentication. Organization-scoped. Self-hosted instances manage their own API keys.

Pricing

Model: open-source
Free tier: Yes
Requires CC: No

Open source under AGPL — self-hosted is completely free. Cloud adds managed hosting. Revenue share model aligns Lago's success with yours.

Agent Metadata

Pagination
cursor
Idempotent
Full
Retry Guidance
Documented

Known Gotchas

  • Usage events are processed asynchronously — ingest endpoint returns 200 immediately; billing reflects events after processing lag
  • Billable metrics must be created before events can be associated — configuration before ingestion
  • Invoice generation is triggered by billing period end — not real-time; agents cannot force immediate invoicing easily
  • External IDs (customer, subscription) are immutable after creation — plan naming carefully
  • Self-hosted requires PostgreSQL, Redis, and storage bucket — Docker Compose provided but ops overhead exists

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Lago API.

$99

Scores are editorial opinions as of 2026-03-06.

5178
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered