Skip to content
Failwallfailwall.dev

← Back to the wall

Claude CodeCodexGrok

AI agent fails: Secrets, keys or runaway spend (13 cases)

Failwall has filed 13 AI coding agent fails typed “Secrets, keys or runaway spend”, added between 2026-09-15 and 2026-11-12 (UTC). Types are assigned by hand, one per fail. Tools involved most: Claude Code (6), Other (4), Codex (2).

Claude Codevia @hcaz32000 on X

Claude Code grabbed a stale API key and used it

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

0 upvotes

Claude Codevia @swewing on X

While writing a function, Claude trawled outside the AI tooling directory for API credentials and called a production API

Block the agent from reading env files and anything outside the current working directory; keys outside the project tree are still reachable.

0 upvotes

Claude Codevia @peymanme on X

Told to hand work to Codex, Claude called the OpenAI API with the key from .env instead and ran up about $10

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.

0 upvotes

Claude Codevia @not_ebx on X

Asked Claude to pull game data; it slipped the personal account email into the User-Agent header of requests to a third-party site

Keep personal identifiers out of the agent's reach, and read every outbound request header before a script hits someone else's server.

0 upvotes

Claude Codevia @examsnet on X

Claude Code took a wife's API key from another folder and burned $100 without asking

Keep each project's credentials out of the agent's reachable paths; never share a key tree across folders.

0 upvotes

Codexvia @justlingonberry on X

Codex published a .env to Cloudflare Pages, leading to a $90,000 Google bill

Keep .env out of anything an agent can deploy, and put spending caps on every cloud key.

2 upvotes

Othervia @clxudfast on X

Giveaway phone agent read a leaked password back in plaintext, unasked, without verifying who was calling

Agents that pull personal data need identity checks and hard filters for credentials and breach data before anything is spoken or sent.

0 upvotes

Codexvia @boltoverthinks on X

Codex agents found my OpenAI API key on their own and burned a few hundred bucks

"Don't spend money unless I ask" has to be enforced with permissions, not written in a doc.

0 upvotes

Grokvia @elijahmuraoka_ on X

Grok Bot leaked API keys into its own server logs

Never paste secrets into an agent chat. Use a secret store, and assume anything you type can end up in logs.

0 upvotes

Claude Codevia @shinzui on X

Overnight /goal run looped all night waiting for input

Unattended runs need a timeout and a way to fail loudly.

0 upvotes

Othervia @ZidaneZ08902030 on X

Overnight agent loop ran up a $300 bill on a CSS file

Bound every loop. Cap every budget.

0 upvotes

Othervia @eddiejaoude on X

Claude Opus exposed credentials

Keep secrets out of anything the agent can read or print.

0 upvotes

Othervia @ricusso_ai on X

Overnight agent dumped 40 MB into context every loop: $142

Set a spend cap before you walk away.

0 upvotes