Harnessing All Powerful AI Models in Xcode 26.0 With One Subscription
Efficiently integrate multiple powerful AI models into Xcode 26.0 with Poe.com

The AI Revolution Finally Hits Xcode (And My Wallet Thanks Me)
Xcode 26.0 Beta has arrived, finally bringing seamless AI model integration directly into your IDE workflow! As an experienced developer, I’ve been juggling between Cursor (with Sweetpad extension) and Xcode for my daily iOS development tasks.
However, constantly shifting between Cursor and Xcode wasn’t efficient. You need to see the preview in xCode, so you switch to Xcode. Then you want to have the auto-completions and AI features in Cursor, so you go back to Cursor. It’s like dating two people at once—exhausting and bound to end badly!
Besides, when you use Cursor with Sweetpad to be able to do the build, you have to use xcodebuild
which is notably slower than Xcode’s optimized build mechanism that caches dependencies. Switching back and forth disrupted my flow—but no more! Thanks to Apple, we finally have integrated chat feature in Xcode.
The Good, The Bad, and The Wallet-Draining
Xcode 26.0’s built-in AI chat integration now allows interaction with your favorite models directly within your workspace. While ChatGPT integration comes by default, you can add multiple custom AI providers through API keys along with ChatGPT.
Yet, individually subscribing to providers like OpenAI, Anthropic, Gemini, and Grok quickly becomes expensive. That’s why many people are using IDEs like Cursor or Windsurf to access multiple AI models with one subscription. Since Apple doesn’t allow you to have a subscription to use multiple providers like these tools (yet), you have to find a workaround by yourself.
Enter Poe.com: The Swiss Army Knife of AI Models
After searching for a while, I was hoping that maybe there is a provider that gives you all the models you need in one subscription. And I found it!
Here’s the game-changing solution: Poe.com, a centralized platform offering affordable access to multiple AI models under a single subscription using a points-based system.
Pricing is not too expensive but not cheap either. The way their platform works is point-based instead of token-based. Check out the information about the points: Poe Points FAQ
However, Poe.com doesn’t offer an API like OpenAI or Anthropic that would work with Xcode or Cursor out-of-the-box. Which is a cumbersome thing, but as an iOS developer who coded apps with Objective-C, there’s nothing I can’t do! (Seriously, if you survived retain/release cycles, you can survive anything.)
Building the Bridge: Poe OpenAI Wrapper
So to bridge this gap and save your time, I’ve created a custom wrapper called poeopenaiwrapper. This handy tool converts Poe.com’s simpler API into an OpenAI-compatible format seamlessly used by Xcode.
Quick Start: Wrapper Setup
Before diving in, ensure macOS 26.0 Tahoe is installed—it’s mandatory for Xcode 26.0’s AI features. (Yes, another macOS update. Your Mac’s battery is crying.)
Clone and run the setup script:
1
2
3
cd poeopenaiwrapper
chmod +x setup.sh
./setup.sh
You’ll need two API keys:
- One from Poe.com
- Another from Ngrok
Upon successful setup, your terminal outputs:
1
2
3
4
5
6
7
8
9
10
11
12
🎉 Setup Complete!
==================
📋 Configuration Summary:
Local API URL: http://localhost:8000/v1
Public API URL: https://your-ngrok-url.ngrok-free.app/v1
Local API Key: sk-local-generated-api-key
Ngrok Dashboard: http://localhost:4040
🔧 Xcode Configuration:
Host URL: http://localhost:8000
API Token: sk-local-generated-api-key
AI Token Header: x-api-key
Configuring Xcode
Open your Xcode project and go to Xcode > Settings > Intelligence.

ChatGPT is pre-selected by default. Click on Add a Model Provider.

Select Internet Hosted (for authentication security).

Fill in the fields using your terminal details:
- Host URL:
http://localhost:8000
- API Token: Paste your local API key
- API Key Header:
x-api-key

After saving, Xcode fetches Poe.com’s models through your wrapper:

Click your LocalHost provider to see and favorite models for quicker access:

Using AI Models Directly in Xcode
Initiate a new chat by clicking New Chat and select your preferred AI model directly from your IDE.

Testing Different Models
Let’s try using Grok-3-mini to query a Package.swift
and ask some questions about the file:
Though Grok-3-mini gives not-so-good answers, models like Deepseek R1, Claude Opus 4, or O4-mini often deliver better insights.
Similar prompt, this time around asking AI to give us examples about what the app does by adding Workspace to the prompt. Here’s how O4-mini performs:
Looks better!
Integrated Perplexity Within Xcode
Perplexity, my go-to for updated answers using AI, is directly accessible in Xcode! As a fellow Apple fan, I would like to help other developers stay in Apple’s walled garden.
After selecting the AI model to Perplexity, simply select your code snippet, right-click, and choose Show Coding Tools to query without leaving the IDE!
For example, in this prompt asking Perplexity to tell me whether I should update the version of the external dependencies in the Package.swift file:
Even if results aren’t always flawless, staying within Xcode saves considerable time and reduces workflow disruptions.
By the way, for comprehensive insights into all AI chat features in Xcode 26.0, including code history and snippet management, I highly recommend Dimillian’s detailed guide here.
Why I Love Xcode 26.0 Even More
What excites me the most about Xcode’s native AI integration is its seamless handling of Swift-style code snippets as well as automatically modifying the code directly after the prompt response without copying or pasting (yeah, just like what the Cursor Agent does).
See this example of how I used Claude Opus 4 Reasoning to improve a SwiftUI view with animations:
It’s intuitive, professional, and feels perfectly “Apple.” You can go back in time to see the history of the chat and the code changes you made. It’s like having a time machine, but for code!
The Future of AI in Xcode
OK, even though Apple doesn’t allow us to use MCP like other IDEs, this is a good start for Apple, I believe
. Just like Steve Jobs said, “We don’t ship junk,” so in order for them not to ship junk, they need to take time and make it perfect before shipping to users.
Let’s see what will happen in the future with Xcode. Probably in WWDC 2027, we will see MCP integration in Xcode as well.
Wrapping Up
That’s a wrap for now! In my next blog post, I’ll demonstrate how this wrapper also integrates effortlessly with Cursor IDE. Stay tuned, and keep coding smarter!
☕ Support My Work
If you found this post helpful and want to support more content like this, you can buy me a coffee!
Your support helps me continue creating useful articles and tips for fellow developers. Thank you! 🙏