---
title: "Cursor integration"
description: "Settings for using Cursor with minirouter."
canonical_url: "https://minirouter.sh/integrations/cursor"
markdown_url: "https://minirouter.sh/integrations/cursor.md"
last_updated: "2026-09-13"
---

# Cursor + minirouter

OpenAI base-URL override for Cursor, with the current routing limitations stated up front.

Base URL: https://api.minirouter.sh/v1
Get a key: https://minirouter.sh/key

## Settings

Cursor Settings → Models → OpenAI API Key → Override OpenAI Base URL

1. OpenAI API Key: mr-live-… (your key)
2. Override OpenAI Base URL: https://api.minirouter.sh/v1
   This override applies globally to OpenAI-shaped model traffic in Cursor.
3. Model ID: zai/glm-5.3-flash
   Compatibility depends on Cursor's global OpenAI override.

## Configuration

Reference values

```
OpenAI API Key: mr-live-YOUR-KEY-HERE
Override OpenAI Base URL: https://api.minirouter.sh/v1
Model ID: zai/glm-5.3-flash
```

## Recommended models

Only use a model after confirming it appears in the live model catalog at https://minirouter.sh/api/v1/models.

- zai/glm-5.3-flash: Best current balance of coding ability, agentic performance, context and cost.
- openai/gpt-5.6-sol: Higher-intelligence option when task quality matters more than spend.
- spacexai/grok-4.6: Strong agentic alternative with a 500K-token window.
- google/gemini-3.8-flash: Multimodal coding alternative with a 1M-token window.

## Troubleshooting

### Built-in Cursor models stop working while the override is enabled

Cursor's OpenAI base-URL override is global. Turn it off when switching back to models served by Cursor rather than MiniRouter.

### The override works, but requests still pass through Cursor

Cursor builds the final request on its own backend before forwarding it to the overridden endpoint. This is not a direct client-to-MiniRouter connection.

### 404, HTML, or a parse error on every request

Almost always the base URL. Use https://api.minirouter.sh/v1 — the bare host without /v1 also works, but never append /chat/completions to the base URL field; the client adds that path itself.

Error reference: https://minirouter.sh/docs/errors#invalid_request

### 401 on every request

Wrong or rotated key. Keys start with mr-live-; after a rotation the old key keeps working for 24 hours, then dies.

Error reference: https://minirouter.sh/docs/errors#invalid_api_key
