I scanned my laptop for API keys. One was in 138 files.
What a scan of my own laptop found, and the free tool I built to find copies of a key and move it into one vault.
2 min read

Short answer
KeyJar's free scanner, kj scan, found one Anthropic API key copied into 138 files on my laptop, plus 19 OpenAI-format keys across 235 files. kj import moves each key into one encrypted vault and leaves a kj:// reference in your .env, which is safe to commit.
I scanned my own laptop for API keys.
One Anthropic key was copied into 138 files. 19 OpenAI-format keys sat across 235 files.
So I built a tool that finds them and moves them into one vault. It is free to download.
Find the copies
kj scan ~ lists the plaintext AI and API keys it finds on your machine. It groups the hits by key, with the files each one sits in. It changes nothing.
Move them into the vault
kj import moves the keys into an encrypted vault, one file at a time, after you say yes. The vault key lives in your OS keychain. kj undo takes an import back.
Your .env stops holding keys and holds references instead:
ANTHROPIC_API_KEY=kj://anthropic/mainA reference is safe to commit. It is safe to copy into a worktree.
Run with references
kj run -- npm test sets every variable whose value is a reference and starts the command. The rest of your .env is left to your app's own loader.
kj get kj://anthropic/main prints one key. That makes it work as Claude Code's apiKeyHelper, or as any tool's key command.
What it does not do
- Your agent runs as you, so it can still ask
kjfor a key. This keeps keys out of files, not out of reach. - It does not revoke leaked keys or cap spend.
- Copies in notes or transcripts are listed for you to delete by hand.
- The code is not public. The
kj://format and the vault format are public specs, and every release has a SHA-256 checksum.
What Pro adds
Pro is a one-time licence. It adds opt-in auto-fill of expiry, usage and created dates from OpenRouter, GitHub, xAI and Hugging Face. It also adds reminders 14, 3 and 0 days before a key dies, and after 90 idle days. Auto-fill is off until you say yes, and a key goes only to the provider that issued it.
It costs $9 for the first 10 buyers, then $19, $29 and $39 for the next 10 each, and $49 after that. The scanner and the core CLI (scan, import, undo, run, get, add) are free.
Try it
Run the scan and tell me your count. Never post a key.
Keshav Melnad
Solo founder of KeyJar, building from Egypt. The scanner started as a check of one laptop, which turned up a single Anthropic key copied into 138 files.

