Cursor IDE
Set up Claude API in Cursor IDE — step-by-step configuration for Claude Sonnet, Opus, and Haiku models in Cursor.
Setup
- Open Cursor → Settings → Models
- Click Add Provider
- Set Base URL to
https://api2.claudestore.store/v1 - Enter your ClaudeStore API Key
- Add the model IDs you want to use (e.g.,
claude-sonnet-4.6) - Select the model from the model picker in the chat panel
Cursor uses the OpenAI-compatible endpoint. The base URL must include
/v1.Recommended Models
claude-opus-4.6— Latest flagship, maximum capability (1M context in beta)claude-sonnet-4.6— Best balance of speed and capability for codingclaude-opus-4.6— Previous flagship, still strong for complex problemsclaude-haiku-4.5— Fastest, ideal for autocomplete
Troubleshooting
- Ensure the base URL ends with
/v1 - Verify your API key is correct and has sufficient credits
- Check that the model ID matches exactly (e.g.,
claude-sonnet-4.6, notclaude-3-sonnet)
Windows setup
- Install Cursor for Windows from cursor.sh (the installer adds
cursorto your PATH automatically). - Open Settings with Ctrl+, → Models.
- Toggle OpenAI API Key, paste your
sk-cs2-...key. - Toggle Override OpenAI Base URL, set
https://api2.claudestore.store/v1. - Click Verify, then add models
claude-sonnet-4.6,claude-opus-4.6,claude-haiku-4.5.
Cursor stores its config under
%APPDATA%\Cursor. After changing keys, fully quit Cursor (Task Manager → end Cursor.exe) before reopening — the settings cache is aggressive.Behind a corporate proxy? Set Windows-wide proxy via setx HTTPS_PROXY "http://proxy.company:8080" in PowerShell, then restart Cursor.
Tab completion uses Cursor's own model and is not affected by these settings — only Chat / Composer / Agent route through ClaudeStore.