Last updated: 2026-04-18
What is .env file?
Plain-text config file that holds secrets (API keys, tokens, passwords) as KEY=value pairs. Loaded at agent startup, always listed in .gitignore. If a .env is ever committed, rotate every key in it immediately.
See also
← Back to the full AI agent glossary.