One API Bill, Ten Clients: Dev Ships a Client Ledger With Hard Spending Caps for AI API Costs

HospitalFar1258 · reddit · 2026-09-10

A developer juggling multiple clients on shared API keys got burned when an agent loop ran overnight before he noticed the spend. He shipped a self-serve ledger layer that stamps every call with client + project tags, enforces hard budget caps that refuse the next request rather than alerting after the fact, and exports client-facing monthly PDF reports. BYOK, no markup. Aimed at operator-led shops with 3+ clients and unexplainable blended API bills; he's explicit that teams already running LiteLLM for a single app don't need it.

Original post →

More from coding & agent

coding & agent channel →