Developer tools2026-11-236 min Set Windows Environment Variables for API Keys in PowerShellUse $env: for a temporary key, setx or the System Properties dialog for a permanent one, then open a new terminal. Steps, checks and pitfalls for OPENAI_API_KEY. #Windows#PowerShell#environment variables#API key