DocumentationCursor

Cursor Integration

Configure as a custom AI provider in Cursor.

Prerequisites

  • A Console account
  • Cursor IDE installed (any version)
  • docs.integrations.cursor.prereqs.s3

Step 1: Get your credentials

  1. Log in to your Console
  2. Go to Access Credentials page
  3. Copy your Base URL and API Key
Credentials
Base URL:  https://your-router-domain.com/v1
API Key:   sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Step 2: Configure Cursor

  1. Open Cursor Settings: Cursor → Settings → Models
  2. Click "Add Model", enter the model name (e.g. claude-sonnet-4-6)
  3. Enter your API Key in the "OpenAI API Key" field
  4. Enter your Base URL in the "OpenAI Base URL" field
  5. Enable the model

Cursor requires the Base URL to end with /v1. Double-check the format from Console.

Step 3: Verify the connection

Send a message in Cursor Chat. If you receive an AI response, the integration is successful. Check your API Key and Base URL if you see errors.

Troubleshooting

Cursor shows "invalid API key"
Ensure the API Key was copied completely without extra spaces.
401 Unauthorized error
API Key is invalid or expired. Create a new one in Console.
429 Too Many Requests
Too many requests. Wait a moment and retry.
Quick StartVS Code