Lago has been able to follow the pace of our releases and has allowed us to focus on what we do best.

Lago for AI agents
Start with the CLI to configure billing and verify usage with your coding agent. Lago Cloud runs the billing service; your application connects through an SDK or API. OpenAPI supplies the exact schemas.
The CLI is the starting point for terminal work. OpenAPI describes the API; SDKs connect your application. MCP supports assistants with connected tools. The Lago plugin is optional.
Start here when your agent has terminal access. Configure billing, inspect JSON results, and verify usage on Lago Cloud or your self-hosted instance.
Start with the CLI
Give your assistant connected tools for live billing data and supported operations. Configure the Lago environment and API key before use.
Connect the MCP server
Use the complete OpenAPI contract for exact request and response fields. Integrate your application with an SDK or call the API directly.
Explore OpenAPI
See how ambitious teams build and scale their billing with Lago.
Lago has been able to follow the pace of our releases and has allowed us to focus on what we do best.

Yes. Lago’s ongoing wallet balance typically refreshes in under a second after a new event is included in usage. It reflects remaining prepaid credits after current usage, including taxes.
Use this live balance in customer dashboards and configure balance alerts and automatic top-ups.
Yes. Customize subscription fees, usage rates, minimum commitments and billing thresholds for each customer’s subscription while keeping a shared plan structure.
Lago applies those negotiated terms when calculating charges and generating invoices.
No. Lago Cloud is a fully managed billing platform. Lago handles hosting, scaling, upgrades and monitoring. Your team connects customer and usage data, configures pricing and connects your payment and finance tools.
Self-hosting is also available if you prefer to operate Lago in your own environment.
Yes. Start with the CLI when your agent has terminal access, and use OpenAPI for exact API fields. The coding-agent guide covers application integration through an SDK or API, then checks usage and charges in Lago. The Lago plugin is optional.
Yes. Explore the public documentation, API specification and open-source code to model your billing flow. When you are ready to test real usage and invoices, use a dedicated Cloud organization or isolated self-hosted environment.
Use the CLI for terminal commands, scripts and coding agents that run shell tools. Use the MCP server to give compatible assistants access to Lago tools and billing data. Both connect to the Lago environment you configure.
Use a Lago SDK or the REST API to send customer, subscription and usage data. Receive webhooks for billing events such as invoice creation and payment updates, then use that information in your product and finance workflows.