Skip to content

Cursor

Cursor is a VS Code-based AI editor. It bundles its own subscription model, but allows you to override Chat / Composer / Agent to a custom OpenAI-compatible endpoint — that's the WRouter integration point.

Prerequisites

ItemRequirement
Cursor≥ 0.42 (UI paths follow latest stable)
WRouterA working token

Configure

Open Settings (Cmd , / Ctrl ,) → Models:

1. Set the OpenAI-compatible endpoint

Scroll to OpenAI API Key:

FieldValue
OpenAI API Keysk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Override OpenAI Base URLhttps://wrouter.ai/v1

Click Verify. A green ✓ confirms connectivity.

The trailing /v1 is required; without it Verify fails.

2. Add custom models

At the bottom of ModelsAdd model, add the ones you'll use:

  • gpt-5.5, gpt-5.4, gpt-5.4-mini
  • claude-fable-5, claude-sonnet-4-6, claude-opus-4-8, claude-haiku-4-5
  • gemini-2.5-pro, gemini-2.5-flash
  • deepseek-v4-flash, deepseek-v4-pro
  • qwen3-coder

Enable each one. Disable Cursor's defaults you won't use to avoid accidental billing.

Verify

  1. Open any project; Cmd L (Chat) or Cmd I (Composer)
  2. Bottom-right model picker → choose claude-sonnet-4-6
  3. Prompt "Summarize this repo" — should return a reasonable summary
ModelUse for
claude-sonnet-4-6Daily Chat / Composer driver
claude-opus-4-8Large refactors
gpt-5.5Reasoning-heavy debugging
qwen3-coderLower-latency coding (China network)
gemini-2.5-flashLong-context (1M) batch rewriting

Known limitations (important)

Some Cursor features do not route through your custom endpoint — they keep calling Cursor's proprietary models:

FeatureThrough WRouter?
Chat, Composer, Agent✓ Yes
Cmd-K inline edit✓ Yes
Tab autocomplete✗ No (Cursor's own cursor-small)
Apply / Smart Rewrite✗ No
Bug Finder / Codebase index✗ No

To fully isolate from Cursor's account:

  1. Settings → disable Cursor Tab
  2. Sign out of your Cursor account
  3. Trade-off: you lose Tab autocomplete — a core Cursor feature

Troubleshooting

SymptomLikely causeFix
Verify returns 401Bad tokenRe-copy from console; check for trailing whitespace
Verify returns 404 / timeoutMissing /v1Use https://wrouter.ai/v1
Model picker doesn't show WRouter modelsNot added under ModelsAdd via the Add model flow
model not found after selectingWrong ID for upstreamCheck spelling at https://wrouter.ai/models
Image messages do nothingModel doesn't support visionUse gpt-5.4 / claude-sonnet-4-6 / gemini-2.5-pro

See also