# Lago

[BASE product page](<https://base.akulich.dev/en/library/lago/>) · [Resource](<https://www.getlago.com/>)

ID: lago · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

Usage metering and billing: product events, pricing plans, credits, and invoices through an API for SaaS, with an open core and a managed offering\.

## Type

Commerce and billing component

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/lago/#resource-access>)

freemium

## [What you can use for free](<https://base.akulich.dev/en/library/lago/#resource-access>)

The open source component used locally or self\-hosted for the stated workflow, within its license terms\.

## [Paid features and costs](<https://base.akulich.dev/en/library/lago/#resource-access>)

Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected\.

## [Access and limitations](<https://base.akulich.dev/en/library/lago/#resource-access>)

Code licensing and hosting costs are separate matters\. Check the conditions for the specific version and edition\.

## [Use cases](<https://base.akulich.dev/en/library/lago/#resource-tasks>)

- Bill for API usage
- Send events, generate a test invoice, and compare the calculation with a reference total

## Category IDs

- backend

## Subcategory IDs

- backend\.commerce

## Tags

- Lago
- Commerce and billing component

## [Selection purpose](<https://base.akulich.dev/en/library/lago/#resource-selection>)

Bill for API usage

## [Choose this when](<https://base.akulich.dev/en/library/lago/#resource-selection>)

- Bill for API usage
- Send events, generate a test invoice, and compare the calculation with a reference total

## [Requirements](<https://base.akulich.dev/en/library/lago/#resource-selection>)

- Link usage events to a metric, plan, and subscription; the AI example sends input/output tokens separately\.

## [Limitations](<https://base.akulich.dev/en/library/lago/#resource-selection>)

- Costs and limits of free use: Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected\.
- Terms of use: AGPL\-3\.0
- The README’s demonstration token prices illustrate metering rather than confirming model provider pricing\.

## [Questions before use](<https://base.akulich.dev/en/library/lago/#resource-faq>)

### What can you use for free in Lago?

The openly available portion, used locally or self\-hosted for the stated use case within its license terms\.

### What additional costs might arise with Lago?

Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected\.

### What terms of use matter for Lago?

AGPL\-3\.0

### How do you get started with Lago?

Set up Lago to test: A test customer, plan, and idempotent usage events\. Send events, generate a test invoice, and compare the calculation with a reference total\. Integrate the checked version into your project; document its configuration, limitations, and recovery method\.

### Do I need an AI agent to send events to Lago?

No: the README shows an API alongside the CLI and MCP\. Usage events are linked to a customer and configured metric; the AI example separates input/output tokens\. Choose the application integration independently from agent use\.

## Sources for the selection guide

- [https://www\.getlago\.com/](<https://www.getlago.com/>)
- [https://raw\.githubusercontent\.com/getlago/lago/main/README\.md](<https://raw.githubusercontent.com/getlago/lago/main/README.md>)
- [https://raw\.githubusercontent\.com/getlago/lago/main/LICENSE](<https://raw.githubusercontent.com/getlago/lago/main/LICENSE>)
- [https://github\.com/getlago/lago](<https://github.com/getlago/lago>)

## [Possible workflow](<https://base.akulich.dev/en/library/lago/#resource-scenario>)

Bill for API usage

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A test customer, plan, and idempotent usage events\.
- A test project and completion criteria for the task: Bill for API usage\.

## Steps

1. Set up Lago to test: A test customer, plan, and idempotent usage events\.
2. Send events, generate a test invoice, and compare the calculation with a reference total\.
3. Integrate the checked version into your project; document its configuration, limitations, and recovery method\.

## Check your result

- Duplicate events do not double the bill; check taxes and connected payments separately\.
- Check the result against a reference example; separately confirm the terms of any assets and external services used\.

## [License](<https://base.akulich.dev/en/library/lago/#resource-license>)

AGPL\-3\.0

## License explanations for the specified scope

### AGPL 3\.0 — copyleft with a network\-service condition

Use, modification, and commercial use cases are permitted\. GPL obligations apply to distribution\. If you modify an AGPL\-covered program and let users interact with it over a network, you must offer them the corresponding source code for that version\. This applies to the covered program, not automatically to all your data or independent applications\.

[License terms](<https://opensource.org/license/agpl-3.0>)

## [Sources](<https://base.akulich.dev/en/library/lago/#resource-sources>)

- [Official website](<https://www.getlago.com/>)
- [Project documentation](<https://raw.githubusercontent.com/getlago/lago/main/README.md>)
- [License for the selected component](<https://raw.githubusercontent.com/getlago/lago/main/LICENSE>)
- [Source code](<https://github.com/getlago/lago>)

## Editorial review date

2026\-10\-06

## Editorial review scope

Purpose and published conditions were reviewed against primary sources on 06\.10\.2026\. The software was not installed, and quality and performance in a specific environment were not tested\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
