Cursor
Point Cursor chat requests to HeyEly using a custom OpenAI-compatible base URL.
Cursor supports routing chat prompts to an OpenAI-compatible base URL with your own API key. Treat this integration as beta: Cursor updates its custom-model and tool-calling behavior frequently across releases.
Set up
- Generate a key in Developers.
- Open Cursor Settings, then navigate to Models.
- Under API Keys, enable OpenAI API Key and paste your key (
sk-df-...). - Enable Override OpenAI Base URL and set it to
https://heyely.si/v1. - Click Add model and enter an exact catalog ID from Models, such as
anthropic/.claude-sonnet-5. 5 - Choose your newly added model from the chat picker.
Cursor stores this key strictly inside its UI settings and does not pull it from an environment variable or local file.
Verify
Switch a Cursor chat to Ask mode, select the model you just added, and send a short prompt. Open Credit and usage to confirm the call shows up at the top of Spend under that model.
Know the limits
- Cursor proxies requests through its own backend, so your base URL must be publicly reachable.
https://heyely.si/v1works out of the box, whereas localhost or private network addresses will fail. - Tab autocomplete never uses your key.
- Cursor's zero data retention toggle does not cover BYOK requests sent through custom keys.
- Turning on the base URL override applies globally. While active, Cursor's built-in OpenAI models may also route to HeyEly and error out; toggle the override off whenever you switch back to Cursor's own models.
- Ask mode delivers the most consistent results. Agent mode emits tool schemas and Responses-style payloads that can behave differently across Cursor versions and models, so swap models if tool execution breaks.
Troubleshooting
| You see | Cause | Fix |
|---|---|---|
| Missing Override OpenAI Base URL switch | Not available on every Cursor build or plan | Update Cursor and verify your plan tier |
| Cursor rejects the model ID | ID does not exist in HeyEly's catalog | Copy the exact ID from the Models page |
401 invalid_api_key | Extra whitespace or characters in the key box | Re-paste your key cleanly |
| Agent mode tool errors or empty error banner | Cursor's Agent payload format mismatched the model | Switch to Ask mode, try another model, or set Settings, Network, HTTP Compatibility Mode to HTTP/1.1 |
| Built-in Cursor model reports unavailable | Global base URL override is intercepting Cursor's OpenAI models | Toggle Override OpenAI Base URL off |
| Override ignored | Toggle was left disabled | Turn Override OpenAI Base URL on |
402 insufficient_credit | Your account has no credit available | Add credit |