Connect Cursor to GPTsAPI
Configure your GPTsAPI URL and API key in Cursor to code with OpenAI and Claude models.
Step-by-step guide
Click a screenshot to view the original. Screenshots keep their original UI language.
Sign up to GPTsAPI and create an API Key
Sign up or log in to GPTsAPI, top up your balance, then visit the API Keys page to create and copy your key. All tools share the same key.
Enable Override OpenAI Base URL and enter your key
In Cursor Settings → Models, enable Override OpenAI Base URL. Stay in OpenAI API key mode—do not switch to Anthropic. OpenAI models work immediately after saving.
Base URLOpenAI API Keysk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxGet API KeyAdd Claude models
Click Add model and replace claude with wild in the model name (same for opus and haiku):
- For claude-opus-5-5, enter wild-opus-5-5
- For claude-sonnet-5-5, enter wild-sonnet-5-5
- For claude-haiku-5-5, enter wild-haiku-5-5
Model NameSee more models in the model list, and replace claude with wild for all Claude models.
Verify your connection
Select the added model in chat and send a message. Getting a reply confirms it works.
If there is no reply, check these items in order:
- Base URL includes /v1
- You are still in OpenAI API key mode rather than Anthropic
- claude in the Claude model name has been replaced with wild


