Quick startБыстрый старт
Top up your balance, create a token for a published model, and connect the tool you already use. One key works for OpenAI- and Anthropic-compatible clients.Пополните баланс, создайте токен под опубликованную модель и подключите инструмент, которым уже пользуетесь. Один ключ работает для OpenAI- и Anthropic-совместимых клиентов.
StartНачало
Open the cabinet, enter any amount from $10 and pay the invoice. The paid amount is credited as UT at 1 USD = 1,000,000 UT.Откройте кабинет, введите сумму от $10 и оплатите счёт. Оплата зачисляется в UT по курсу 1 USD = 1 000 000 UT.
Pick one published profile and create a token. The secret is shown once. Several tokens can use the same profile.Выберите опубликованный профиль и создайте токен. Секрет показывается один раз. Несколько токенов могут использовать один профиль.
OpenAI-compatible tools use https://llmcode.io/v1. Anthropic tools use https://llmcode.io without /v1.Инструменты с OpenAI-совместимым API используют https://llmcode.io/v1. Anthropic-инструменты — https://llmcode.io без /v1.
Put the token in the Authorization header or in x-api-key. Chat, messages, responses and embeddings share one base URL.Передайте токен в заголовке Authorization или в x-api-key. Chat, messages, responses и embeddings используют один base URL.
APIAPI
OpenAI-compatible base URLBase URL для OpenAI-совместимых
https://llmcode.io/v1POST /chat/completions, /responses, /embeddings; GET /models.POST /chat/completions, /responses, /embeddings; GET /models.
Anthropic Messages base URLBase URL для Anthropic Messages
https://llmcode.ioPOST /v1/messages. No /v1 in the base URL expected by the SDK.POST /v1/messages. В base URL для SDK — без /v1.
OpenAI authenticationАутентификация OpenAI
Authorization: Bearer $LLMCODE_API_KEYThe token starts with sk-llmcode-.Токен начинается с sk-llmcode-.
Anthropic authenticationАутентификация Anthropic
x-api-key: $LLMCODE_API_KEYSend anthropic-version: 2023-06-01 as with the native API.Передайте anthropic-version: 2023-06-01, как в нативном API.
CatalogКаталог
A published profile is the value you send as model. Prices are USD per 1M tokens.Опубликованный профиль — это значение, которое вы отправляете как model. Цены — в USD за 1M токенов.
| ModelМодель | DescriptionОписание | Input, per 1MВход, за 1M | Output, per 1MВыход, за 1M | Cache, per 1MКэш, за 1M |
|---|---|---|---|---|
| claude-opus-5-5 | Flagship Claude model for complex work: long context, strong reasoning and coding.Флагманская модель Claude для сложных задач: длинный контекст, сильное рассуждение и код. | $2.70 | $8.00 | $0.14 |
| deepseek-flash | Fast, low-cost DeepSeek model for everyday chat, drafts and bulk tasks.Быстрая и недорогая модель DeepSeek для повседневных задач, черновиков и больших объёмов. | $0.50 | $2.00 | $0.01 |
| claude-sonnet-5-5 | Balanced Claude model: fast, strong coding and writing at a lower price.Сбалансированная модель Claude: быстрая, сильна в коде и текстах, дешевле флагмана. | $1.33 | $6.67 | $0.07 |
| deepseek-v4-pro | Stronger DeepSeek model for reasoning, long context and production workloads.Более сильная модель DeepSeek для рассуждений, длинного контекста и рабочих задач. | $2.20 | $6.60 | $0.07 |
AgentsАгенты
Copy the block for your tool. The token stays in an environment variable and is never pasted into a shared file.Скопируйте блок для своего инструмента. Токен остаётся в переменной окружения и не попадает в общий файл.
Put the token in LLMCODE_API_KEY. The model name is the published profile from the table above.Положите токен в LLMCODE_API_KEY. Имя модели — опубликованный профиль из таблицы выше.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"llmcode": {
"npm": "@ai-sdk/openai-compatible",
"name": "LLMcode",
"options": {
"baseURL": "https://llmcode.io/v1",
"apiKey": "{env:LLMCODE_API_KEY}"
},
"models": { "deepseek-flash": {} }
}
}
}Provider block — the opencode entry above. Put a published profile after llmcode/; a faster profile keeps autocomplete latency low.Блок провайдера — запись opencode выше. После llmcode/ укажите опубликованный профиль; для автодополнения лучше быстрый профиль.
{
"chat.defaultModel": "llmcode/deepseek-flash",
"llmcode.autocomplete.enabled": true,
"llmcode.autocomplete.model": "llmcode/deepseek-flash"
}ANTHROPIC_BASE_URL has no /v1. The two model variables point to the matching published profiles.ANTHROPIC_BASE_URL — без /v1. Две переменные модели указывают на соответствующие опубликованные профили.
export ANTHROPIC_BASE_URL="https://llmcode.io"
export ANTHROPIC_AUTH_TOKEN="$LLMCODE_API_KEY"
export ANTHROPIC_DEFAULT_OPUS_MODEL="claude-opus-5-5"
export ANTHROPIC_DEFAULT_SONNET_MODEL="claude-sonnet-5-5"
claude /statusWindows · PowerShell
$env:ANTHROPIC_BASE_URL = "https://llmcode.io"
$env:ANTHROPIC_AUTH_TOKEN = "$env:LLMCODE_API_KEY"
$env:ANTHROPIC_DEFAULT_OPUS_MODEL = "claude-opus-5-5"
$env:ANTHROPIC_DEFAULT_SONNET_MODEL = "claude-sonnet-5-5"
claude /statusAdd the provider to ~/.codex/config.toml and keep the key in the environment.Добавьте провайдера в ~/.codex/config.toml, ключ держите в окружении.
model = "deepseek-flash"
model_provider = "llmcode"
[model_providers.llmcode]
name = "LLMcode"
base_url = "https://llmcode.io/v1"
env_key = "LLMCODE_API_KEY"
wire_api = "responses"Windows
%USERPROFILE%\.codex\config.tomlSettings → Models → OpenAI API Key. Enable the override and add the profile as a custom model.Settings → Models → OpenAI API Key. Включите override и добавьте профиль как кастомную модель.
OpenAI API Key: $LLMCODE_API_KEY
Override Base URL: https://llmcode.io/v1
Custom model name: deepseek-flashUse the OpenAI Compatible provider; the profile is the Model ID.Провайдер OpenAI Compatible; профиль — это Model ID.
API Provider: OpenAI Compatible
Base URL: https://llmcode.io/v1
API Key: $LLMCODE_API_KEY
Model ID: deepseek-flashAdd the profile to the models list in config.json.Добавьте профиль в список models в config.json.
{
"models": [
{
"title": "LLMcode deepseek-flash",
"provider": "openai",
"model": "deepseek-flash",
"apiBase": "https://llmcode.io/v1",
"apiKey": "$LLMCODE_API_KEY"
}
]
}Settings → Connections → OpenAI API. The key is shown once in the cabinet.Settings → Connections → OpenAI API. Ключ показывается в кабинете один раз.
API Base URL: https://llmcode.io/v1
API Key: $LLMCODE_API_KEY
Model: deepseek-flashOne request to the OpenAI-compatible chat endpoint.Один запрос к OpenAI-совместимому chat-endpoint.
curl https://llmcode.io/v1/chat/completions \
-H "Authorization: Bearer $LLMCODE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-flash","messages":[{"role":"user","content":"hi"}]}'Windows · PowerShell
curl.exe https://llmcode.io/v1/chat/completions `
-H "Authorization: Bearer $env:LLMCODE_API_KEY" `
-H "Content-Type: application/json" `
-d '{"model":"deepseek-flash","messages":[{"role":"user","content":"hi"}]}'DesktopДесктоп
GUI apps that connect to the API directly. The token stays in an environment variable, never in a shared file.Десктоп-приложения, которые обращаются к API напрямую. Токен остаётся в переменной окружения, а не в общем файле.
Install the extension, then point chat and autocomplete at the published profile.Установите расширение и укажите опубликованный профиль для чата и автодополнения.
{
"chat.defaultModel": "llmcode/deepseek-flash",
"llmcode.autocomplete.enabled": true,
"llmcode.autocomplete.model": "llmcode/deepseek-flash"
}Settings → Models → OpenAI API Key. Enable the override and add the profile as a custom model.Settings → Models → OpenAI API Key. Включите override и добавьте профиль как кастомную модель.
OpenAI API Key: $LLMCODE_API_KEY
Override Base URL: https://llmcode.io/v1
Custom model name: deepseek-flashUse the OpenAI Compatible provider; the profile is the Model ID.Провайдер OpenAI Compatible; профиль — это Model ID.
API Provider: OpenAI Compatible
Base URL: https://llmcode.io/v1
API Key: $LLMCODE_API_KEY
Model ID: deepseek-flashHelp → Troubleshooting → Enable Developer Mode, then Developer → Configure third-party inference. Pick the Gateway and choose the published profile as the model.Help → Troubleshooting → Enable Developer Mode, затем Developer → Configure third-party inference. Выберите Gateway и опубликованный профиль как модель.
Inference provider: Gateway
Gateway base URL: https://llmcode.io
Gateway auth scheme: x-api-key
Gateway API key: $LLMCODE_API_KEYEditorРедактор
The LLMcode extension runs the opencode engine inside VS Code: the same token drives native chat, the @llmcode agent, Ctrl+K edits and tab completion. Requests are charged to your token balance like any API call.Расширение LLMcode запускает движок opencode внутри VS Code: один токен работает в нативном чате, агенте @llmcode, правках Ctrl+K и автодополнении. Запросы списываются с баланса токена, как и обычные вызовы API.
code --install-extension llmcode.llmcodeRun the command above or install LLMcode from the Marketplace, then reload the window: the extension activates on startup.Выполните команду выше или установите LLMcode из Marketplace, затем перезагрузите окно: расширение запускается при старте.
The extension runs the opencode CLI. If it is missing, run LLMcode: Check opencode Installation and accept the installer in the integrated terminal.Расширение работает на CLI opencode. Если его нет, выполните LLMcode: Check opencode Installation и примите установку в интегрированном терминале.
Add the opencode provider block from the tool list above to ~/.config/opencode/opencode.json and keep the token in LLMCODE_API_KEY. List every published profile you want in the models map; a token without a model restriction may use all of them.Добавьте блок провайдера opencode из списка инструментов выше в ~/.config/opencode/opencode.json, токен держите в LLMCODE_API_KEY. Перечислите в models нужные опубликованные профили; токен без ограничения по модели может использовать все.
In the chat, choose LLMcode (opencode) in the model picker or address @llmcode. chat.defaultModel and llmcode.autocomplete.model pin the defaults, LLMcode: Show Model Log shows which model answered, and Take Over Inline Suggestions disables Copilot ghost text.В чате выберите LLMcode (opencode) в списке моделей или обратитесь к @llmcode. chat.defaultModel и llmcode.autocomplete.model задают значения по умолчанию, LLMcode: Show Model Log показывает отвечавшую модель, Take Over Inline Suggestions отключает подсказки Copilot.
The extension adds no telemetry and keeps the token in the opencode config. After editing opencode.json, reload the window so the engine rereads the provider list.Расширение не добавляет телеметрию и хранит токен в конфигурации opencode. После правки opencode.json перезагрузите окно, чтобы движок перечитал список провайдеров.
RulesПравила
ErrorsОшибки
| HTTP | CodeКод | MeaningЗначение |
|---|---|---|
| 400 | invalid_request_body | The request body, model or messages field is not valid.Тело запроса, модель или поле сообщений неверны. |
| 401 | invalid_api_key | The token is missing, invalid, revoked or expired.Токен отсутствует, неверен, отозван или истёк. |
| 402 | insufficient_quota | The account balance or the token limit is too low.Недостаточно баланса аккаунта или лимита токена. |
| 403 | model_not_allowed | The token is not allowed to use this profile.Токену не разрешён этот профиль. |
| 403 | ip_not_allowed | The request IP is not in the token IP list.IP запроса не входит в список IP токена. |
| 404 | model_not_found | The profile is not published or has no active price.Профиль не опубликован или у него нет действующей цены. |
| 429 | rate_limit_exceeded | The request rate limit is exceeded.Превышен лимит частоты запросов. |
| 500 | internal_error | Unexpected gateway error. A retry with the same request id is safe.Непредвиденная ошибка шлюза. Повтор с тем же request id безопасен. |
| 503 | upstream_unavailable | The upstream is unavailable; the hold is released.Апстрим недоступен; удержание снимается. |
Model names in the API are LLMcode profiles with their own routing. They do not mean direct access to the same-named models of OpenAI LLC or Anthropic PBC. Trademarks belong to their owners. The service is independent and is not affiliated with OpenAI or Anthropic.Названия моделей в API — профили LLMcode с собственной маршрутизацией. Они не означают прямой доступ к одноимённым моделям OpenAI LLC или Anthropic PBC. Товарные знаки принадлежат их правообладателям. Сервис независим и не аффилирован с OpenAI/Anthropic.