How to Configure Claude 3.5 Sonnet API in Cursor (2026)
Point Cursor to an OpenAI-compatible gateway for CN-friendly Claude access.
Why override the default endpoint?
Official routes may time out or be hard to pay from China. A single OpenAI-compatible base URL fixes both.
Step 2: Cursor settings
- Settings → Models
- Enable Override OpenAI Base URL
- Set Base URL to your gateway (e.g.
https://api.jiesou.ai/v1) - Paste API key and model ID (e.g.
claude-3-5-sonnet-20241022)
Step 3: Verify
Run a short coding prompt in Chat. Streaming within a few seconds means success.
See also: Claude official vs reseller