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

# Cursor (Beta)

> Use models on Concentrate in Cursor via OpenAI-compatible settings

<Info>
  Cursor integration is currently in **beta**. Some features may not work, some may only work with certain models.
</Info>

## Why Use Concentrate with Cursor?

By routing Cursor through Concentrate, you get centralized visibility and control over your team's AI usage — all in one place. Track spend and receive token credits (saving you money), set budget limits, and access models from our [model fortress](https://concentrate.ai/models) that Cursor doesn't natively offer without changing your workflow. Everything is visible in your Concentrate dashboard in real time.

## Supported Cursor Modes

Concentrate works with the following Cursor modes:

| Mode                 | Status        | Notes                                              |
| -------------------- | ------------- | -------------------------------------------------- |
| **Chat**             | Supported     | Fully functional with all models on Concentrate    |
| **Composer**         | Supported     | Works with models that support tool use            |
| **Agent**            | Supported     | Works with models that support tool use            |
| **Tab Autocomplete** | Not supported | Cursor routes autocomplete through its own backend |

## Prerequisites

Before you begin, ensure you have:

* A Concentrate AI account with an active API key (starts with `sk-cn`)
* [Cursor](https://cursor.com) installed and updated to the latest version

## Setup

<Steps>
  <Step title="Open Cursor model settings">
    Open Cursor Settings (**Cmd+,** on macOS or **Ctrl+,** on Windows/Linux), then click the **Models** tab in the sidebar.

    <Frame caption="Enable custom OpenAI base URL and OpenAI API Key at highlighted areas">
      <img src="https://mintcdn.com/concentrateai-8b9c0315/1IxPvuj7OJhlqWjq/images/cursor-step1.png?fit=max&auto=format&n=1IxPvuj7OJhlqWjq&q=85&s=bbb83b52f5078e566e59ddaf0c003616" alt="Cursor settings sidebar with Models selected, required fields highlighted" width="933" height="473" data-path="images/cursor-step1.png" />
    </Frame>

    Set the **Override OpenAI Base URL** field to:

    ```text theme={null}
    https://api.concentrate.ai/v1
    ```

    Then set the **OpenAI API Key** field to your Concentrate AI API key.
  </Step>

  <Step title="Add Concentrate AI models">
    Navigate to just above the API keys dropdown, and click **View All Models**.

    <Frame caption="Click 'View All Models'">
      <img src="https://mintcdn.com/concentrateai-8b9c0315/1IxPvuj7OJhlqWjq/images/cursor-step2.png?fit=max&auto=format&n=1IxPvuj7OJhlqWjq&q=85&s=de560660ca09515712de66509650a54e" alt="Cursor 'View All Models' button highlighted" width="357" height="186" data-path="images/cursor-step2.png" />
    </Frame>

    Now let's add some models from Concentrate:

    <Frame caption="Click 'Add Custom Model'">
      <img src="https://mintcdn.com/concentrateai-8b9c0315/1IxPvuj7OJhlqWjq/images/cursor-step3.png?fit=max&auto=format&n=1IxPvuj7OJhlqWjq&q=85&s=6c45fa525a6cca8df1d00c504e9cee44" alt="Cursor 'Add Custom Model' button highlighted" width="357" height="186" data-path="images/cursor-step3.png" />
    </Frame>

    When prompted, input any `provider/model` slug, such as:

    ```text theme={null}
    anthropic/claude-sonnet-4-6
    ```

    You can repeat this step to add as many models as you like using the same `provider/model` format. Refer to the [models endpoint](/docs/api-reference/endpoint/list-models) for a full list of available models and their providers.
  </Step>
</Steps>

## Switching Between Concentrate and Cursor

Once you have set Concentrate as your OpenAI Base URL, you can switch between Concentrate and Cursor's native model access from the same Models settings page by toggling OpenAI API Key:

* On: use Concentrate
* Off: use Cursor's native model access

Leave **Override OpenAI Base URL** as is with the [api.concentrate.ai/v1](https://api.concentrate.ai/v1) in place

## Verify Configuration

Open a new Cursor chat, select one of your custom models from the model dropdown, and run a quick prompt to test that it's working. If the response comes back successfully, your setup is working.

## Troubleshooting

<AccordionGroup>
  <Accordion title="Authentication failed" icon="key">
    Confirm your Concentrate API key is valid and fully pasted in the OpenAI key field. The key should start with `sk-cn`.
  </Accordion>

  <Accordion title="Connection or endpoint errors" icon="wifi">
    Verify the base URL is exactly `https://api.concentrate.ai/v1` with no trailing slash or extra spaces.
  </Accordion>

  <Accordion title="Models not appearing or not responding" icon="robot">
    1. Re-open Cursor Settings (**Cmd+,** / **Ctrl+,**) and confirm your custom models are listed and enabled
    2. Make sure the model slug matches the `provider/model` format exactly (e.g. `anthropic/claude-sonnet-4-6`) not just `model` (e.g., claude-sonnet-4-6)
    3. Restart Cursor and test again
  </Accordion>

  <Accordion title="Tab autocomplete not working" icon="keyboard">
    Cursor routes tab autocomplete through its own backend, not the custom OpenAI base URL. Concentrate AI does not support Cursor's autocomplete feature at this time.
  </Accordion>

  <Accordion />
</AccordionGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="API Reference" icon="code" href="/docs/api-reference/introduction">
    Explore all endpoints and request options
  </Card>

  <Card title="Available Models" icon="layer-group" href="/docs/api-reference/endpoint/list-models">
    Browse the full model catalog
  </Card>

  <Card title="Get Support" icon="life-ring" href="mailto:support@concentrate.ai">
    Contact our support team
  </Card>
</CardGroup>
