Home / Docs / Cursor

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

  1. Open Settings → Models (or Cursor Settings → Models depending on version).
  2. Find the OpenAI API section and paste your sk- key.
  3. Enable Override OpenAI Base URL and set it to https://aiprimetech.io/v1.
  4. Add a custom model name — use an exact id such as claude-sonnet-4-6.
  5. Click Verify / Save. Cursor makes a test call; a green result means it is working.
Base URLhttps://aiprimetech.io/v1
API keyyour sk- key
Model idsclaude-sonnet-4-6, claude-opus-4-8, gpt-5.5, gemini-3-pro
Endpoint used/v1/chat/completions
Omitting /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

FeatureStatus
Chat with a custom modelWorks
Inline edit (Ctrl/Cmd+K)Works
Composer / agent modeWorks 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