By piecing together instructions from various places, I was able to make it work. Thank you very much!
For those in a similar situation, here's how to do it:
Create a free-tier account at claude.ai and then go to platform.claude.com and click "Get API Key". Create a new key for Xcode, and keep it somewhere secure.
Install and setup Claude Code to use your custom/private model provider, by configuring ~/.claude/settings.json
In Xcode, enable the Claude Agent and authorize it with the API key that you generated (attempting to use the "Sign In with Claude.ai..." option seems to fail if you don't have an enterprise account). Leave the model selection as "Default".
Copy your config to a place where Xcode can find it: cp ~/.claude/settings.json ~/Library/Developer/Xcode/CodingAssistant/ClaudeAgentConfig/
Relaunch Xcode, and ask the Claude Agent "What model is this?", and you should get the response you want. :)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: