1. Login to OpenAI API Platform

https://platform.openai.com/settings/organization/api-keys

2. Create new secret key

image.png

3. Set name, set Project → Default Project, Permissions → All, then create

image.png

4. Copy and save your key

Screenshot 2025-06-14 at 8.32.44 PM.png

5. (Recommended) Save as environment variabl

<aside> 🍎

MacOS

</aside>

# open zshrc file
open ~/.zshrc
# add the following line to the zshrc file
export OPENAI_API_KEY = "your_api_key"
# save and apply
source ~/.zshrc