Antigravity proxy setup, plus Codex and Cursor proxy settings

Google Antigravity has no dedicated proxy screen. In the standalone Antigravity IDE the proxy goes into the Http: Proxy field inherited from VS Code and, because the agent runs as a separate language server process, into the HTTPS_PROXY and HTTP_PROXY environment variables as well. Codex reads the same variables, and Cursor pairs Http: Proxy with an HTTP/1.1 fallback on its Network settings page.
Three platforms are covered, each with its own command-line tool: Google Antigravity (IDE and CLI), OpenAI Codex (CLI, IDE extension and desktop app) and Cursor (editor and CLI).
Tool | Where the proxy is set | What the vendor documents |
Antigravity IDE | Http: Proxy and Http: No Proxy, plus HTTPS_PROXY, HTTP_PROXY, NO_PROXY | No proxy page; the editor fields come from VS Code |
Antigravity CLI | sandboxProxy in ~/.gemini/antigravity-cli/settings.json | Yes, for sandboxed terminal commands only |
Codex CLI and app | HTTPS_PROXY, HTTP_PROXY, NO_PROXY, CODEX_CA_CERTIFICATE | The CA variable; proxy variables appear only in OpenAI's GitHub issues |
Codex IDE extension | Variables inherited from the environment VS Code starts in | No proxy option |
Cursor editor | Http: Proxy, Cursor Settings > Network > HTTP Compatibility Mode | Yes |
Cursor CLI | HTTP_PROXY, HTTPS_PROXY, NODE_USE_ENV_PROXY=1, useHttp1ForAgent | Yes |
Antigravity proxy settings in the Antigravity IDE
In Antigravity IDE 2.6.0, released on August 7, 2026, the proxy goes into the editor's HTTP settings and into environment variables that the agent process inherits.
- In Antigravity IDE, open the VS Code-style settings editor, the long list of options with a search field at the top, rather than the agent Settings screen with the General and Models tabs. Type proxy in the search field to filter the list down to the HTTP options.

- Paste the proxy URL into Http: Proxy: http://username:password@203.0.113.10:8080 for login-and-password access, or http://203.0.113.10:8080 if the provider authorizes your IP address. Percent-encode special characters in the password, so p@ss becomes p%40ss.
- Add localhost and 127.0.0.1 to Http: No Proxy, so local traffic stays off the proxy: the browser agent's connection to Chrome, local MCP servers and dev servers running on your machine.
- Keep Http: Proxy Strict SSL turned on. If your company proxy inspects TLS, install its CA certificate in the operating system's trust store instead of switching the check off.
- Set the same proxy as environment variables. Google doesn't document how the agent's language server finds a proxy, and in an April 2026 thread on the Google AI Developers Forum a user reported that it ignored both the system proxy and the Http: Proxy field. On Windows, run these lines in PowerShell:
[Environment]::SetEnvironmentVariable('HTTPS_PROXY','http://203.0.113.10:8080','User')
[Environment]::SetEnvironmentVariable('HTTP_PROXY','http://203.0.113.10:8080','User')
[Environment]::SetEnvironmentVariable('NO_PROXY','localhost,127.0.0.1','User')
On macOS and Linux, add the matching export HTTPS_PROXY=..., export HTTP_PROXY=... and export NO_PROXY=... lines to ~/.zshrc or ~/.bashrc. Apps started from the Dock or Finder don't read these files, which is why the next step launches Antigravity from a terminal. - Quit Antigravity completely and start it again; on macOS and Linux, start it from a terminal where env | grep -i proxy prints the new values. Send the agent a one-line prompt: a reply confirms that both the editor and the agent reach Google's servers, and the proxy's access log should show fresh CONNECT entries. If the extension marketplace loads but the agent stays silent, the log usually shows traffic from the editor only, which points back to the environment variables.

