---
title: Lago — Open-source billing infrastructure
description: Agent-readable overview of Lago's billing platform, API, documentation, SDKs, and MCP server.
canonical: https://getlago.com/
last-updated: 2026-08-21
---

# Lago

Lago is the open-source billing platform for usage-based, subscription-based, and hybrid pricing. It is built for AI, SaaS, fintech, IoT, and infrastructure companies that need flexible, high-volume billing without vendor lock-in. Teams can use Lago Cloud or deploy the same AGPLv3 codebase on their own infrastructure.

## What Lago does

Lago combines real-time usage metering, subscriptions, hybrid pricing, prepaid credits, entitlements, invoicing, payment orchestration, and revenue analytics in one API-first platform. It processes up to 1,000,000 billing events per second and supports self-serve and enterprise contract workflows. Lago is not a payment processor; it integrates with payment providers such as Stripe, Adyen, GoCardless, and Cashfree.

## When to use Lago

Use Lago when an application or AI agent needs to meter product usage, manage subscriptions and entitlements, calculate usage-based or hybrid charges, generate invoices, manage prepaid credits, or reconcile billing data through an API. Use the REST API or an official SDK for application integrations, signed webhooks for event-driven workflows, and the MCP server for AI-assisted billing operations.

## Core resources

- [Lago homepage](https://getlago.com/)
- [Pricing](https://getlago.com/pricing)
- [Customer stories](https://getlago.com/customers)
- [Security](https://getlago.com/security)
- [Open-source repository](https://github.com/getlago/lago)

## Developer and agent resources

- [Lago developer hub](https://getlago.com/developers)
- [Documentation](https://getlago.com/docs/welcome)
- [API reference](https://getlago.com/docs/api-reference/intro)
- [OpenAPI 3.1 specification](https://getlago.com/api/openapi.yaml)
- [API standards and authentication](https://getlago.com/docs/api-reference/api-standards)
- [API key guide](https://getlago.com/docs/guide/security/api-keys)
- [Webhook format and signatures](https://getlago.com/docs/api-reference/webhooks/format---signature)
- [MCP server guide](https://getlago.com/docs/guide/ai-agents/mcp-server)
- [Agent discovery MCP endpoint](https://getlago.com/mcp)
- [Full documentation MCP endpoint](https://docs.getlago.com/mcp)
- [MCP server card](https://getlago.com/.well-known/mcp/server-card.json)
- [Agent plugin and skill source](https://github.com/getlago/getlago.com)
- [JavaScript and TypeScript SDK](https://www.npmjs.com/package/lago-javascript-client)
- [Python SDK](https://pypi.org/project/lago-python-client/)
- [Ruby SDK](https://rubygems.org/gems/lago-ruby-client)
- [Go SDK](https://pkg.go.dev/github.com/getlago/lago-go-client)
- [Python Agent SDK](https://github.com/getlago/lago-agent-sdk-python)
- [Lago Agent Toolkit MCP](https://github.com/getlago/lago-agent-toolkit)
- [Testing and sandbox environments](https://getlago.com/sandbox.md)
- [Full LLM navigation index](https://getlago.com/llms.txt)
- [XML sitemap](https://getlago.com/sitemap.xml)

## Main capabilities

- Usage metering for API calls, tokens, compute, storage, seats, and custom dimensions.
- Subscription, usage-based, prepaid, and hybrid pricing models.
- Automated invoicing, taxes, credit notes, multi-currency billing, and payment collection.
- Entitlements and feature access tied directly to plans and subscriptions.
- Revenue analytics, audit logs, webhooks, and integrations with finance and CRM systems.
- Cloud, VPC, on-premise, and self-hosted deployment options.
