IDE setup guide
Cursor IDE custom API setup
Configure CallAI's OpenAI-compatible API in Cursor. Enable Override OpenAI Base URL to reach Claude 3.7 Sonnet, DeepSeek R1, and GPT-4o with streaming completions and Agent mode.
📋 Cursor IDE config cheatsheetProduction-ready
OpenAI Base URLMust enable Override
https://api.callaiapi.com/v1
API KeyProduction key from console
sk-live-your-callai-key
Recommended Models
claude-3-7-sonnet, deepseek-r1, gpt-4o
Recommended models for Cursor IDE
Step-by-step setup
1
Open Cursor settings
Press Cmd+, (Mac) or Ctrl+, (Windows), then open Models.
2
Enable Override and set Base URL
Check Override OpenAI Base URL and paste the gateway address.
OpenAI Base URL: https://api.callaiapi.com/v1 API Key: sk-live-your-callai-key
3
Enable top coding models
In Model Names, add claude-3-7-sonnet and deepseek-r1 and toggle them on.
Troubleshooting
❌ Symptom:Connection test returns 403 Forbidden
💡 Fix: If Clash/Surge TUN mode hijacks DNS, add api.callaiapi.com to Direct.
❌ Symptom:Connection test returns 401 Unauthorized
💡 Fix: Confirm the key starts with sk-live- and has no extra spaces.
Deep-dive guide
Want advanced tips, rules files, and common pitfalls for Cursor IDE?
API still unreachable after setup?
Use the HTTP status checker to test connectivity and diagnose 403 / 401 errors.