Google Antigravity can run behind a corporate proxy or firewall. The VS Code extension reads the standard HTTP_PROXY, HTTPS_PROXY and NO_PROXY variables, the CLI sends sandboxed commands through sandboxProxy, and Antigravity Enterprise Gateway routes inference through a gateway you run. Behind TLS inspection, trust your corporate root CA and allowlist Google's endpoints on TCP port 443.

Looking for antigravity-claude-proxy or Antigravity Manager?
Many searches for "antigravity proxy" are for third-party tools rather than network setup. None of them is made by Google:
- antigravity-claude-proxy: Runs a local server with an Anthropic-compatible API, backed by Antigravity's Cloud Code and your Google accounts, so Claude Code CLI can use those models.
- Antigravity Manager (Antigravity Tools): A desktop app that manages Google accounts and serves OpenAI, Anthropic and Gemini style APIs from them.
- Model-swap proxies: Community tools that intercept Antigravity 2.0's Gemini calls and send them to other models.
Google's Antigravity FAQ and Additional Terms of Service prohibit using Antigravity credentials, such as OAuth tokens, directly inside third-party software outside the official Antigravity runtime. They also prohibit modifying or bypassing the runtime, and repurposing the Antigravity harness as a raw model proxy for an external agent loop or inference backend. Violations may lead to suspension of your Antigravity access, with an appeal path. The antigravity-claude-proxy README itself warns that Google has issued Terms of Service bans on accounts connected to it.
The terms allow these routes instead:
- Other agents calling Gemini: Use a Gemini API key from Google AI Studio or Gemini Enterprise Agent Platform.
- Antigravity inside another tool: Run the unmodified harness through Agent Client Protocol (
agy acp), or call headlessagy -pas a tool or subagent from another harness. - Extending Antigravity: Custom agents, MCP servers, skills, rules, hooks and plugins are permitted.
If you only need a proxy to reach Google from your network, you do not need an injection tool. Google documents HTTP_PROXY, HTTPS_PROXY and NO_PROXY support for the Antigravity VS Code extension and its agy background server, covered below, and Enterprise Gateway serves workstations that cannot reach Google directly.
Proxy environment variables and VS Code settings
In the Antigravity for Visual Studio Code extension, both the extension and its local agy background server use HTTP_PROXY, HTTPS_PROXY and NO_PROXY. When those variables are unset, the extension copies VS Code's http.proxy and http.noProxy settings into them. Environment variables always take precedence, and localhost and 127.0.0.1 remain in the proxy bypass list so the extension always reaches its local agy server.
Set proxy variables before launching VS Code. In remote or port-forwarded environments, set antigravity.serverPort from its default 0 to a fixed port for agy --hub, and adjust antigravity.serverStartupTimeoutMs from its 30000-millisecond default if startup needs longer.
Custom corporate CA certificates and TLS inspection
When a TLS inspection proxy such as Zscaler re-signs traffic with your organisation's root certificate, configure certificate trust before starting VS Code:
- OS trust store: Install the root certificate in Keychain Access on macOS, the Windows certificate store or your Linux distribution's CA bundle.
- Background server CA: The
agyserver reads the OS trust store throughSSL_CERT_FILEandNODE_USE_SYSTEM_CAto reach Google services. - Extension CA file: Set
NODE_EXTRA_CA_CERTSto a PEM file containing the root certificate so extension requests and server downloads trust it.
# macOS and Linux
export NODE_EXTRA_CA_CERTS="$HOME/certs/corporate-root-ca.pem"
code .# Windows (PowerShell or Command Prompt, then restart VS Code)
setx NODE_EXTRA_CA_CERTS "C:\certs\corporate-root-ca.pem"For Enterprise Gateway deployments, set caCertPath in admin_settings.json to your corporate root CA bundle. In non-managed environments, set AGY_LLM_GATEWAY_CA_CERT. If unset, Antigravity uses SSL_CERT_FILE. In Docker images, copy the certificate into /usr/local/share/ca-certificates/ as a .crt file, run update-ca-certificates, and set AGY_LLM_GATEWAY_CA_CERT.
Desktop apps and IDEs launched from the macOS Dock or Windows Start menu do not read shell profiles such as ~/.bashrc or ~/.zshrc. In JetBrains IDEs and Zed, pass AGY_LLM_GATEWAY_CA_CERT and other gateway variables inside the agent env block in ~/.jetbrains/acp.json or Zed's settings.json.
Corporate firewall allowlists and regional endpoints
For corporate firewalls, proxies or context-aware access rules, Google's Antigravity Enterprise docs list these TCP port 443 endpoints for the Antigravity App, Antigravity CLI (agy) and Antigravity for IDEs.
| Service and protocol | Allowed hostnames (TCP port 443) |
|---|---|
| AI Developer Tools Orchestration (HTTPS) | businessaicode.googleapis.com, businessaicode.us.rep.googleapis.com, businessaicode.eu.rep.googleapis.com |
| AI Developer Tools Orchestration (mTLS) | businessaicode.mtls.googleapis.com |
| Vertex AI and Gemini Enterprise API (HTTPS) | aiplatform.googleapis.com, aiplatform.us.rep.googleapis.com, aiplatform.eu.rep.googleapis.com |
| Vertex AI and Gemini Enterprise API (mTLS) | aiplatform.mtls.googleapis.com |
| Discovery Engine (HTTPS) | discoveryengine.googleapis.com, us-discoveryengine.googleapis.com, eu-discoveryengine.googleapis.com |
| Discovery Engine (mTLS) | discoveryengine.mtls.googleapis.com, us-discoveryengine.mtls.googleapis.com, eu-discoveryengine.mtls.googleapis.com |
| Cloud Code Telemetry and Client Services (HTTPS) | cloudcode-pa.googleapis.com |
Even in the us or eu multi-region location, clients connect to global businessaicode.googleapis.com and cloudcode-pa.googleapis.com during sign-in to discover assigned licences and load the model catalogue before routing inference to *.<location>.rep.googleapis.com. Keep both global endpoints reachable.
Global Private Google Access VIPs (private.googleapis.com and restricted.googleapis.com) and global Private Service Connect (PSC) endpoints serve a single-level *.googleapis.com wildcard certificate that fails x509 validation for *.<location>.rep.googleapis.com. For private us or eu deployments:
- Regional PSC endpoint: Create a regional PSC endpoint for
businessaicode.<location>.rep.googleapis.com, plusaiplatform.<location>.rep.googleapis.comfor pay-as-you-go or Application Default Credentials. - Private Cloud DNS: Add a private Cloud DNS zone for each regional hostname with an A record targeting the internal regional PSC IP.
- Global route: Keep
businessaicode.googleapis.comandcloudcode-pa.googleapis.comrouted through your global PSC endpoint or Private Google Access.
For VPC Service Controls perimeters, add businessaicode.googleapis.com and aiplatform.googleapis.com. Enterprise sign-in works in the Antigravity App, Antigravity CLI and Antigravity IDE extensions, not in the standalone Antigravity IDE.
Antigravity Enterprise Gateway routing and precedence
When workstations cannot reach Google directly or complete browser sign-in, Antigravity Enterprise Gateway routes inference through an organisation-operated gateway such as Cloud Run, Envoy, LiteLLM or Apigee. The gateway authenticates upstream using a centralised Google Cloud service account with roles/aiplatform.user and bills pay-as-you-go (PAYG).
Supported clients are the Antigravity App 2.15.0 or later on macOS, Windows 10 or 11 (64-bit) and Linux, plus Antigravity CLI 1.2.15 or later on macOS and Linux. Visual Studio Code and Visual Studio extensions download CLI 1.2.15 or later automatically, while JetBrains IDEs and Zed require ACP server 1.3.0 or later. Antigravity on the web does not support gateway routing, and gateway mode cannot run alongside Google Account sign-in or Standard and Plus seat quotas.
Antigravity merges gateway settings field by field in three precedence tiers, highest first:
- Admin file: Deploy
/Library/Application Support/Antigravity/admin_settings.jsonon macOS,/etc/antigravity/admin_settings.jsonon Linux or%ProgramData%\Antigravity\admin_settings.jsonon Windows via MDM. - Environment variables: Set
AGY_LLM_GATEWAY_URL,AGY_LLM_GATEWAY_API_KEY,AGY_LLM_GATEWAY_WIRE_PROTOCOL,AGY_LLM_GATEWAY_CA_CERT,AGY_LLM_GATEWAY_MODELSandAGY_LLM_GATEWAY_HEADERSon the workstation. - User file: Store user defaults in
~/.antigravity/settings.json, which the ACP server for JetBrains IDEs and Zed does not read.
With the default genai wire protocol, your gateway must route :streamGenerateContent?alt=sse and :generateContent under both POST /v1beta/models/MODEL_ID and POST /v1beta1/projects/PROJECT_ID/locations/REGION/publishers/google/models/MODEL_ID, or POST /v1/chat/completions when wireProtocol is openai. Return HTTP 200 OK with {} to POST /v1beta:* telemetry calls, and inject X-Goog-User-Project when forwarding to another Google Cloud project.
{
"gateway": {
"enabled": true,
"url": "https://gateway.cymbal.com",
"apiKey": "GATEWAY_API_KEY",
"wireProtocol": "genai",
"customHeaders": {
"X-Cost-Center": "Platform-Engineering"
}
},
"caCertPath": "/etc/ssl/certs/cymbal-root-ca.pem",
"models": {
"defaultModelId": "gemini-3.8-flash",
"list": [{ "modelId": "gemini-3.8-flash" }]
}
}Gateway deployments require four protocol details:
- Bearer API key: Clients send
gateway.apiKeyinAuthorization, so do not place Cloud Run IAM invoker checks or Identity-Aware Proxy ahead of the gateway. - Attribution headers: Forward
User-Agent,X-Goog-Api-Clientandgateway.customHeadersunchanged for Gemini Enterprise billing attribution. - Unbuffered SSE: Turn off HTTP response buffering for Server-Sent Events and allow requests to run for at least 60 minutes.
- ACP settings: In JetBrains IDEs and Zed, set
"auth": { "type": "gateway" }in~/.gemini/antigravity-acp/settings.jsonand keepgenaiwire protocol.
Confirm setup via Connected: Enterprise Gateway in the App status bar, Enterprise Gateway Mode Active in Account Settings, or agy -p "Explain binary search in Go".
Terminal sandbox proxy and MCP server networking
Antigravity's OS-level terminal sandbox uses Linux kernel namespaces, macOS sandbox-exec Seatbelt profiles and Windows AppContainer process security environments on Windows 11 24H2 or later with the August 2026 update or later. Sandboxed commands run without network access by default, adding only domains allowed under read_url to the outbound allowlist. In the standalone Antigravity IDE on macOS and Linux, a Sandbox Allow Network toggle controls sandbox network access, and Strict mode activates sandboxing automatically with network access denied.
In Antigravity CLI's ~/.gemini/antigravity-cli/settings.json, sandboxProxy routes sandboxed command traffic through your own HTTP proxy instead of the CLI's built-in proxy while the sandbox is on. Your proxy must then enforce read_url rules.
{
"sandboxProxy": {
"http": {
"address": "proxy.example.com:3128",
"certFile": "/etc/ssl/certs/proxy-ca.pem"
}
}
}Set address (host:port) with certFile, and username with password if authentication is needed. If either pair is incomplete, the CLI ignores sandboxProxy.
MCP servers live in ~/.gemini/config/mcp_config.json globally or <workspace>/.agents/mcp_config.json per workspace. Local stdio servers take an env map injected into the server process. In the App, IDE and CLI, remote servers require Streamable HTTP via serverUrl or url and optional headers. Legacy HTTP+SSE and httpUrl are unsupported. Antigravity waits up to 5 minutes (300 seconds) to connect and 3 minutes (180 seconds) per tool call by default, configurable with timeoutSeconds. OAuth uses https://antigravity.google/oauth/client-metadata.json and redirect URI https://antigravity.google/oauth-callback. See Google Antigravity MCP servers: set up and manage tools.
Troubleshooting proxy errors
| Symptom | Cause | Fix |
|---|---|---|
x509: certificate signed by unknown authority | Proxy or gateway certificate untrusted | Set caCertPath or AGY_LLM_GATEWAY_CA_CERT (or SSL_CERT_FILE); in VS Code trust the CA in OS store and NODE_EXTRA_CA_CERTS |
x509 mismatch in us or eu | Global VIP wildcard misses *.<location>.rep.googleapis.com | Route regional domains via PSC regional endpoint and private Cloud DNS; keep global endpoints on global route |
| Streaming responses time out | Gateway buffers HTTP responses | Disable buffering for text/event-stream and allow requests to run for at least 60 minutes |
| Prompts for Google sign-in | Gateway disabled, wrong path or missing IDE env | Verify admin_settings.json path and "enabled": true, or set JetBrains or Zed env and "auth": { "type": "gateway" } |
401 or 403 error | Invalid key, IAM or IAP layer, or missing role | Check gateway.apiKey, remove Cloud Run IAM or IAP ahead of the gateway, and grant roles/aiplatform.user |
wireProtocol 'openai' error on ACP | OpenAI protocol set for JetBrains or Zed | Set wireProtocol or AGY_LLM_GATEWAY_WIRE_PROTOCOL to genai or omit it |
For Google Cloud Support cases, include ~/.gemini/antigravity-cli/cli.log on Linux and macOS for the CLI, or ~/Library/Logs/Antigravity/language_server.log on macOS for the Antigravity App.
Watch local Antigravity sessions on a keypad or phone with Orbtile
Orbtile runs on your computer with macOS 14.0 Sonoma or later on Apple silicon, or Windows 11 (x64), and shows each local Antigravity desktop app conversation's title, state and live reply text on a key.
- No proxy access at the desk: Orbtile works offline and keeps working if your computer cannot reach
orbtile.com. - USB keypad or local Wi-Fi phone: Orbtile drives a Logitech MX Creative Keypad over USB HID without an account or Logi Options+. Orbtile Mobile on iPhone (iOS 17+) or Android (8.0+) connects directly to your computer over local Wi-Fi once Windows Security allows Orbtile through the firewall.
- Optional Orbtile Away: Consumer-only Orbtile Away needs only HTTPS and TLS access from your computer and phone to
relay.orbtile.com. - What stays on the computer: Antigravity IDE and Antigravity CLI sessions do not appear automatically, and written answers, permissions and remote sessions stay on your computer.
If an Antigravity update changes how the app talks to Orbtile, live text and keypad answers stop until Orbtile catches up, and you answer in Antigravity. See Google Antigravity: App, IDE, CLI, setup and agent workflows and Antigravity keypad: MX Keypad shortcuts and Orbtile status pad.
FAQ
How do I configure an HTTP or HTTPS proxy for Google Antigravity?
In the VS Code extension, both the extension and its local agy background server read HTTP_PROXY, HTTPS_PROXY and NO_PROXY, falling back to VS Code's http.proxy and http.noProxy settings when unset. The extension always keeps localhost and 127.0.0.1 bypassed. For sandboxed CLI commands, set sandboxProxy in settings.json with address and certFile, or route inference through Antigravity Enterprise Gateway using admin_settings.json or AGY_LLM_GATEWAY_URL.
Which domains and ports must be allowlisted behind a corporate firewall?
Allowlist TCP port 443 for cloudcode-pa.googleapis.com, plus businessaicode.googleapis.com, aiplatform.googleapis.com and discoveryengine.googleapis.com with their regional us, eu and mutual TLS hostnames. Even in us or eu locations, businessaicode.googleapis.com and cloudcode-pa.googleapis.com must stay reachable during sign-in for licence discovery and the model catalogue.
Is it allowed to use antigravity-claude-proxy or Antigravity Manager with my Antigravity account?
They are unofficial third-party tools that serve your Antigravity sign-in to other agents as an Anthropic, OpenAI or Gemini style API. Google's Antigravity terms prohibit using Antigravity credentials such as OAuth tokens in third-party software outside the official runtime, and violations may lead to suspension of your Antigravity access. For other agents, use a Gemini API key from Google AI Studio or Gemini Enterprise Agent Platform, or run the unmodified harness through Agent Client Protocol or headless agy -p.
Can I use my Google Antigravity account as a model proxy for another coding agent?
No. Google's Terms of Service prohibit using Antigravity credentials in third-party software outside the official runtime or repurposing the harness as a raw model proxy for an external agent loop. Running the unmodified harness through Agent Client Protocol and headless agy -p calls is permitted. Third-party agents calling Gemini directly should use a Gemini API key from Google AI Studio or Gemini Enterprise Agent Platform.
Does Orbtile need corporate proxy access to monitor Antigravity sessions?
No for desk use. Orbtile runs on your computer, follows local Antigravity desktop app conversations over USB or direct local Wi-Fi on Orbtile Mobile, and keeps working if it cannot reach orbtile.com. Optional consumer-only Orbtile Away requires HTTPS and TLS access to relay.orbtile.com. Antigravity IDE and CLI sessions do not appear automatically, and written answers and permissions stay on your computer.