Skip to content
Part 3: Environment set-up
Lesson 3.7Track A 15 min

Environment variables and secrets

Keep API keys and tokens out of the chat and out of your repo with .env.local, .env.example and .gitignore, and learn the difference between project and machine variables.

Members only · free

Sign up free to take this lesson.

  • The full lesson, step by step, for Windows and Mac
  • 1 copy-paste prompt that makes the agent do the work
  • A checklist, and the fixes for what usually goes wrong
  • Your progress saved as you go