Claude Code and Codex can read your .env file by default. Here’s what deny rules and sandboxes actually block, where they leak, and how to let an agent use secrets without seeing them.
How to stop coding agents from reading your .env file
calendar_today
November 24, 2026
domain
stashbase-dev