Skip to content

Cursor

Cursor is an AI-first code editor. Its "Custom OpenAI" mode talks to PrimeRouter directly.

Cursor is a GUI tool

The installer only edits Cursor's settings.json. You need to launch Cursor at least once so the config directory exists, then run the script.

One-line installer

powershell
irm https://primerouter.ai/install/cursor.ps1 | iex
bash
curl -fsSL https://primerouter.ai/install/cursor.sh | bash

💡 The script backs up your existing settings.json then injects (via jq when available, or a fresh write):

json
"cursor.aiProvider": "openai",
"openai.apiKey": "<your PrimeRouter key>",
"openai.apiBase": "https://primerouter.ai/v1"

Restart Cursor and you'll see PrimeRouter-routed models in the model picker.

Fallback: manual install

Configure inside Cursor's UI
  1. Open Cursor → Cmd/Ctrl + ,
  2. Search "OpenAI API Key", set Base URL to https://primerouter.ai/v1
  3. Paste your PrimeRouter API Key
  4. Full walkthrough: Coding Tools → Cursor

Built for transparent, auditable, crypto-native AI inference. About · Terms · Privacy