Prerequisites
- Cursor Pro or higher
- Active Orq.ai account with AI Gateway access
- Orq.ai API key
- Model enabled in AI Gateway → Supported Models
Setup
Open Cursor Settings and navigate to Models
Open Cursor Settings (+, / Ctrl+,) and select the Models tab.
Enter the API key
Enable the OpenAI API Key toggle and paste the Orq.ai API key in the field. Cursor sends this key to whatever base URL is configured below. It does not have to be an OpenAI key.
Set the base URL
In Override OpenAI Base URL, enter:If the field is not visible, expand the advanced options under the OpenAI API Key toggle.
Troubleshooting
Verify fails with authentication error
Verify fails with authentication error
Confirm the API key is a valid Orq.ai API key and that the model ID is enabled in AI Gateway → Supported Models.
Model not found or 404 error
Model not found or 404 error
The model must use the provider-prefixed format (e.g.
openai/gpt-5.4, not gpt-4o) and must be enabled in AI Gateway → Supported Models.No traces appearing in Orq.ai
No traces appearing in Orq.ai
Confirm the base URL is set to
https://api.orq.ai/v3/router and the request is sent from the chat panel (+L / Ctrl+L). Inline edit and tab completion bypass the custom endpoint.Default Cursor models stopped working
Default Cursor models stopped working
Setting a custom base URL disables the default Cursor model list. Remove the base URL override in Cursor Settings → Models to restore default behavior, or add the required models manually using provider-prefixed IDs.
Verification
Send a message in the chat panel (+L / Ctrl+L). The response appears in Cursor and the trace appears in Orq.ai Traces with the model identifier (e.g.openai/gpt-5.4).