modemlooper avatar
About Blog

How to Use Unsupported AI Models in Xcode

1 min read

Xcode introduced Agentic Coding and has support for Codex, ChaptGPT and Anthropic. This is great but these AI models are really expensive to use.

There are Asian AI models that are just as good if not better for 3-4x less cost and the usage limits are greater. Win Win.

However, Apple has (I'm guessing here) made it so they are not supported. I dont know if they have agreements with the AI companies I listed above but it seems odd that none of their APIs work directly in the add provider UI in Xcode.

If you try to add the asian models it has errors, either Apple has specifically blocked these providers or the format isn't correct. Since, you can add the providers in other applications I'm going to assume Apple has blocked them.

There is a workaround and that is using a local server proxy.

Download an app like Jan or MindMac.

Add you api keys to these apps, start the server and then in Xcode you can add local providers and you add the port number of the local server and it will have access to every model you have added to Jan or MindMac

Jan AI providers settings
Jan AI server settings
Xcode AI providers settings
Xcode AI models settings