"We came, we saw, we conquered - the triumph of the will"
💖 Support the author: Boosty
This is the ultimate, 100% serverless Cloudflare Worker proxy that exposes an OpenAI-compatible API backed by the internal Antigravity Cloud Code endpoint.
Unlike other community proxies that require you to keep the heavy Antigravity desktop app running in the background to scrape SQLite databases, this proxy is completely autonomous. It handles its own OAuth token refreshes, dynamic model discovery, and payload manipulation directly in the cloud.
- ☁️ 100% Serverless: Deploy to Cloudflare Workers and close your terminal. No background daemons required.
- 🎭 Perfect Mimicry: Bypasses Google's 500/403 API errors by perfectly replicating the internal Go daemon's HTTP payload (including
ThinkingConfig,model_enumplaceholders, and telemetry labels). - 🔄 Autonomous Auth: Automatically exchanges and refreshes tokens using the official Antigravity Client ID & Secret.
- 🛡️ Abuse Protection: Strips out Clearcut telemetry tracking while maintaining a valid request structure.
- 📡 Dynamic Routing: Automatically discovers and routes models directly from Google's
fetchAvailableModelsinternal dictionary. - 🔌 IDE Ready: Drop-in replacement for OpenAI API in Zed, Cursor, or any other frontend.
- 👁️ Full Multimodality: Send Images, Audio, Video, and PDFs seamlessly. Bypasses internal restrictions using intelligent tool-call masking.
- 🎨 Image Generation (Nanobanano): Built-in support for generating images via the standard SD WebUI API (
/sdapi/v1/txt2img). Compatible with SillyTavern out-of-the-box.
Even if you have never opened a terminal before, just follow these simple steps!
- Download and install Node.js (LTS version).
- Create a free account on Cloudflare.
- Download this repository (Click the green
Codebutton ->Download ZIP) and extract it to a folder. - Open your computer's Terminal (Command Prompt / PowerShell on Windows, Terminal on Mac) and navigate to that folder:
cd path/to/extracted/folder
Install the required tools and link your Cloudflare account to your terminal:
npm install
npx wrangler login(A browser window will open asking you to authorize Cloudflare. Click "Allow".)
You do not need to install the official Antigravity client. We have included an automated script that mimics the OAuth flow.
node scripts/login.jsFollow the instructions in the terminal. The script will output a massive JSON block at the end. Copy this entire JSON block.
Upload the code to your Cloudflare account:
npx wrangler deployBind your Google OAuth token to the deployed worker securely:
npx wrangler secret put GCP_SERVICE_ACCOUNTPaste the JSON block you copied from Step 2 when prompted and hit Enter.
(Optional) If you have a specific Google Cloud project with the Cloud AI Companion API enabled and you are ready to pay for billing, you can bypass the default free-tier shadow project by setting your own:
npx wrangler secret put GEMINI_PROJECT_IDConfigure your IDE (like Zed or Cursor) or chat UI to point to your new Cloudflare Worker URL.
Base URL: https://antigravity-earthmover-worker.<your-subdomain>.workers.dev/v1
(You can find your exact URL in the terminal output after running npx wrangler deploy)
API Key: dummy-key (Can be anything, the worker handles actual auth)
The proxy will dynamically populate your model dropdown with the actual display names (e.g., Gemini 3.5 Flash (Medium), Claude Opus 4.6 (Thinking)). Select one and start coding!
EARTHMOVER includes built-in support for image generation using Google's Gemini 3.1 Flash Image model via a standard SD WebUI compatible endpoint.
To use this in clients like SillyTavern:
- Go to the Image Generation extension settings.
- Select Stable Diffusion WebUI as the provider.
- Set the API URL to:
https://antigravity-earthmover-worker.<your-subdomain>.workers.dev(Do not add/v1at the end). - Generate images using standard prompts! (Under the hood, it uses the nanobanano approach to seamlessly route requests to Gemini).
Google aggressively limits Claude Opus and Gemini Pro usage (often applying 150+ hour quota bans on free-tier accounts). EARTHMOVER supports a Multi-Account Hot-Swap Pool using Cloudflare KV. If an account runs out of quota, the proxy instantly marks it exhausted and retries the exact same request with the next available account.
- Create a KV Database:
npx wrangler kv:namespace create ACCOUNTS_KV
- Bind it in
wrangler.toml: Open thewrangler.tomlfile in a text editor. Look at the bottom of the file. ReplaceYOUR_ACCOUNTS_KV_ID_HEREwith theidyou got from Step 1. - Add Accounts to the Pool:
We've included an automated script that handles OAuth and injects the credentials directly into your KV database. Run this script for each burner account you want to add:
Follow the prompts to authorize and name your account.
node scripts/add-account.js
- Deploy:
The proxy will now intelligently balance requests across all loaded accounts!
npx wrangler deploy
Disclaimer: This is an unofficial tool created for educational and research purposes. Use at your own risk. It relies on undocumented APIs. Google may rotate the client secret or change the API structure at any time without warning. Consider burner accounts.
"Пришли, увидели, победили - триумф воли"
💖 Поддержать автора: Boosty
Это ультимативный, на 100% бессерверный Cloudflare Worker прокси, который предоставляет OpenAI-совместимый API, работающий поверх скрытого внутреннего эндпоинта Antigravity Cloud Code.
В отличие от других решений, которые заставляют вас держать тяжелое десктопное приложение Antigravity запущенным на фоне (чтобы воровать токены из SQLite), этот прокси полностью автономен. Он сам обновляет OAuth токены, сам скачивает словари моделей и сам формирует криптографически выверенные запросы прямо в облаке.
- ☁️ Никаких серверов: Задеплойте в Cloudflare и закройте терминал.
- 🎭 Идеальная маскировка: Обходит ошибки 500/403 от Google, полностью копируя структуру HTTP-пакетов официального Go-демона.
- 🔄 Автономная авторизация: Самостоятельно обновляет токены через официальные Client ID и Secret от Antigravity.
- 🛡️ Защита от банов: Полностью вырезает телеметрию (Clearcut), маскируясь под клиента, отказавшегося от слежки.
- 📡 Динамический роутинг: Автоматически скачивает свежий список моделей напрямую с серверов Google и на лету подменяет их на нужные M-коды.
- 🔌 Готов к работе: Идеально работает в Zed, Cursor и любых других фронтэндах.
- 👁️ Полная мультимодальность: Отправляйте картинки, аудио, видео и PDF. Умно обходит внутренние ограничения API с помощью маскировки под вызовы инструментов.
- 🎨 Генерация картинок (Nanobanano): Встроенная поддержка генерации изображений через стандартный SD WebUI API (
/sdapi/v1/txt2img). Идеально работает с SillyTavern из коробки.
Даже если вы никогда в жизни не открывали консоль, просто следуйте этим шагам!
- Скачайте и установите Node.js (версию LTS).
- Создайте бесплатный аккаунт на Cloudflare.
- Скачайте этот код (Нажмите зеленую кнопку
Code->Download ZIP) и распакуйте папку. - Откройте терминал (Командная строка / PowerShell на Windows) и перейдите в эту папку:
cd путь/до/распакованной/папки
Установите нужные библиотеки и свяжите терминал с вашим аккаунтом Cloudflare:
npm install
npx wrangler login(Откроется окно браузера. Нажмите "Allow" (Разрешить), чтобы авторизовать Cloudflare).
Вам не нужно скачивать оригинальный клиент Antigravity. Мы написали скрипт, который сделает всё за вас:
node scripts/login.jsСледуйте инструкциям в консоли. Скрипт выдаст вам огромный блок JSON. Скопируйте его целиком.
Отправьте код прокси в свое облако:
npx wrangler deployПривяжите ваш токен Google к запущенному воркеру, чтобы он мог безопасно авторизовываться:
npx wrangler secret put GCP_SERVICE_ACCOUNTВставьте скопированный JSON из Шага 2, когда консоль попросит об этом, и нажмите Enter.
Впишите эти данные в ваш фронтэнд клиент (например, Zed или Cursor):
Base URL: https://antigravity-earthmover-worker.<ваш-субдомен>.workers.dev/v1
(Свой точный адрес вы увидите в консоли после выполнения Шага 3)
API Key: dummy-key (Можно писать что угодно, авторизацию берет на себя прокси)
Прокси автоматически загрузит список актуальных моделей с их красивыми названиями (например, Gemini 3.5 Flash (Medium), Claude Opus 4.6 (Thinking)). Выбирайте любую и наслаждайтесь!
В EARTHMOVER встроена поддержка генерации картинок через модель Gemini 3.1 Flash Image с использованием стандартного SD WebUI эндпоинта.
Чтобы подключить это в клиентах вроде SillyTavern:
- Откройте настройки расширения Image Generation.
- Выберите провайдером Stable Diffusion WebUI.
- Укажите API URL:
https://antigravity-earthmover-worker.<ваш-субдомен>.workers.dev(Строго без/v1на конце). - Генерируйте картинки как обычно! (Под капотом используется подход nanobanano для прозрачного роутинга запросов в Gemini).
Google жестко ограничивает использование Claude Opus и Gemini Pro (часто выдавая баны на 150+ часов для бесплатных аккаунтов). EARTHMOVER поддерживает Пул Аккаунтов с Горячей Заменой через Cloudflare KV. Если на одном из аккаунтов заканчивается квота, прокси моментально помечает его как "выжатый" и повторяет тот же самый запрос со следующего доступного аккаунта.
- Создайте базу KV:
npx wrangler kv namespace create ACCOUNTS_KV
- Привяжите её в
wrangler.toml: Откройте файлwrangler.tomlв любом текстовом редакторе. Найдите в самом низу строкуid = "YOUR_ACCOUNTS_KV_ID_HERE"и замените этот текст наid, который вам выдала команда на 1 шаге. - Добавьте аккаунты в пул:
Мы написали автоматический скрипт, который сам проведет вас через авторизацию и загрузит ключи напрямую в базу KV. Запустите его для каждого "выкидного" аккаунта, который хотите добавить:
Следуйте инструкциям в терминале, чтобы авторизоваться и задать имя аккаунту.
node scripts/add-account.js
- Задеплойте:
Теперь прокси будет умно балансировать ваши запросы между всеми загруженными аккаунтами!
npx wrangler deploy
Отказ от ответственности: Это неофициальный инструмент, созданный для образовательных и исследовательских целей. Используйте на свой страх и риск. Он использует недокументированные API. Google может в любое время без предупреждения изменить секрет клиента или структуру API. Рассмотрите использование выкидных аккаунтов.