// IDE Agent
Use Cursor with llmrelay
The AI-first VS Code fork with agent mode. Point it at api.llmrelay.dev and get the same models at half the price.
Recommended model
claude-opus-5
Route
openai-compatible
On llmrelay
$2.5/M · $12.5/M
Setup
- 1 Open Cursor Settings → Models.
- 2 Toggle off every default model to force custom endpoints.
- 3 Click "Add model" and enter claude-opus-5.
- 4 Set OpenAI API Key = your llmrelay key.
- 5 Set OpenAI Base URL = https://api.llmrelay.dev/v1.
- 6 Click "Verify" and start a chat.
Config
// Cursor Settings → Models
{
"OpenAI API Key": "sk-llmrelay-...",
"OpenAI Base URL": "https://api.llmrelay.dev/v1",
"Custom models": ["claude-opus-5", "claude-sonnet-5", "claude-haiku-4-5"]
} Smoke test
Copy, paste, run. If you get JSON back with a message, you're good.
curl https://api.llmrelay.dev/v1/chat/completions \
-H "Authorization: Bearer $LLMRELAY_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"claude-opus-5","messages":[{"role":"user","content":"say hi"}]}' Gotchas
- !Cursor agent mode issues many small tool calls. Opus 4.7 is worth the extra $ vs Sonnet if you use agent mode daily.
- !If Cursor errors "model not found", make sure you added the exact model id in the custom list.
You need an llmrelay key first
Sign up in about 30 seconds — free to create an account, no subscription, $10 minimum top-up.