On Windows the editor values are stored in %APPDATA%\Antigravity\User\settings.json under the http.proxy key, the file that third-party setup scripts for Antigravity write to. A proxy doesn't change who can sign in: the Antigravity FAQ ties availability to the country associated with the Google Account, and enterprise accounts can sign in to the App, the CLI and the IDE extensions but not to the standalone IDE.
When the Antigravity browser agent has to open your own staging site from a specific country, for example to check a localized checkout page in Germany, PROXYS.IO residential proxies cost $4 per GB across 195 countries, with rotation adjustable from 2 to 60 minutes.
Antigravity CLI proxy: sandboxProxy for sandboxed commands
Antigravity CLI (agy 1.4) documents one proxy setting, sandboxProxy, and it applies to terminal commands that run inside the terminal sandbox.
- Open ~/.gemini/antigravity-cli/settings.json in a text editor. The CLI saves only values that differ from the defaults, so on a fresh install the file holds just a few keys.
- Add the block below, with your proxy's host:port and the path to its CA certificate in PEM format. If IT hands you a DER file (.cer), convert it with openssl x509 -inform der -in proxy-ca.cer -out proxy-ca.pem.
"sandboxProxy": { "http": { "address": "203.0.113.10:8080", "certFile": "/etc/ssl/certs/proxy-ca.pem" } }
address and certFile work only as a pair, and so do username and password. If either pair is incomplete, the CLI ignores the whole block, which makes sandboxProxy a fit for proxies that issue their own CA, such as a corporate TLS inspection gateway. A commercial proxy that doesn't inspect TLS has no CA file to give, so leave the key unset; sandboxed commands then use the CLI's built-in proxy. - Type /config in the prompt and turn on Sandbox Mode, or start a session with agy --sandbox. The proxy works only while the sandbox is on, and your proxy then has to enforce any read_url rules itself.

- Restart agy. If the JSON is invalid, the CLI opens a Settings Error screen before the session starts; choose Exit and fix manually to correct the file without resetting your other settings.

Traffic between agy and Google's model endpoints isn't covered by sandboxProxy, and the Antigravity settings reference lists no separate key for it.
Codex proxy settings for the CLI, IDE extension and app
The Codex CLI proxy comes from environment variables; a config.toml key for it has been an open request in OpenAI's issue #6060 since October 31, 2025.
- Get an HTTP proxy endpoint rather than SOCKS5. On Windows 11 with Codex CLI 0.122.0, a user in issue #20844 had stream errors with socks5:// variables, and the same machine worked after switching to http:// and removing ALL_PROXY.
- In the terminal that will start Codex, set the variables. On macOS and Linux:
export HTTPS_PROXY=http://username:password@203.0.113.10:8080
export HTTP_PROXY=$HTTPS_PROXY
export NO_PROXY=localhost,127.0.0.1,::1
In PowerShell, use $env:HTTPS_PROXY="http://username:password@203.0.113.10:8080" and the same form for the other two; these last for the current session only, so add them to your PowerShell profile or to the user environment variables to keep them. - If the proxy inspects TLS, point CODEX_CA_CERTIFICATE at a PEM bundle with the company root certificate. The Codex environment variable reference says HTTPS, login and WebSocket clients use it, and it takes precedence over SSL_CERT_FILE.
- Run codex from the same terminal and send a short prompt. A reply means the CLI's HTTPS and WebSocket traffic passes the proxy; a reconnect loop right after the prompt points to SOCKS variables or a missing CA bundle.

