Using Cursor (Bring Your Own Key)
Use Onysoft models in Cursor through the OpenAI-compatible address
With Cursor's "Override OpenAI Base URL" setting you can use models from the Onysoft catalog inside Cursor. Requests arrive at the /v1/chat/completions endpoint and are billed from your Onysoft balance.
Setup
- Using custom models with your own API key requires a paid Cursor plan (Pro or higher); the free plan only offers Cursor's "Auto" mode.
- Create a separate key for Cursor on the API Keys page of the dashboard.
- In Cursor → Settings → Models → API Keys, paste your
sk-ony-key into the "OpenAI API Key" field. - Turn on "Override OpenAI Base URL" and enter
https://api.onysoft.com/v1; do not append/chat/completions. - Use "Add Custom Model" to enter the model's catalog id exactly (e.g.
deepseek/deepseek-v4.1-flash,openai/gpt-5.3-codex,anthropic/claude-sonnet-5.5) and confirm with Verify. List of ids: the Models page orGET /v1/models. - In the model picker of the chat window, turn Auto off and select the model you added.
Ask and Agent Modes
Ask (chat) mode sends standard chat requests. In Agent mode, Cursor sends different request formats (a Responses body, the ApplyPatch tool) for models named GPT and Claude; these formats are supported on the server side since 4 November 2026. Agent mode was tested with the real Cursor client on 6 November 2026; if you run into a problem, send us the model and the error text through support.
Connection Problems
If you see a connection error, set Settings → Network → HTTP Compatibility Mode to HTTP/1.1, check that the Base URL is https://api.onysoft.com/v1 and that the model id is written exactly, including case and slashes.
Limitations on the Cursor Side
- Tab autocompletion always uses Cursor's own model.
- Image attachments do not work while this setting is on (a Cursor issue); for work with images, turn the setting off and use Cursor's own models.
- While "Override OpenAI Base URL" is on, Cursor's own OpenAI models are also routed to this address and return "model not available"; turn the setting off when you use Cursor's models.
- A custom model with the same name as one of Cursor's own models cannot be added; use the prefixed catalog ids.
- Cursor routes all requests through its own servers on this path; Cursor's zero data retention policy does not apply to requests made with your own key (include this in your data protection assessment).
- On Cursor Teams/Enterprise plans, Cursor may also charge for requests made with your own key.
Balance and Rate Limit
Cursor does not send a maximum output limit; the balance pre-check uses the model's maximum output, so with a low balance requests can be rejected with "insufficient balance". You are charged for actual usage. Above 60 requests per minute Cursor shows "User API Key Rate limit exceeded"; a separate key for Cursor eases this.