Skip to content

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)

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.

  1. Open Cursor Settings, then Models, then the API Keys section.
  2. Paste the virtual key into the OpenAI API Key field and turn the key on.
  3. Turn on Override OpenAI Base URL and enter https://api.openpike.dev/v1.
  4. Add a custom model with the exact OpenPike name, for example deepseek/deepseek-flash or openai/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.

Send a chat message with the custom model selected, then open Logs in OpenPike: the request appears with the agent cursor.

A runnable copy of this setup, with a .env.example, is in the OpenPike examples repo.