- Give the agent's own commands network access if they need it. The default workspace-write sandbox keeps the network off, so add network_access = true under [sandbox_workspace_write] in ~/.codex/config.toml. If you also turn on the managed features.network_proxy, its allow_upstream_proxy option (on by default in the Codex configuration reference) chains sandboxed traffic through your proxy, but no external domain opens until you add allow rules under domains.
- Check what the agent's subprocesses and MCP servers inherit. With shell_environment_policy.inherit set to core or none, commands the agent runs can lose the proxy variables, and the set table puts them back explicitly. MCP servers started over stdio receive the variables listed in mcp_servers.<id>.env or whitelisted in env_vars, so add HTTPS_PROXY there for any server that calls an external API.
- For the Codex desktop app, expect no proxy field. OpenAI marked the desktop request (issue #10555) as a duplicate of the CLI one and noted that the app is built on the Codex CLI. Users report that the app picks up the variables from ~/.codex/.env or when started with codex app from a shell where they're exported, so recheck the setup after each update.
- For the Codex IDE extension in VS Code, start VS Code from a terminal that has the variables, for example with code ., so the bundled Codex CLI inherits them; OpenAI documents no proxy option for the extension itself. If the sidebar hangs while loading, check that the proxy answers CONNECT with curl -sv -x http://203.0.113.10:8080 https://chatgpt.com -o /dev/null.
Cursor proxy settings: editor, Network page and CLI
Cursor proxy settings sit in two places: the Http: Proxy field inherited from VS Code, and the Network page of Cursor Settings with diagnostics and an HTTP/1.1 fallback.
- Open Cursor's settings editor, search for proxy and enter the proxy URL in Http: Proxy. Cursor staff pointed users to this field in July 2026 after proxy handling was reworked, and asked testers to run version 3.11.19 or later.

- Open Cursor Settings (Cmd+Shift+J on macOS), select Network and click Run Diagnostics. The check tests the connection to Cursor's servers and reports problems that affect AI features or updates. If it can't reach the servers at all, test the proxy itself in the Proxy Checker before changing anything else in Cursor.

- If chat or the agent stalls while diagnostics pass, set HTTP Compatibility Mode to HTTP/1.1 on the same page. Cursor streams responses over HTTP/2, and Cursor's help page names Zscaler as a proxy that blocks it; the same switch exists as "cursor.general.disableHttp2": true in settings.json. The switch has a limit: Cursor lists Tab completions (api3.cursor.sh) and codebase search (repo42.cursor.sh) as HTTP/2-only, so those two need a proxy that passes HTTP/2.
- Restart Cursor with a full quit. In the Cursor forum thread on proxy settings, staff told users to "fully quit and restart Cursor, not just reload window."
- Confirm the proxy allows CONNECT to *.cursor.sh and *.cursor.com on port 443, plus *.cursor-cdn.com and *.cursorapi.com for updates and extensions. Then run curl -v https://api2.cursor.sh |& grep -C1 issuer:; Cursor's network configuration guide expects Amazon RSA here, and a proxy vendor's name in the output means TLS inspection is on and Cursor's domains should be excluded from it.
- For the Cursor CLI, export HTTP_PROXY, HTTPS_PROXY and NODE_USE_ENV_PROXY=1 before running it, plus NODE_EXTRA_CA_CERTS with the company CA if TLS is inspected. If the agent still stalls, add "network": { "useHttp1ForAgent": true } to ~/.cursor/cli-config.json, which the Cursor CLI reference describes as switching agent connections to HTTP/1.1 with Server-Sent Events.
With the Remote SSH extension, Cursor's AI requests leave from your local machine, not from the remote host, so the proxy belongs on the laptop or workstation running the editor. A proxy set only on the server affects the agent's terminal commands there and nothing else.
Which proxy to buy for an AI IDE, and what it costs
For Antigravity, Codex and Cursor, a static HTTP proxy is usually the cheaper and steadier choice, because the tools hold long-lived streaming connections: HTTP/2 streams in Cursor, WebSockets in Codex.
Choose HTTP over SOCKS5. VS Code's network documentation says SOCKS5 authentication isn't implemented, and Antigravity IDE and Cursor are built on the same code. sandboxProxy in Antigravity CLI takes only an http block, and Codex users report broken sessions with socks5:// variables. An HTTP proxy with login-and-password or IP authorization works in all three tools without extra software.
Prefer a fixed IP to a rotating pool. With timer rotation, new connections leave from a different address every 2 to 60 minutes, so one IDE session can show up from several IPs in an hour. A fixed address can also be added to allowlists on your own Git server, staging API or internal MCP server, which the agents' terminal commands then reach from that IP.
PROXYS.IO dedicated datacenter proxies start at $1.47 per IP per month in the US, UK, Germany, the Netherlands and other locations, with HTTP, HTTPS and SOCKS support. One IP covers Antigravity, Codex and Cursor on a single workstation.
Decide where the credentials live. With login-and-password access, the password lands in plain text in settings.json, shell profiles and ~/.codex/.env, and dotfiles synced to a Git repository take it with them. IP authorization keeps the password out of all three files; it fits a workstation with a stable public IP and doesn't fit a laptop that moves between networks.
Keep the exit country the same as your own. A proxy in another country doesn't change which services your account can use; it only adds distance to every request, and an agent that makes dozens of model and tool calls per task pays that delay on each one.
Proxy type at PROXYS.IO | Starting price | Exit IP | Fits |
Dedicated datacenter IPv4 | $1.47 per IP per month | Fixed | One developer's IDE and CLI agents, IP allowlists |
Residential | $4 per GB | Rotates every 2 to 60 minutes, or static | Agent browser tests of your own site from a chosen country |
$56.79 per channel for 30 days | Carrier IP | Checking how your own app behaves on mobile networks |
The break-even is arithmetic: $1.47 buys about 0.37 GB of residential traffic at $4 per GB. Once the IDE, its extension updates and the packages your agent installs push more than roughly 370 MB a month through the proxy, the dedicated IP costs less, and agent-run installs count toward that traffic whenever the proxy variables are set in the terminal.
For a team, one dedicated IP per developer keeps the proxy logs readable per person and lets you revoke a single seat without touching the others. At $1.47 per IP, ten seats cost $14.70 a month. A shared IPv4 costs less, but other customers use the same address, so it can't serve as an allowlist entry for your own servers.
FAQ
Does Google Antigravity have a built-in proxy setting?
Not a dedicated one. The standalone IDE uses the Http: Proxy field from its VS Code base, the CLI documents only sandboxProxy for sandboxed commands, and the Antigravity App documentation lists no proxy option.
Is antigravity-claude-proxy the same as an Antigravity proxy?
No. It's a third-party tool that exposes Antigravity's models to other coding agents, and the Antigravity FAQ says that using third-party software with an Antigravity login violates the Terms of Service and can lead to account suspension.
Can a proxy make Antigravity available in an unsupported country?
No. Availability follows the country associated with your Google Account, which is shown on Google's Terms of Service page and can be corrected through Google's country association form if it's wrong.
Do Cursor proxy settings apply to Cloud Agents?
No. Cloud Agents run on Cursor's infrastructure and can't reach resources behind your corporate firewall, so for internal repositories and registries Cursor recommends running the agent in the editor on a machine inside your network.
Should HTTPS_PROXY start with https://?
Usually not. The variable name refers to the traffic being proxied, so a standard proxy that opens HTTPS tunnels with CONNECT is written as HTTPS_PROXY=http://host:port; use https:// only if the provider gives you a TLS endpoint for the proxy itself.
Where do I update the proxy after changing its password?
In every place that stores the URL: Http: Proxy in Antigravity IDE and Cursor, the environment variables in your shell profile or Windows user variables, ~/.codex/.env if you use it, and sandboxProxy in the Antigravity CLI settings. Then fully restart each tool, because running processes keep the environment they started with.
Why do some commands run by the agent skip the proxy?
Usually because of letter case: curl reads the proxy for plain-HTTP URLs only from lowercase http_proxy, a choice explained in curl's environment variable docs, while HTTPS_PROXY works in either case. Export both http_proxy and HTTP_PROXY with the same value.
Can Antigravity, Codex and Cursor share one proxy IP?
Yes. All three accept the same HTTP proxy URL, so one dedicated IP per workstation is enough unless separate clients or projects need separate exit addresses.