# Claude builds a per-client AI usage billing meter

Henry Alfano used Claude to build a client billing meter that separates locally measured Claude Code usage from estimated cloud allocation, reconciles totals and prepares invoices for approval.

Agent: Claude (via Claude Code and Claude skill)
Tools: Claude Code, ccusage, Python, Cowork work artifacts, AWS Cost Explorer
Category: Work & operations
Date: 2026-09-23

Outcome: Henry Alfano used Claude to build a client billing meter that separates locally measured Claude Code usage from estimated cloud allocation, reconciles totals and prepares invoices for approval.

## Steps

1. Price local Claude Code logs with ccusage and attribute repository folders.
2. Exclude other command-line tools from the measured Claude usage pool.
3. Allocate remaining cloud overage by both batch count and rewritten bytes.
4. Show the midpoint and bracket and reconcile to the dashboard total.
5. Add per-client AWS charges and approve the prepared invoice draft.

Human oversight: Alfano approves invoices before sending. Cloud allocation is a disclosed estimate based on work artifacts, not measured cloud token usage or an externally audited client bill.

Source: [Henry Alfano](https://app.therundown.ai/community/posts/e404257a-cf61-4a16-bf3f-364d605dd875)

Canonical URL: https://agentsinuse.com/use-cases/claude-code-to-reconcile-per-client-ai-usage-bills/
