{"name":"Lago: Open-Source Billing Platform for Usage-Based and Subscription Models","description":"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.","github":"https://github.com/getlago/lago","url":"https://osrepos.com/repo/getlago-lago","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/getlago-lago","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/getlago-lago.md","json":"https://osrepos.com/repo/getlago-lago.json","topics":["billing","usage-based-billing","fintech","open-source","metering","subscriptions","payments","Go"],"keywords":["billing","usage-based-billing","fintech","open-source","metering","subscriptions","payments","Go"],"stars":null,"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.","content":"## Introduction\n\nLago 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.\n\n## Installation\n\nTo 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.\n\nHere's a quick start guide:\n\nbash\n# Clone the repo\ngit clone --depth 1 https://github.com/getlago/lago.git\ncd lago\n\n# Generate RSA key\necho \"LAGO_RSA_PRIVATE_KEY=\\\"$(openssl genrsa 2048 | openssl base64 -A)\\\"\" >> .env\nsource .env\n\n# Start Lago\ndocker compose up\n\n\nAfter 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](https://doc.getlago.com/guide/lago-self-hosted/docker#configuration).\n\n## Examples\n\nLago 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.\n\nFor practical implementation examples, including how to send events, manage subscriptions, and generate invoices, the [official documentation](https://doc.getlago.com) provides detailed guides. You can also explore various [billing templates](https://getlago.com/docs/templates/introduction) that reproduce pricing models from leading companies, helping you quickly set up complex billing logic.\n\n## Why Use Lago\n\n*   **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.\n*   **Comprehensive Billing Features**: From real-time usage metering and automated invoicing to payment orchestration, entitlements, and revenue analytics, Lago covers the entire billing lifecycle.\n*   **Payment-Agnostic**: Integrates seamlessly with various payment gateways like Stripe, Adyen, and GoCardless, offering flexibility in your payment stack.\n*   **API-First Design**: Its robust REST API ensures easy integration and automation of billing processes within your existing systems.\n*   **Security & Compliance**: SOC 2 Type II certified, providing assurance for data security and operational integrity.\n*   **AI-Native Capabilities**: Includes Lago AI for billing intelligence and an MCP server for AI agents, catering to modern, data-driven businesses.\n\n## Links\n\n*   GitHub Repository: [https://github.com/getlago/lago](https://github.com/getlago/lago)\n*   Official Website: [https://getlago.com](https://getlago.com)\n*   Documentation: [https://doc.getlago.com](https://doc.getlago.com)\n*   API Reference: [https://doc.getlago.com/api-reference](https://doc.getlago.com/api-reference)\n*   Slack Community: [https://www.getlago.com/slack](https://www.getlago.com/slack)\n*   Node.js SDK: [https://github.com/getlago/lago-javascript-client](https://github.com/getlago/lago-javascript-client)\n*   Python SDK: [https://github.com/getlago/lago-python-client](https://github.com/getlago/lago-python-client)\n*   Ruby SDK: [https://github.com/getlago/lago-ruby-client](https://github.com/getlago/lago-ruby-client)\n*   Go SDK: [https://github.com/getlago/lago-go-client](https://github.com/getlago/lago-go-client)","metrics":{"detailViews":4,"githubClicks":1},"dates":{"published":null,"modified":"2026-04-25T23:17:22.000Z"}}