To use OpenAI’s models (such as GPT 4.1, o3, and o4 Mini) in Xcode with Alex Sidebar without paying a subscription for Alex, you’ll need an OpenAI API key.Here’s how to get one:
Create an account or sign in if you already have one
Once logged in, navigate to the API Keys section in your account settings
Click “Create New API Key”
Give your key a name (e.g., “Alex Sidebar”), select a project (or default project) and create it
Copy the API key - make sure to save it somewhere secure as you won’t be able to see it again
In Alex Sidebar:
Open Settings (⚙️)
Select “Models” at the bottom of the page
Paste your OpenAI API key in the OpenAI text field
Keep your API key secure and never share it publicly. If you suspect your key has been compromised, you should immediately rotate it in the OpenAI Platform.