To use Claude’s models (such as Claude 3.5 Sonnet and Claude 3.7 Sonnet) in Xcode with Alex Sidebar without paying a subscription for Alex, you’ll need an Anthropic 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”) 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 Anthropic API key in the Anthropic 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 Anthropic Console.