- Go to https://platform.openai.com and log in
- You'll be on the https://platform.openai.com/docs/overview page
- Click the icon in the top right corner and then "Your profile"
- You should be on the https://platform.openai.com/settings/profile page
- The "User API Keys" will take you to https://platform.openai.com/settings/profile?tab=api-keys
- Click "Create new secret key", give it a name, and click "Create secret key"
- Put that key into your
.env
file asOPENAI_ACCESS_TOKEN
OPENAI_ACCESS_TOKEN=some_key_here