Lago: Open-Source Billing Platform for Usage-Based and Subscription Models
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
Lago is an open-source, AI-native billing platform designed for usage-based, subscription-based, and hybrid pricing models. It provides comprehensive infrastructure for metering, billing, and revenue management, enabling product-led companies to track and bill for any consumption. With its API-first approach and flexible deployment options, Lago offers a robust solution for modern billing needs.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
Lago is an open-source, AI-native billing platform designed for usage-based, subscription-based, and hybrid pricing models. It provides comprehensive infrastructure for metering, billing, and revenue management, enabling product-led companies to track and bill for any consumption. With its API-first approach and flexible deployment options, Lago offers a robust solution for modern billing needs.
Installation
To get started with Lago on your own infrastructure, you'll need Docker, Docker Compose, and Git. The self-hosted setup allows for full control over your data and environment.
Here's a quick start guide:
# Clone the repo
git clone --depth 1 https://github.com/getlago/lago.git
cd lago
# Generate RSA key
echo "LAGO_RSA_PRIVATE_KEY=\"$(openssl genrsa 2048 | openssl base64 -A)\"" >> .env
source .env
# Start Lago
docker compose up
After running these commands, the Lago UI will be accessible at http://localhost and the API at http://localhost:3000. For advanced configurations or if your server is not at localhost, refer to the official self-hosted documentation.
Examples
Lago is an API-first platform, meaning every feature is accessible via its powerful REST API. Developers can integrate Lago into their applications using official SDKs available for Node.js, Python, Ruby, and Go.
For practical implementation examples, including how to send events, manage subscriptions, and generate invoices, the official documentation provides detailed guides. You can also explore various billing templates that reproduce pricing models from leading companies, helping you quickly set up complex billing logic.
Why Use Lago
- Open-Source & Control: Gain full control over your billing data and infrastructure by self-hosting, or leverage the transparency of its open-source code with Lago Cloud.
- Comprehensive Billing Features: From real-time usage metering and automated invoicing to payment orchestration, entitlements, and revenue analytics, Lago covers the entire billing lifecycle.
- Payment-Agnostic: Integrates seamlessly with various payment gateways like Stripe, Adyen, and GoCardless, offering flexibility in your payment stack.
- API-First Design: Its robust REST API ensures easy integration and automation of billing processes within your existing systems.
- Security & Compliance: SOC 2 Type II certified, providing assurance for data security and operational integrity.
- AI-Native Capabilities: Includes Lago AI for billing intelligence and an MCP server for AI agents, catering to modern, data-driven businesses.
Links
- GitHub Repository: https://github.com/getlago/lago
- Official Website: https://getlago.com
- Documentation: https://doc.getlago.com
- API Reference: https://doc.getlago.com/api-reference
- Slack Community: https://www.getlago.com/slack
- Node.js SDK: https://github.com/getlago/lago-javascript-client
- Python SDK: https://github.com/getlago/lago-python-client
- Ruby SDK: https://github.com/getlago/lago-ruby-client
- Go SDK: https://github.com/getlago/lago-go-client
Related repositories
Similar repositories that may be relevant next.

Rachoon: A Self-Hostable Solution for Invoice Management
June 18, 2026
Rachoon is a modern, self-hosted invoicing platform designed for freelancers and small businesses. It offers a comprehensive suite of tools to effortlessly create, track, and manage invoices, providing users with full control over their billing processes. With features like client management, payment tracking, and customizable templates, Rachoon simplifies financial administration.

FOSSBilling: Free and Open-Source Billing and Client Management System
February 15, 2026
FOSSBilling is a free, open-source billing and client management system designed to automate invoicing, payments, and client communication for online service businesses. It is particularly popular with web hosting providers but also supports software licensing, digital downloads, and subscription services. This project offers an extensible architecture and a security-focused, responsive user interface.

OpenMeter: Real-time Usage Metering and Billing for Modern Applications
October 18, 2025
OpenMeter is an open-source platform designed for real-time metering and billing in AI, API, and DevOps contexts. It enables the collection and aggregation of millions of usage events, facilitating robust usage-based billing models. This tool provides essential infrastructure for companies looking to monetize their services based on actual consumption.
Source repository
Open the original repository on GitHub.