API для Cline в VS CodeAPI for Cline in VS Code
Cline — бесплатное расширение-агент для VS Code. Встроенный Copilot менять адрес API не умеет, поэтому агента подключаем через Cline — это два поля в настройках.Cline is a free agent extension for VS Code. The built-in Copilot cannot change the API address, so we connect the agent through Cline — just two fields in its settings.
Ключ не отправляется с этой страницы: команды собираются локально в браузере. Без галочки выше ключ исчезнет после закрытия страницы. Ключ — как пароль: не показывай его на скриншотах, не отправляй в чаты и не добавляй в Git. Нет ключа — зарегистрируйся: личный ключ выпустится сам. Кнопки скачивания готовых файлов (settings.json, codex-setup.bat) — на странице «Подключение» — генератор конфигураций.Your key never leaves this page: commands are assembled locally in your browser. Without the checkbox above, the key disappears when you close the page. Treat the key like a password: never show it in screenshots, chats, or Git. No key yet? Register — a personal key is issued automatically. Download buttons for ready-made files are on the full connection page.
Как подключить
API для Cline в VS CodeAPI for Cline in VS Code
Ключ из поля выше автоматически подставляется в команды и конфиги.Your key from the field above is inserted into the commands and configs automatically.
- В VS Code открой «Расширения» (Ctrl+Shift+X) → в поиске набери Cline → Install.
- Кликни по иконке Cline в левой панели → шестерёнка (Settings).
- API Provider: выбери OpenAI Compatible.
- Base URL: вставь
- Model ID: впиши модель точно как в каталоге, например gpt-5.6-terra (в некоторых версиях поле называется просто Model — это оно). Готово.
sk-ВАШ_КЛЮЧСовет по расходу. Не включай полное авто-одобрение действий сразу после подключения: агент делает много запросов, и каждый расходует токены. Сначала посмотри вживую, как он работает, потом ослабляй контроль.
Встроенный GitHub Copilot не поддерживает смену адреса API — это ограничение VS Code, а не сервера. Поэтому для своего API и нужен Cline (или другое расширение с поддержкой Base URL).
- In VS Code open “Extensions” (Ctrl+Shift+X) → search for Cline → Install.
- Click the Cline icon in the left panel → the gear (Settings).
- API Provider: choose OpenAI Compatible.
- Base URL: paste
- Model ID: enter the model exactly as in the catalog, for example gpt-5.6-terra (in some versions the field is simply called Model — that's the one). Done.
sk-ВАШ_КЛЮЧSpending tip. Don't enable full auto-approval of actions right after connecting: the agent makes many requests, and every one spends tokens. Watch how it works live first, then relax the controls.
The built-in GitHub Copilot doesn't support changing the API address — a VS Code limitation, not the server's. That's why Cline (or another extension with Base URL support) is needed for a custom API.
Частые ошибки
Ошибка «model not found» или пустой ответ
401 — ключ не принят
Токены тают слишком быстро
A “model not found” error or an empty response
401 — the key is not accepted
Tokens are melting too fast
Ограничения и совместимость
Cline хранит ключ в локальных настройках VS Code на твоём компьютере.
Агент расходует заметно больше токенов, чем обычный чат: он шлёт контекст задачи в каждом шаге. Следи за балансом.
Названия полей в Cline могут меняться между версиями расширения — ориентируйся на «Base URL», «API Key», «Model ID».
Cline stores the key in VS Code's local settings on your computer.
An agent spends noticeably more tokens than a regular chat: it sends the task context with every step. Keep an eye on your balance.
Field names in Cline may change between extension versions — look for “Base URL”, “API Key”, “Model ID”.
Вопросы и ответы
Почему не использовать встроенный Copilot?
Какая модель лучше для Cline?
Куда сохраняется мой ключ?
Как увидеть, сколько токенов съел агент?
Why not use the built-in Copilot?
Which model is best for Cline?
Where is my key stored?
How do I see how many tokens the agent ate?
Дальше:Next: Полный гайд и генератор конфигурацийFull guide and config generator Таблица моделейModel table Документация APIAPI documentation Баланс и логиBalance and logs
Инструкции для других программ:Guides for other tools:
Codex Claude Code Cursor ZCode Терминал / cURLTerminal / cURL Python JavaScript JetBrains Antigravity Claude Code в РоссииClaude Code in Russia