How do agent developers attribute per-client API costs, retries included?

Informal-Cricket2470 · reddit · 2026-10-06

A Reddit thread from a developer serving multiple clients with the same agent setup: the provider bill arrives as one total, with no visibility into which client drives retries or has quietly become unprofitable. Common approaches discussed—tagging every call with a client id, separate API keys per client, or an observability layer—all fall short on failed and retried calls, which still cost money but are easy to lose track of. The thread also debates pricing models: per run, monthly retainer, or per outcome.

Original post →

More from coding & agent

coding & agent channel →