> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prisminference.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Point Cursor's OpenAI-compatible provider at Prism with a custom base URL.

Cursor exposes an **Override OpenAI Base URL** setting, so you can route its
chat and agent requests to Prism. Cursor sends these requests through its own
backend for prompt building, so this is a bring-your-own-key setup rather than a
direct connection.

If you have no key, create one at
[prisminference.com/signup](https://prisminference.com/signup) first.

## Configure

<Steps>
  <Step title="Open model settings">
    Open **Cursor Settings** (`Cmd + ,` on macOS, `Ctrl + ,` elsewhere) and go to
    **Models**.
  </Step>

  <Step title="Set the OpenAI API key">
    In the **API Keys** section, turn on **OpenAI API Key** and paste your Prism API
    key. Cursor sends this key to whichever base URL you configure, even though it
    is labeled OpenAI.
  </Step>

  <Step title="Override the base URL">
    Turn on **Override OpenAI Base URL** and set it to:

    ```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
    https://api.prisminference.com/v1
    ```
  </Step>

  <Step title="Add the Prism models">
    In the **Models** section, click **+ Add model** and add each Prism model ID:

    * `deepseek-v4.1-flash`
    * `deepseek-v4-flash`

    Make sure both are toggled on. Send the bare model ID on the wire; do not prefix
    it with a provider name.
  </Step>

  <Step title="Select a model">
    Open the model picker in chat or the agent panel and select
    `deepseek-v4.1-flash`.
  </Step>
</Steps>

## Notes

* The override applies to every model that uses your key, so turn it off to
  switch back to Cursor's hosted models.
* Tab completion always uses Cursor's built-in models and does not use Prism.
* Avoid custom names that resemble a native Cursor model; Cursor may route those
  back through its own servers.
* Prism discards request inputs and outputs after processing. See
  [Zero data retention](/zero-data-retention).

## Verify

Send a short prompt in a new chat and confirm the response arrives. The request
should appear in your Prism usage once it completes.
