Cursor
Use Claude models inside Cursor through the OpenAI-compatible endpoint, without an Anthropic account.
Cursor talks the OpenAI Chat Completions format, so it connects through /v1/chat/completions — which means the /v1 suffix on the base URL is required.
Setup
- Open Settings → Models (or Cursor Settings → Models depending on version).
- Find the OpenAI API section and paste your
sk-key. - Enable Override OpenAI Base URL and set it to
https://aiprimetech.io/v1. - Add a custom model name — use an exact id such as
claude-sonnet-4-6. - Click Verify / Save. Cursor makes a test call; a green result means it is working.
Base URL
https://aiprimetech.io/v1API keyyour
sk- keyModel ids
claude-sonnet-4-6, claude-opus-4-8, gpt-5.5, gemini-3-proEndpoint used
/v1/chat/completionsOmitting
/v1 is the number-one Cursor setup failure — verification fails with a 404 because Cursor appends only /chat/completions to whatever base you give it. See Base URLs.What works and what does not
| Feature | Status |
|---|---|
| Chat with a custom model | Works |
| Inline edit (Ctrl/Cmd+K) | Works |
| Composer / agent mode | Works with models that support tool use |
| Cursor Tab (autocomplete) | Uses Cursor's own in-house model and is unaffected by this setting |
Cursor Tab is not routed through any custom base URL — that is a Cursor product decision, not a gateway limitation.
If verification fails
404— the/v1suffix is missing from the base URL.401— the key is wrong or has a stray space. Re-copy it from the dashboard.- Model not found — the custom model name must be an exact id from Models, not a display name like "Claude Sonnet".
- Verified but replies are empty — see Troubleshooting.