API для ZCodeAPI for ZCode

Подключается через мастер настройки при первом запуске — команды не нужны. Всего четыре значения, все четыре ниже.It connects through the setup wizard on first launch — no commands needed. Just four values, all listed below.

Base URL
API KeyAPI Key

Ключ не отправляется с этой страницы: команды собираются локально в браузере. Без галочки выше ключ исчезнет после закрытия страницы. Ключ — как пароль: не показывай его на скриншотах, не отправляй в чаты и не добавляй в 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 для ZCodeAPI for ZCode

Ключ из поля выше автоматически подставляется в команды и конфиги.Your key from the field above is inserted into the commands and configs automatically.

  1. Установи и запусти ZCode.
  2. При первом запуске откроется мастер настройки подключения — выбери добавление своего провайдера (OpenAI-совместимого). Если ZCode уже настроен — то же самое в настройках: добавление провайдера модели.
  3. Укажи четыре значения:
Base URL
Формат APIChat completions (/chat/completions)
API Keysk-ВАШ_КЛЮЧ
Модельgpt-5.6-terra

Формат выбирай строго «Chat completions». Формат «Anthropic Messages» в ZCode вызывает ошибку TLS — это проверено на практике. У самого сервера Anthropic-формат работает (Claude Code, например, подключается именно через него) — ограничение именно ZCode.

Модель меняется в настройках ZCode в любой момент. Рекомендуются gpt-5.6-terra и claude-sonnet-5 — список в таблице моделей.

  1. Install and launch ZCode.
  2. On first launch a setup wizard opens — choose adding your own (OpenAI-compatible) provider. If ZCode is already set up — the same thing in the settings: add a model provider.
  3. Enter four values:
Base URL
API formatChat completions (/chat/completions)
API Keysk-ВАШ_КЛЮЧ
Modelgpt-5.6-terra

Pick the format strictly “Chat completions”. The “Anthropic Messages” format in ZCode causes a TLS error — verified in practice. The server itself handles the Anthropic format fine (Claude Code, for example, connects through it) — this limitation is ZCode-specific.

The model can be changed in ZCode settings at any time. Recommended: gpt-5.6-terra and claude-sonnet-5 — the list is in the model table.

Частые ошибки

Ошибка TLS при проверке подключения
Выбран формат «Anthropic Messages». Переключи провайдера на формат «Chat completions» — с ним всё работает.
401 — ключ не принят
Ключ не скопирован целиком. Скопируй его кнопкой из карточки вверху страницы и вставь заново.
Модель не отвечает или ошибка «model not found»
ID модели должен в точности совпадать с записью в таблице моделей. Рекомендуются gpt-5.6-terra и claude-sonnet-5.
A TLS error when checking the connection
The “Anthropic Messages” format is selected. Switch the provider to the “Chat completions” format — everything works with it.
401 — the key is not accepted
The key wasn't copied in full. Copy it with the button from the card at the top of the page and paste it again.
The model doesn't respond or a “model not found” error
The model ID must match the entry in the model table exactly. Recommended: gpt-5.6-terra and claude-sonnet-5.

Ограничения и совместимость

Рабочий формат в ZCode — «Chat completions» (проверено на практике). Anthropic-формат в этом редакторе не работает из-за ошибки TLS.

Пункты мастера настройки могут называться немного по-разному в разных версиях ZCode — ищи добавление «своего провайдера» / «OpenAI-compatible».

The working format in ZCode is “Chat completions” (verified in practice). The Anthropic format doesn't work in this editor due to a TLS error.

Wizard items may be named slightly differently in different ZCode versions — look for adding a “custom provider” / “OpenAI-compatible”.

Вопросы и ответы

Мастер настройки уже пропущен — где найти настройку провайдера?
В настройках ZCode: раздел провайдеров моделей → добавить своего (OpenAI-совместимого). Те же четыре значения.
Какую модель поставить по умолчанию?
gpt-5.6-terra — баланс цены и качества. Для сложного кода — claude-sonnet-5.
Нужен ли VPN?
Нет: сервер в России, соединение прямое. Если у тебя включён VPN — лучше выключить, так быстрее.
Как проверить баланс ключа?
На странице «Баланс и логи» — вставь ключ и увидишь остаток и списания.
The setup wizard is already gone — where do I find the provider settings?
In ZCode settings: the model providers section → add your own (OpenAI-compatible). The same four values.
Which model should I set as the default?
gpt-5.6-terra — the best balance of price and quality. For hard code — claude-sonnet-5.
Do I need a VPN?
No: the server is in Russia, the connection is direct. If you have a VPN on — better turn it off, it's faster.
How do I check the key balance?
On the Balance and logs page — paste your key and you'll see the remaining balance and the charges.