Skip to content
IQ

Cursor

Cursor reads model configuration from its in-app settings panel rather than from environment variables. Cursor accepts your own API keys for supported chat models; see Cursor's API-key docs for what your version supports. Sending that traffic through IQ needs Cursor to accept a custom base URL.

Drop-in switch

Open Cursor Settings → Models and choose the provider; follow Cursor's API-key setup guide for the current controls.

If your Cursor version accepts a custom base URL, use https://gateway.iq-routing.com/v1 as the base URL and your IQ API key as the key.

For connection checks and credential errors, follow Cursor's current API-key guidance.

Verify it routes

Send a short chat prompt, then use Requests to inspect the recorded model and cache-hit status; if you have X-Request-Id, open /requests/<uuid> to find that request.

Custom API keys cover Cursor chat models; Tab completion uses Cursor's built-in models, as described in its API-key docs.

Using capability aliases

Use a capability alias to request a suitable model for a task; open Requests to see the model IQ recorded and manage your workspace's overrides at /settings/capabilities.

For custom model setup, use Cursor's current API-key docs instead of copying version-specific settings keys.

Open Requests in the dashboard to see the model IQ recorded for each Cursor request. When present, the x-iq-model response header identifies the model IQ dispatched, or the model recorded for a cache hit, including on streams. A provider can use a different model from the one IQ dispatched. Streaming headers are sent before provider-side substitutions can be verified. Use X-Request-Id to find the request in the dashboard's /requests view. See the capability aliases docs for the full set of defaults, the focus-mode interaction, and how to override them. A workspace owner or admin can override the default capability mapping in the editor at /settings/capabilities.

Common gotchas

If requests do not reach IQ, review Cursor's current setup instructions.

Check Cursor's API-key docs for its current provider setup and supported chat models.

The Composer feature (multi-file edits) sends batched requests. Each one appears as its own row in /requests; the gateway does not collapse them. If you exceed your daily budget mid-Composer-session, the gateway returns 429 with an X-RateLimit-Scope: daily_budget header and the standard OpenAI error body shape; Cursor surfaces that error message in the Composer dialog. See the FAQ for the full list of rate-limit scopes.

Review Cursor's privacy docs and the security docs before changing Cursor's “Privacy Mode” setting.

Try this in the playground

Open the playground for the Cursor recipe →