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

Integration

# Continue with aictrlx

Continue, the open-source AI assistant for VS Code and JetBrains IDEs, talks to aictrlx as an `openai` provider with its own `apiBase`: chat, edit and agent modes on the models of the catalog.

## Setup

### Put the key in an environment variable

Every example below reads the key from `AICTRLX_API_KEY`, so it never ends up in your code.

Shell

```
export AICTRLX_API_KEY="aictrlx_live_..."
```

Add the models to `~/.continue/config.yaml` (provider `openai` with `apiBase`), replacing the key placeholder:

config.yaml

```
name: aictrlx
version: 0.0.1
schema: v1

models:
  - name: aictrlx auto
    provider: openai
    model: auto
    apiBase: https://aictrlx.ru/v1
    apiKey: aictrlx_live_...
  - name: aictrlx coding
    provider: openai
    model: coding
    apiBase: https://aictrlx.ru/v1
    apiKey: aictrlx_live_...
```

## Which model to use

-   `coding` for chat and edits in code.
-   `fast` for autocompletion-like quick requests.
-   Several entries in `models` with different ids let you switch between models in the IDE.

[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)
-   [Cursor with aictrlx](https://aictrlx.ru/docs/cursor)
-   [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)
