API для Antigravity: подключение своего ключаAPI for Antigravity: connecting your own key

Antigravity не умеет чужие API-ключи — полей для своего адреса и ключа в его настройках нет, и Google официально это не поддерживает. Рабочий путь — бесплатное расширение Cline внутри Antigravity.Antigravity cannot take third-party API keys — its settings have no fields for your own address and key, and Google officially does not support that. The working path is the free Cline extension inside Antigravity.

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 для AntigravityAPI for Antigravity

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

1

Установи расширение Cline

Бесплатно, из магазина расширений внутри Antigravity.

Слева нажми Extensions (или Ctrl+Shift+X) → в поиске набери ClineInstall. Cline официально поддерживает Antigravity — это не обходной путь.
2

Укажи наш API в настройках Cline

Четыре значения — и всё работает.

Кликни по иконке Cline → шестерёнка (Settings). API ProviderOpenAI Compatible.
Base URL (адрес заканчивается на /v1).
API Key — твой ключ:
Model ID — например gpt-5.6-terra (список — в каталоге моделей). Сохрани — пиши задачи в панели Cline.

Привык к Continue — он тоже ставится в Antigravity из магазина расширений; настройка описана на странице Cline.

1

Install the Cline extension

Free, from the extension store inside Antigravity.

On the left, click Extensions (or Ctrl+Shift+X) → search for ClineInstall. Cline officially supports Antigravity — this is not a workaround.
2

Point Cline at our API

Four values — and everything works.

Click the Cline icon → the gear (Settings). API ProviderOpenAI Compatible.
Base URL (the address ends with /v1).
API Key — your key:
Model ID — for example gpt-5.6-terra (the list is in the model catalog). Save — and write tasks in the Cline panel.

Prefer Continue — it installs into Antigravity from the extension store too; the setup is described on the Cline page.

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

Cline не находится в поиске расширений
Антигравити берёт расширения из открытого магазина Open VSX, и редкие расширения там могут отсутствовать. Тогда скачай файл расширения .vsix со страницы Cline на GitHub (раздел Releases) и поставь вручную: меню «…» в панели Extensions → Install from VSIX… → выбери скачанный файл.
Хочу, чтобы сам Antigravity (его агент) работал на моём ключе
Штатными средствами это невозможно: Antigravity работает только с моделями Google по твоей подписке, и Google прямо пишет, что подключение своих ключей и адресов не поддерживается. Существующие обходы — это сторонние патчи программы, которые слетают при каждом обновлении и нарушают правила Google (риск блокировки аккаунта) — мы их не рекомендуем и не поддерживаем.
401 Unauthorized в Cline
Проверь: Base URL заканчивается на /v1; ключ скопирован целиком, без пробелов в начале и конце; провайдер — именно OpenAI Compatible, а не просто «OpenAI». Сам ключ можно проверить на странице «Баланс и логи».
Cline отвечает ошибкой про стриминг или пустой ответ
Убедись, что в настройках Cline включён стриминг (обычно включён по умолчанию) и выбрана модель из каталога — не «gpt-4» и не «gpt-5», а точный ID, например gpt-5.6-terra.
Cline doesn't show up in extension search
Antigravity pulls extensions from the open Open VSX store, and rare extensions can be missing there. Then download the .vsix extension file from Cline's GitHub page (the Releases section) and install it manually: the “…” menu in the Extensions panel → Install from VSIX… → pick the downloaded file.
I want Antigravity itself (its agent) to run on my key
Not possible with built-in settings: Antigravity only runs Google models under your subscription, and Google states explicitly that bring-your-own keys and endpoints are not supported. Existing workarounds are third-party patches of the program that break on every update and violate Google's rules (account ban risk) — we do not recommend or support them.
401 Unauthorized in Cline
Check: the Base URL ends with /v1; the key is copied in full, with no spaces at the start or end; the provider is exactly OpenAI Compatible, not plain “OpenAI”. You can test the key itself on the Balance and logs page.
Cline replies with a streaming error or an empty answer
Make sure streaming is enabled in Cline's settings (usually on by default) and the model is taken from our catalog — not “gpt-4” or “gpt-5”, but the exact ID, e.g. gpt-5.6-terra.

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

Встроенный ИИ Antigravity (агент, браузер, автопилот, автодополнение) продолжает работать по подписке Google — наш ключ подключается только в Cline и встроенные функции не меняет.

Штатной настройки чужих API в Antigravity нет и не планируется: Google официально не поддерживает свои ключи и адреса (BYOK). Единственный рекомендуемый путь — расширения: Cline или Continue.

Сторонние патчи, встраивающие кастомные модели в сам Antigravity, слетают при каждом обновлении и нарушают правила Google (риск блокировки аккаунта) — мы их не рекомендуем.

ID модели в Cline вписывается вручную — автоподгрузки списка нет; берите точный ID из каталога моделей.

Antigravity's built-in AI (agent, browser, autopilot, autocomplete) keeps working on your Google plan — our key is connected inside Cline only and doesn't touch the built-in features.

There is no built-in setting for third-party APIs in Antigravity and none is planned: Google officially does not support bring-your-own keys and endpoints (BYOK). The only recommended path is extensions: Cline or Continue.

Third-party patches that embed custom models into Antigravity itself break on every update and violate Google's rules (account ban risk) — we don't recommend them.

The model ID is entered manually in Cline — there is no auto-loading; take the exact ID from the model catalog.

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

Antigravity поддерживает свой API-ключ?
Нет. В настройках Antigravity нет полей для стороннего API, и Google официально заявляет, что подключение своих ключей и адресов не поддерживается. Свои модели подключаются через расширения — Cline или Continue.
Это обходной путь? Меня за него заблокируют?
Нет: Cline и Continue — обычные расширения из официального магазина Antigravity, их установка нигде не запрещена. Блокировки касаются только сторонних патчей, выдающих себя за сервисы Google.
Какие модели использовать в Cline?
Для агентных задач — gpt-5.6-terra, для максимума качества — gpt-5.6-sol или claude-opus-5 (расход выше). Полный список ID — в каталоге моделей.
Работает ли из России без VPN?
Да: наш сервер доступен напрямую, без VPN. Сам Antigravity требует входа в Google-аккаунт — если он у вас не открывается, откройте его один раз с VPN, дальше для Cline с нашим ключом VPN не нужен.
Does Antigravity support a custom API key?
No. Antigravity's settings have no fields for a third-party API, and Google officially states that bring-your-own keys and endpoints are not supported. Custom models connect through extensions — Cline or Continue.
Is this a workaround? Will I get banned?
No: Cline and Continue are regular extensions from Antigravity's official store — installing them is not against any rule. Bans concern third-party patches that impersonate Google services.
Which models should I use in Cline?
For agent tasks — gpt-5.6-terra; for maximum quality — gpt-5.6-sol or claude-opus-5 (higher token usage). The full list of IDs — in the model catalog.
Does it work from Russia without a VPN?
Our server is reachable directly, without a VPN. Antigravity itself requires a Google account sign-in — if it won't open for you, launch it once with a VPN; afterwards Cline with our key needs no VPN.