Cursor
Cursor can send its chat requests to an OpenAI-compatible endpoint with your own key, so you can route them through OpenPike for chat completions models such as DeepSeek, OpenAI and Gemini.
| OpenPike endpoint | POST /v1/chat/completions |
| Base URL | https://api.openpike.dev/v1 |
| Key | A virtual key, in Cursor’s OpenAI API key field |
| Models | provider/model names you add as custom models |
| Tags | On the virtual key (Cursor cannot add headers) |
1. Create a key for Cursor
Section titled “1. Create a key for Cursor”On the Keys page, create a virtual key with the tag agent=cursor. Cursor cannot send custom headers, so the tag on the key is what attributes its spend.
2. Configure Cursor
Section titled “2. Configure Cursor”- Open Cursor Settings, then Models, then the API Keys section.
- Paste the virtual key into the OpenAI API Key field and turn the key on.
- Turn on Override OpenAI Base URL and enter
https://api.openpike.dev/v1. - Add a custom model with the exact OpenPike name, for example
deepseek/deepseek-flashoropenai/gpt-5.4-mini, and select it in the chat.
Claude models are not available this way: OpenPike serves them on the Anthropic format only, and Cursor’s override is for the OpenAI format.
3. Check it works
Section titled “3. Check it works”Send a chat message with the custom model selected, then open Logs in OpenPike: the request appears with the agent cursor.
Example
Section titled “Example”A runnable copy of this setup, with a .env.example, is in the OpenPike examples repo.