Spaces:
Running
Running
metadata
title: Antigravity OpenAI Proxy
emoji: 🛸
colorFrom: indigo
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
Antigravity OpenAI Proxy
A test-only Hugging Face Space that exposes both:
POST /v1/chat/completions(OpenAI-compatible)POST /v1/messages(Anthropic-compatible)
The proxy rotates across Antigravity OAuth accounts using the existing hybrid account manager.
Required Space secrets
PROXY_API_KEY: bearer token required by/v1/*CONFIG_ENV: newline-delimited placeholder-compatible account variables such asANTIGRAVITY_1_EMAILandANTIGRAVITY_1_REFRESH_TOKEN
Optional variables:
FORCE_ENV_ACCOUNTS=true: make environment accounts authoritative at each cold startENABLE_WEBUI=false: disable the browser UIACCOUNT_STRATEGY=hybrid: account selection strategy
Never commit OAuth refresh tokens or a real .env file.
Health check
curl -fsS https://YOUR-SPACE.hf.space/health
OpenAI-compatible request
curl -sS https://YOUR-SPACE.hf.space/v1/chat/completions \
-H "Authorization: Bearer YOUR_PROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "antigravity/gemini-3-flash",
"messages": [{"role": "user", "content": "Reply with READY only."}],
"reasoning_effort": "high"
}'
This Space is for testing only. Antigravity access may be subject to Google terms, quotas, and account enforcement.