Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - Documented by OpenRouter

Use OpenRouter in Cursor

OpenRouter's official Cursor guide (beta) uses Cursor's Override OpenAI Base URL setting with a dedicated endpoint, https://openrouter.ai/api/v1/cursor. You then add OpenRouter model ids as custom models.

Last verified 6 steps1 official source

Steps

  1. Step 1.

    Create an OpenRouter API key at openrouter.ai/keys (it starts with sk-or-...).

  2. Step 2.

    Open Cursor Settings (gear icon or Cmd/Ctrl + ,), go to Models, and expand the API Keys section.

  3. Step 3.

    Toggle on OpenAI API Key and paste your OpenRouter API key into the OpenAI API Key field.

  4. Step 4.

    Toggle on Override OpenAI Base URL and set it to the dedicated Cursor endpoint.

    Snippet
    https://openrouter.ai/api/v1/cursor
  5. Step 5.

    In the Models section, click + Add model and enter OpenRouter model ids, for example:

    Snippet
    ~anthropic/claude-opus-latest
    ~openai/gpt-sol-latest
    ~moonshotai/kimi-latest
    deepseek/deepseek-v4-flash
  6. Step 6.

    Open the model picker in the chat or agent panel and select one of the models you added.

Caveats

  • OpenRouter marks this integration as beta. Behavior may change as Cursor updates its client.
  • The base URL must be https://openrouter.ai/api/v1/cursor, not /api/v1. On the generic endpoint, tool calls and some request formats may not work correctly.
  • Tab completions always use Cursor's built-in models. Auto and Composer 2 modes may not route through your API key.
  • Router aliases need the ~ prefix (for example ~anthropic/claude-sonnet-latest).

FAQ

How do I use OpenRouter in Cursor?

OpenRouter's official Cursor guide (beta) uses Cursor's Override OpenAI Base URL setting with a dedicated endpoint, https://openrouter.ai/api/v1/cursor. You then add OpenRouter model ids as custom models.

Which OpenRouter model ids work in Cursor?

The official docs read for this guide list ~anthropic/claude-opus-latest, ~openai/gpt-sol-latest, ~moonshotai/kimi-latest, deepseek/deepseek-v4-flash and ~anthropic/claude-sonnet-latest. Requests go to https://openrouter.ai/api/v1/cursor.

Is this an official OpenRouter and Cursor setup?

OpenRouter documents this setup in its own docs. It was last checked against 1 official page on October 17, 2026.

Sources

Last verified against 1 official page.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.