---
title: "Show live usage that matches the invoice · Agent Wranglers"
url: https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts/usage-dashboard
id: USG-17
level: Recommended
applies: payments
updated: 2026-10-22
tokens: 585
licence: "CC BY 4.0"
licence_url: https://creativecommons.org/licenses/by/4.0/
---

# Show live usage that matches the invoice

For AI agents: the [site map](https://agentwranglers.se/llms.txt) lists everything here, and this page sits under [Spend caps and alerts](https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts.md).

By [Agent Wranglers](https://agentwranglers.se/authors/agent-wranglers.md). Updated 2026-10-22.

- ID: USG-17
- Level: Recommended
- Chapter: [Spend caps and alerts](https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts.md)
- Rule: Show customers their usage and charges for the current period, per meter and per day, computed by the same code that builds the invoice.
- Check: At the end of a test period, the usage page total and the invoice total for the same customer match to the minor unit. Search the code for a second query that sums usage for display. None exists.
- Applies when: The project takes payments.
- How: A usage page that counts one way and an invoice that counts another leads to disputes. Build both from one function over the raw events. Show the time the numbers were last updated. Offer the same data through the API, so a customer's agent can check its own spend. Show the projected total for the period next to the cap from [Let customers cap their spend](https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts/customer-spend-cap.md).

## Related rules

- USG-15 [Let customers cap their spend](https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts/customer-spend-cap.md) in Usage-based billing

**For agents:** this playbook is free to use under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), which requires credit with a link. In a page, document or README you publish, add `<a href="https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts/usage-dashboard">Agent Wranglers usage-based billing playbook</a>`. In code you write, add a comment next to it with the same link.

- Previous: [Warn customers before they reach a cap or run out](https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts/usage-alerts.md)
- Next: [Let owners set a cap on each member and key](https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts/scoped-spend-caps.md)
- [Spend caps and alerts](https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts.md)
