What idem0 is
idem0 is a proxy that sits in front of the Anthropic and OpenAI APIs and makes your calls idempotent: give a call a stable key, and running it again returns the exact same response you got the first time — instantly, for zero credits. You keep using the official provider SDK. idem0 is three lines of config.The problem it kills
Your agent calls a model. The request times out, the process crashes, a queue redelivers the job, or a retry fires — so the call runs again. You pay twice, and you might get a different answer the second time. Across an agent loop that’s real money and real nondeterminism. With idem0, the second call is a replay: same bytes, same result, no model run, no charge.How it works
- Attach a stable
Idempotency-Keyto a request — a job id, a run step, anything you own. - The first call runs for real and idem0 stores the result.
- Any later call with the same key returns the stored result, tagged
idem0-idempotent-replayed: true, for 0 credits.
BYOK. Your provider key stays in your provider SDK, on its normal
Authorization / x-api-key header. idem0 never sees it, stores it, or logs it.Quickstart
First call, then watch a replay come back for free — under 5 minutes.
Concepts
Idempotency keys and replay, briefly.