Cursor Integration

Hook KOPRouter into the Cursor editor to use your own key for completions and chat.

**Prerequisites**
  • Cursor editor installed
  • A KOPRouter API key (prefixed with sk-)
Go to Settings → Models in Cursor and click Override next to OpenAI API Key, entering your KOPRouter API key. Under Override OpenAI Base URL, enter:
<span class="field-row"><span class="field-kv">Base URL</span><code>https://koprouter.kopglobal.com/v1</code></span>
Check the model IDs you want to use, save, and you're ready.
Cursor supports model families like `o1` and `claude`; confirm the model ID appears in `/v1/models` before enabling it. **Works the same on Windows and macOS**

The steps above are identical on Windows and macOS. If your network cannot reach KOPRouter directly (e.g. mainland China), enter an HTTP proxy address (7890 is an example — use your own proxy port) under Cursor’s “Settings → Network / Proxy” — no environment variables needed; or enable a system proxy (TUN / global mode). See Network & Proxy.