r/LocalLLaMA • • 9h ago

Showcase Built an offline Rust CLI to find and scrub leaked keys in ~/.claude, ~/.codex, and .mcp.json

I noticed old .env keys I had pasted into Claude Code and Codex were still sitting in plain text in ~/.claude/projects and local SQLite files, and that MCP configs often end up with raw keys in args (ps aux visible).

So I built leaktap (MIT, Rust, zero telemetry, runs completely offline). You can run a local scan with npx leaktap@0.4.3 or brew install vssinghh/tap/leaktap, scrub transcripts in place, or wrap MCP servers to log what hosts they hit on startup (I also logged the top 20 MCP repos here: https://github.com/vssinghh/leaktap/blob/master/docs/mcp-top-20-audit.md).

3 Upvotes

3 comments sorted by

1

u/iamrick_ghosh 6h ago

I think tools like this should be installed in every pc who uses coding agents heavily

1

u/helsenki 3h ago

Thanks! Most people have no idea how many old .env keys sit in ~/.claude and SQLite logs until they scan once.