Skip to main content
Cursor is an AI-powered code editor built on VS Code. It provides inline code completion, chat, and multi-file editing capabilities.
Setup time: ~2 minutes

Prerequisites

Cursor requires a valid OpenAI API key to enable AI features, even when using a custom endpoint. You can use a minimal OpenAI key with low limits.

Configuration

Step 1: Open Model Settings

  1. Open Cursor
  2. Go to Settings (gear icon in left panel)
  3. Click on Models

Step 2: Configure API Endpoint

  1. Scroll to the API Keys section
  2. Enable Override OpenAI Base URL
  3. Enter: https://api.infercom.ai/v1
  4. Enter your Infercom API key in the OpenAI API Key field
  5. Also enter a valid OpenAI API Key (required by Cursor)

Step 3: Add Custom Model

  1. Click + Add Custom Model
  2. Enter the model name: MiniMax-M2.5

Step 4: Select Your Model

  1. In the models list, disable all default models
  2. Enable your Infercom model
  3. Select MiniMax-M2.5 in the right panel when coding

Model

Use MiniMax-M2.5 - optimized for agentic coding with 160K context (163,840 tokens) and 75.8% SWE-bench.

Usage

Once configured, Cursor will route all AI requests through Infercom:
  • Inline completion: Type and see suggestions
  • Chat: Use Cmd+L / Ctrl+L to open chat
  • Edit: Select code and use Cmd+K / Ctrl+K

Troubleshooting

AI Features Not Working

Ensure you have both:
  • A valid OpenAI API key entered (activates Cursor’s AI features)
  • Your Infercom API key in the Override field

Model Not Responding

Verify the endpoint is correct:
https://api.infercom.ai/v1
Note: No trailing slash.

Wrong Model Selected

Check that:
  1. Default models are disabled
  2. Your custom model is enabled
  3. The correct model is selected in the chat panel

Limitations

  • Requires valid OpenAI API key to activate editor
  • Some Cursor-specific features may not work (Cursor Tab, etc.)
  • Model names show as custom rather than branded

Next Steps