Glossary

What is env file (.env)?

An env file is a plain-text file of KEY=value lines, loaded into environment variables during development, that often ends up holding real secrets.

A .env file is a simple text file with one VARIABLE=value per line, popularised by the dotenv libraries and the twelve-factor approach of keeping configuration in the environment. Tools such as dotenv for Node.js, python-dotenv, Docker Compose's env_file, Vite and Next.js read it at startup and expose the values as environment variables. It is convenient for local development, but it is also a common source of leaks. The file is unencrypted, readable by any process running as your user, and easy to commit by accident; GitHub's secret scanning regularly finds keys pushed in .env files. Copies spread to backups, chat messages and container images if the file is copied in during a build. AI coding agents that read project files can pick the contents up into their context. Good practice is to add .env to .gitignore, commit only a .env.example with placeholder names, keep production secrets in a platform secret store and not in files, avoid baking the file into images, and rotate any value that was ever committed. Where possible, load values from a secret manager at runtime instead. BotPassword injects credentials into a command through its run_with intent without writing a .env file.

Give agents access. Keep the keys.

BotPassword is in early access. Request an invite and we'll email you when your spot opens.