Skip to content
Home/now/uses
All writing

#secrets-vs-ai

2026Oct 3

2026

  • Oct 3

    How to Stop AI Coding Agents from Reading .env Files and Secrets

    Keep .env files, API keys, access tokens, and credentials out of AI context with file permissions, isolated environments, and agent hooks.

  • Oct 3

    How to Stop OpenCode from Reading .env Files

    Use an OpenCode plugin to block common .env reads, credential-file access, and environment dumps before tool execution.

  • Oct 3

    How to Stop Devin CLI from Reading .env Files

    Stop Devin CLI from reading .env files with a registered tool hook. Block credential access and environment dumps using the correct denial exit code.

  • Oct 3

    How to Stop Cursor from Reading .env Files

    Protect .env files and API keys in Cursor with .cursorignore and file and shell hooks. Keep secrets out of indexing and AI context.

  • Oct 3

    How to Stop Claude Code from Reading .env Files

    Stop Claude Code from reading .env files with a registered PreToolUse hook. Block common secret-file reads and keep API keys out of AI context.

  • Oct 3

    How to Stop Google Antigravity from Reading .env Files

    Protect .env files, API tokens, and private keys in Google Antigravity with a PreToolUse hook and safe environment templates.