Open-source kdbx tool lets AI agents use secrets without leaking them
nabsha · reddit · 2026-08-01
A developer noticed Claude Code reading .env files, exposing API keys in transcripts on remote servers. He built an open-source tool called kdbx that stores secrets in a KeePassXC vault outside the repo, injecting them into child processes via kdbx run -- npm test without printing anything. Agents can run commands needing credentials, but writing, revealing, or exporting secrets stays with the human. The tool stops accidents, not attacks. The author compared 1Password, Doppler, Infisical, sops, age, direnv, and pass, choosing KeePassXC for local, offline, out-of-repo, and per-project layout.
More from coding & agent
- Hugging Face releases RL-tuned Inkling-2-Mini: same Terminal-Bench score in 25min instead of 60 — yb2698 · 2026-12-02
- Subsola: a free open-source 3D map of underground utilities in 10 US cities, built with Claude Code — anselm · 2026-12-02
- "CI/CD is dead": Developer lays out the AI Software Factory replacing traditional pipelines — Pavan_Belagatti · 2026-12-02
- Codex lead confirms upgraded harness not shipped yet; current one 'will seem primitive in 2-3 months' — VraserX · 2026-12-02
- banger: open-source agent skill writes hit-style Suno songs hook-first — tetsuoai · 2026-12-02
- Agent skills cut AI music video generation to under 2 hours, Suno skill released — tetsuoai · 2026-12-02