Leveraging PoeOpenAIWrapper in Cursor IDE
Setup guide for connecting Cursor IDE to Poe.com's models via poeopenaiwrapper
In my previous post I showed how to bring every major AI model into Xcode 26.0 using poeopenaiwrapper. The setup for Cursor IDE is almost identical, except for one crucial detail: use the public ngrok
URL instead of localhost
. Because Cursor cannot reach a local localhost
address, so we expose the wrapper with ngrok to provide a publicly accessible domain.
1. Run the Setup Script
Clone the wrapper and run the setup script:
1
2
3
cd poeopenaiwrapper
chmod +x setup.sh
./setup.sh
You’ll be prompted for two API keys:
- Poe.com API key
- Ngrok API key
Once complete you’ll see output similar to this:
1
2
3
4
5
6
7
🎉 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
Keep a note of the generated Local API Key and the Public API URL (the ngrok
domain). These are what Cursor will use to communicate with the wrapper.
2. Configure Cursor IDE
- Open Cursor and go to Settings → Models.
- Under Add API Key, enable Add your endpoint.
- For the Endpoint URL, enter your
ngrok
public URL (https://your-ngrok-url.ngrok-free.app/v1
). - Paste the Local API Key into the API Key field.
Cursor uses special endpoints to reach the full versions of OpenAI models. Because our wrapper lacks those endpoints, we map each model to a new name like openai-o3-pro
so it won’t conflict with Cursor’s OpenAI models.
- gpt-4o
- gpt-4.1
- gpt-4.1-nano
- gpt-4.1-mini
- o3-mini-high
- o3
- o3-pro
- o4-mini
- claude-3.7-sonnet
- claude-3.7-sonnet-reasoning
- claude-3.7-sonnet-search
- claude-opus-4
- claude-sonnet-4
- claude-opus-4-reasoning
- claude-sonnet-4-reasoning
- gemini-2.5-pro-preview
- gemini-2.5-flash-preview
- gemini-2.0
- llama-4-maverick
- deepseek-r1
- grok-3-mini
- grok-3
- perplexity-sonar-reasoning
After that, you can pick any of the Poe.com models exposed through the wrapper and use them in the chat or agent mode. (Remember the Tab Tab feature doesn’t work.)
That’s it! Your Cursor IDE now talks to Poe.com’s models through your local wrapper, letting you leverage ChatGPT, Claude, Grok and others right inside your editor.
Happy coding!
☕ 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! 🙏