Skip to main content

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

Configuration

Step 1: Open Cursor Settings

  1. Open Cursor
  2. Press Cmd+, (Mac) or Ctrl+, (Windows/Linux) to open Settings
  3. Search for “Models” in the settings search bar

Step 2: Configure ModelStack

  1. Navigate to ModelsAPI Keys
  2. Click Override OpenAI Base URL
  3. Enter: https://api.modelstack.cc/v1
  4. 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:

Usage

Once configured, Cursor will route all AI requests through ModelStack:
  • Chat: Use Cmd+L to open AI chat
  • Inline Edit: Select code and press Cmd+K for AI edits
  • Autocomplete: AI suggestions appear as you type

Troubleshooting

Issue: “Invalid API key” error Solution: Verify your API key starts with sk_ 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


Last verified: 2026-03-07