Skip to main content
Cursor is an AI-assisted code editor. Follow the steps below to connect Cursor with a model hosted on SambaCloud.

Prerequisites

Setup

1

Launch Cursor and open model settings

  1. Open the Cursor application.
  2. Open Cursor Settings: use Cmd+Shift+J (macOS) / Ctrl+Shift+J (Windows/Linux), or click the ⚙️ gear icon in the top-right corner of the window.
  3. Click on the Models section.
2

Add SambaNova as a custom model

  1. Go to the API Keys section.
  2. Enable the Override OpenAI Base URL toggle.
    • Enter: https://api.sambanova.ai/v1
  3. In the OpenAI API Key field, enter your SambaNova API key. (This field is labeled “OpenAI” but will be sent to the SambaNova endpoint you configured above.)
    Cursor settings with SambaNova base URL configured
  4. Click + Add Custom Model.
  5. In the Model Name field, paste the model name from your SambaCloud dashboard.
    • Example: MiniMax-M2.7
    Cursor model name field with SambaNova model
3

Disable other models

  1. In the models list, disable all default models.
  2. Ensure only your newly added SambaNova model remains enabled.
4

Confirm and finalize

  1. Under API Keys, double-check that:
    • OpenAI API Key is entered.
    • Override OpenAI Base URL is enabled.
  2. You may see a confirmation popup — click Confirm or Allow if prompted.
5

Start using SambaNova in Cursor

  1. Select the SambaNova model from the model selector.
  2. Begin coding or chatting — your requests will now be routed to your selected model on SambaCloud.

Troubleshooting

Disable all default models in the Models list — only the SambaNova model should remain enabled.
Verify Override OpenAI Base URL is set to https://api.sambanova.ai/v1 and the API key matches your SambaNova API dashboard.
Custom model providers require a Cursor Pro plan. Upgrade at cursor.com/pricing.