All guides

5 minute read

Environment variables, explained

Why secrets stay out of your code, and the three places they can safely live.

Think of your code as a recipe card that anyone might photograph. An environment variable is a sealed envelope handed over only at the moment of cooking.

  • In code: only the name, such as COMPANION_TOKEN.
  • In Vercel: the value, under Settings then Environment Variables.
  • On your own computer: a .env file that is listed in .gitignore.

Last reviewed 30 November 2026.

Get the free guide and be first to know.

One email with the free Notion memory schema and setup prompt, then a short note when Companion School opens. No spam.