Overview
Cursor is an AI-first code editor built on VS Code that provides intelligent code completions, chat, and editing capabilities. By connecting Cursor to ModelStack, you can access 40+ models including Claude, GPT, and Gemini through a single API key.Prerequisites
- Cursor installed (download from cursor.com)
- ModelStack API key from your dashboard
Configuration
Step 1: Open Cursor Settings
- Open Cursor
- Press
Cmd+,(Mac) orCtrl+,(Windows/Linux) to open Settings - Search for “Models” in the settings search bar
Step 2: Configure ModelStack
- Navigate to Models → API Keys
- Click Override OpenAI Base URL
- Enter:
https://api.modelstack.cc/v1 - Add your ModelStack API key in the API Key field
Step 3: Select Your Model
In the model dropdown, you can now use any ModelStack-supported model:claude-sonnet-4-6claude-opus-4-6gpt-4ogemini-2.5-pro- View all models
Usage
Once configured, Cursor will route all AI requests through ModelStack:- Chat: Use
Cmd+Lto open AI chat - Inline Edit: Select code and press
Cmd+Kfor AI edits - Autocomplete: AI suggestions appear as you type
Troubleshooting
Issue: “Invalid API key” error Solution: Verify your API key starts withsk_ and has active credits in your billing dashboard.
Issue: Model not found
Solution: Check the supported models list for correct model names. ModelStack uses standardized names like claude-sonnet-4-6 instead of provider-specific IDs.
Next Steps
- Track usage in your ModelStack dashboard
- Create model stacks for automatic fallback routing
- View pricing for all supported models
Last verified: 2026-03-07