[← Developer docs](https://aictrlx.ru/docs)

Integration

# Cursor with aictrlx

Cursor, the AI code editor, can send its chat requests to any OpenAI-compatible API. With aictrlx it uses DeepSeek, Claude and the other models of the catalog with one key, paid in roubles.

## Setup

1.  Open **Cursor Settings → Models**.
2.  Under **API Keys**, paste your key into **OpenAI API Key** and enable it.
3.  Enable **Override OpenAI Base URL** and enter `https://aictrlx.ru/v1`.
4.  Add custom models named `auto`, `smart`, `coding` (or any model id from above) and pick one in chat.

Cursor sends these requests from its own servers, so the base URL must be reachable from the internet. Tab completion keeps using Cursor's built-in models.

## Which model to use

-   `coding` picks the model best suited for code for each request.
-   `smart` for the hardest tasks, `fast` for quick edits.
-   Or a concrete model id from the models page, added as a custom model in Cursor.

[Models and prices →](https://aictrlx.ru/models)

## What it costs

You pay for the tokens the model reads and writes, at the prices per 1M tokens on the models page, in roubles: from the plan's allowance first, then from the balance.

Every request, with its model, tokens and cost, is in the request log of the dashboard.

## If something does not work

-   `401` with `invalid_api_key` or `missing_api_key`: the tool does not send the key, or it is not an active `aictrlx_live_...` key. Create a new one on the API Keys page.
-   `404` with `model_not_found`: the model name is neither a routing mode (`auto`, `fast`, `smart`, `coding`) nor an id from the models page.
-   `403` with `model_not_allowed`: the key is limited to some models; allow this one in the key's settings.
-   `429`: too many requests per minute (`rate_limit_exceeded`), or a quota or budget ran out (`monthly_quota_exceeded` and others).

[All errors and limits →](https://aictrlx.ru/docs#errors)

## Other integrations

-   [Claude Code with aictrlx](https://aictrlx.ru/docs/claude-code)
-   [Continue with aictrlx](https://aictrlx.ru/docs/continue)
-   [LangChain with aictrlx](https://aictrlx.ru/docs/langchain)
-   [Vercel AI SDK with aictrlx](https://aictrlx.ru/docs/vercel-ai-sdk)
-   [LiteLLM with aictrlx](https://aictrlx.ru/docs/litellm)

## Need a key?

Sign up: the key is in the dashboard a minute later.

[Create a free account →](https://aictrlx.ru/register)

## What's new

New models, routing modes and API changes.

[Changelog →](https://aictrlx.ru/docs/changelog)
