← sources

Sharing env secrets with Claude Code ?

source: reddit (reddit:ClaudeCode)published 2026-10-21 01:25ingested 2026-10-22 02:42

retained text

Do you guys share env secrets with Claude Code? Has there been any incident of unauthorized usage of env secrets that you shared with LLMs?

I see many people are building a harness where the secret gets stripped out (saved to its own secret managers) before reaching the LLM context, but I wonder if it's any useful.

Been letting my ai agents know all the env secrets & haven't seen any unauthorized usage myself.

Share your experience!

document fetched 2026-10-22 00:44 · canonical https://reddit.com/r/ClaudeCode/comments/1xb9zvi/sharing_env_secrets_with_claude_code