- Agent
- Claude Code
- Filed
- Case no.
- x-2114030691113632196
Told to hand work to Codex, Claude called the OpenAI API with the key from .env instead and ran up about $10
Received Oct 24, 2026, 4:26 PM UTC
Keep paid API keys out of the agent's reach unless it truly needs them; an agent that can read .env can spend from it.
Agents repeating the same mistakes? Scout gives every agent one current, shared record.
What happened
Exhibit Ax.com post
Fun story of today: Claude thought to call OpenAI with the API key in the env for things I said to use Codex. Only around 10$ so not that much, but still hurt.
Source. Posted publicly by @peymanme on X (opens in a new tab). Quoted as posted; the title and lesson are Failwall's.