leaktap: offline Rust CLI finds and scrubs API keys leaked in ~/.claude, ~/.codex and MCP configs

helsenki · reddit · 2026-12-03

A developer found old .env keys pasted into Claude Code and Codex still sitting in plain text in /.claude/projects and local SQLite files, with MCP configs often exposing raw keys in args visible via ps aux.

He built leaktap (MIT, Rust, zero telemetry, fully offline): scan locally via npx [email protected] or brew install vssinghh/tap/leaktap, scrub transcripts in place, or wrap MCP servers to log which hosts they hit on startup. He also published an audit of the top 20 MCP repos for leaked keys.

Original post →

More from coding & agent

coding & agent channel →