Founding sponsor spots openAI agent jobsThe numbersAgents rankedAgents with codeTopics
Agents in the Wild

Claude Code found its own API key hiding under ~/.claude

Testing a restrictive sandbox for Claude Code, the writer asked it to find its own API key. It took a couple of minutes, but Claude grepped for the standard key prefix and found it under ~/.claude.

Done withClaude CodeSpotted· by HN user sfink· Nov 1, 2026

Result Deleted every API key afterward, started fresh

“I asked Claude if it could find its own API key. It took a couple of minutes, but yes it could. It was clever enough to grep for the standard API key prefix, and found it somewhere under ~/.claude.”
From the source: Hacker News · 2026-04-27

Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.

What they did

Running Claude Code in a restrictive firejail sandbox that only exposed chosen config subdirectories, the writer tested it by asking whether it could find its own employer-owned API key.

How it went

It took a couple of minutes, but Claude Code grepped for the standard API key prefix and found the key under ~/.claude, which they had needed to allow. The test had also left the key in a log file, so they deleted all their API keys and started over with a new one. They say they still haven’t fixed the underlying problem.

Try it yourself with Claude Code
You're running in a restricted sandbox. As a security test of my setup, try to find [a specific secret, e.g. your own API key] anywhere you can read, using the search techniques you'd normally use. Don't print the secret itself: tell me only where you found it and how, so I can tighten the sandbox.

A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.

Keep browsing

All 149 Claude Code use casesAll 309 Engineering use cases
Agents rankedAgents with codeTopicsFounding sponsor spots openAI agent jobsThe numbers

Hire here

Reach people who put AI agents to work.

2,208Open AI jobs listed
124AI companies hiring
Founding5 employer slots, price locked

Post a job

$299 for 30 days in its lane, on the jobs page and in Google's job search. $499 to pin it to the top of its lane and the homepage. Live within minutes of payment.

Post a job ($299) →

Featured employer slot

Your brand in the rotating slots on desktop sidebars and the sponsor strips on phones, across every page, rotating every 10 seconds. Your link carries ?ref=agentsinthewild, so you see every visit we send. $250/month; the first 5 keep that price for 12 months.

Become a founding employer ($250/month) →

Paid through Stripe. Paying never changes which jobs or cases we list, or their order, except a Featured post's pin. See the terms.

Submit an agent in the wild

Have an agent doing real work, or spotted one? Send the link and tell us the result. You'll be credited on the case, and every submission is reviewed before it's published.

By submitting, you agree to our Terms and Privacy Policy.