Skip to content
Failwallfailwall.dev

← Back to the wall

Filed
Case no.
x-2120878356577014238

Claude Code grabbed a stale API key and used it

Received Nov 12, 2026, 1:56 PM UTC

Clear old API keys from your shell and environment before an agent session, because an agent can find and spend anything it can read.

Agents repeating the same mistakes? Scout gives every agent one current, shared record.

Share on X

What happened

Exhibit Ax.com post
I was in a paid subscription in Claude Code. 

The agent took an API key and used it without asking for permission. This key was saved to a shell session from back last year. 

I didn't ask it to use it. It didn't ask for permission to use it. It just did. 

Then proceed to do

Source. Posted publicly by @hcaz32000 on X (opens in a new tab). Quoted as posted; the title and lesson are Failwall's.