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

Credits & Spend Control
Sell or grant credits, track ongoing balances, and refill wallets before customers run out.
Customers see what they have left.
Finance can collect cash before usage, not after.
Know the ongoing balance.Lago waits until newly ingested usage is included before refreshing the wallet. The ongoing balance, including current usage and taxes, typically updates in under a second after an event lands.
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.

Give each agent its own prepaid credits. Scope a wallet to the metrics it burns, like LLM tokens.
The Agent SDK meters and prices each LLM call. Once its usage lands, the agent's ongoing balance typically updates in under a second.
Lago sends balance alerts as an agent's credits run low or reach zero. Your product can use them to pause the agent.
Create an agent's wallet from the API, the CLI or MCP, with its credits and an automatic top-up. Your agents can check their own balance too.
Create a prepaid credits wallet for an AI agent with the Lago CLI:
lago wallets create --input @agent-wallet.json --output jsonThe research agent's wallet holds 500 credits. Whenever its ongoing balance drops below 50 credits, Lago tops it back up to 500.
{
"wallet": {
"external_customer_id": "research_agent",
"name": "Agent budget",
"credits_ongoing_balance": "500.0",
"recurring_transaction_rules": [
{
"trigger": "threshold",
"method": "target",
"threshold_credits": "50.0",
"target_ongoing_balance": "500.0"
}
]
}
}




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.
Use the ongoing balance to show remaining credits after current usage, including taxes and draft invoices. It gives customers visibility into their spending before the next invoice is finalized.
The invoiced balance shows the credits remaining after finalized invoices have been deducted.
Yes. Set a balance threshold and configure Lago to trigger a top-up that adds a fixed number of credits or refills the wallet to a target balance.
You can also schedule recurring top-ups, for example, to provide a monthly credit allowance. Purchased credits become available after successful payment.
Yes. Configure Lago’s ongoing balance alerts to trigger a restriction in your application when credits reach your chosen threshold. Your application enforces access using those alerts and its own request checks.
You can also set earlier thresholds to warn customers and prompt them to top up before their credits run out.
Yes. Scope a wallet to specific fee types or billable metrics, for example, to cover API usage while keeping subscription fees payable separately.
Lago automatically applies eligible credits to subscription and progressive billing invoices in the wallet’s currency, after taxes and credit notes.
Purchased credits become available in the customer’s wallet once payment is confirmed. Free credits are available as soon as you grant them.
You can also choose whether Lago issues the credit-purchase invoice when the top-up is created or after successful payment.
Yes. Credits roll over between billing periods by default, remaining available until consumed.
For time-limited credits, set an expiration date on the wallet. Lago automatically voids the remaining credits when that date arrives.
Yes. Use Lago’s usage alerts to trigger notifications when a customer’s usage or spending crosses thresholds you define.
You can also enable progressive billing to generate invoices as cumulative usage reaches configured thresholds, letting you bill throughout the billing period and manage outstanding balances.
Yes. Lago links each wallet deduction to the purchases or grants that funded it, including the amount contributed by each. You can also start from a credit purchase and see which deductions consumed it.
Explore these records in the dashboard or through the API to reconcile credit movements.