Keyrook

Free tools.env Sanitizer & Diff

Turn any .env into a safe .env.example.

Keep comments, structure and safe config defaults while wiping every secret value — or output a commit-ready passhold:// template and diff key names between environments offline under default-src 'none'.

1. Paste or drop .env

2. Safe output

# Paste a .env file on the left to generate a clean .env.example

Ready — paste a .env file or click “Load sample”.

Move past plaintext .env files altogether

  • Safe defaults list: when “Keep non-secret defaults” is checked, only benign runtime variables (NODE_ENV, PORT, TZ, LOG_LEVEL, PUBLIC_*, NEXT_PUBLIC_*, VITE_*, and keys ending in _PORT, _HOST, _TIMEOUT or _ENABLED) keep their values — everything else is stripped by default.
  • Ready for passhold run: choose the passhold:// output style, commit the reference file cleanly to Git, bulk-import your real file once with passhold import --env .env --agent-vault Dev, and delete the plaintext .env from disk.
  • Auditing logs or configs? Use .env & Secret Leak Scanner to flag 25+ provider key formats across arbitrary text.

Inject secrets in memory with passhold run & passhold mcp

Import your existing .env in one command (passhold import --env .env --agent-vault Dev) and let scripts or AI agents use secrets without keeping plaintext keys on disk.

Explore Passhold CLI