how to change model in xcode

Asked on 06/11/2025

1 search

To change the model in Xcode, you can follow these steps:

  1. Enable ChatGPT or Other Providers: You can enable ChatGPT in Xcode with just a few clicks. If you prefer another provider, like Anthropic, you can enter your API key to interact with models such as Claude 4 Opus and Sonnet. You can choose which models to show from each provider and mark your favorites for quick access. Additionally, you can use local models running on your Mac or a private network. Tools like Ollama and LM Studio allow you to add as many providers as you want in Xcode's preferences.

  2. Switch Between Models: Once you've configured a set of models, you can quickly switch between them in the coding assistant when beginning a new conversation. This flexibility allows you to choose the most suitable model for your task.

For more detailed information, you can refer to the session What’s new in Xcode (00:11:07) where these features are discussed.