This guide explains how to use Proxyman for two debugging targets:
- The installed official
Antigravitydesktop client - The
Antigravity Managerdevelopment build from this repository
Before you start, complete Proxyman Installation and Basic Setup on Windows.
Use this guide when you want to:
- inspect login, quota, project context, or model-list requests from
Antigravity - inspect OAuth, quota refresh, or proxy traffic from
Antigravity Manager - compare requests from the official client with requests produced by this project
Antigravity is an Electron application. Its traffic may come from:
- Chromium or renderer-side requests
- Electron or Node-side requests
This project is also an Electron app, but it additionally includes Node, Undici, and internal proxy flows. You may need to inspect:
- Electron main-process outbound requests
- renderer-side requests
- upstream requests emitted by
src/server/
Use the provided script:
This should be the default path for the installed official client because it already does the following:
- sets
HTTP_PROXY,HTTPS_PROXY, andALL_PROXY - sets
NODE_EXTRA_CA_CERTS - passes
--proxy-serverand--proxy-bypass-list - stops existing
Antigravityprocesses so the new environment takes effect
Typical usage:
powershell -ExecutionPolicy Bypass -File .\scripts\start-antigravity-with-proxyman.ps1If Proxyman is using a different port:
powershell -ExecutionPolicy Bypass -File .\scripts\start-antigravity-with-proxyman.ps1 -Port 9091If you are temporarily debugging TLS failures:
powershell -ExecutionPolicy Bypass -File .\scripts\start-antigravity-with-proxyman.ps1 -AllowInsecureTlsNotes:
- This script targets the installed official
Antigravityclient. - It does not launch this repository's
Antigravity Managerdevelopment build. - Override
-AppPath,-CaPath,-ProxyHost, or-NoProxyif your local environment differs.
- Open Proxyman.
- Confirm that installation and certificate setup are already complete.
- Confirm the local proxy port, for example
9090. - Launch
Antigravitywith the script. - Trigger a request that is easy to identify, such as:
- Google sign-in
- model list loading
- quota refresh
- a generated request or prompt action
The script is the recommended default, but the raw parameters are still useful because:
- contributors may want to understand exactly what the script configures
- some people launch from VS Code, another shell, or a custom wrapper
- some debugging sessions need a partial override rather than the full script
In some environments you may still need to point the system proxy to Proxyman manually. At minimum, verify:
- HTTP proxy:
127.0.0.1:9090 - HTTPS proxy:
127.0.0.1:9090 - the bypass list is not excluding the domains you want to inspect
If system proxy behavior is unreliable, you can launch the installed client with explicit Chromium proxy arguments:
& "C:\Users\<YourUser>\AppData\Local\Programs\Antigravity\Antigravity.exe" `
--proxy-server="http://127.0.0.1:9090" `
--proxy-bypass-list="<local>;localhost;127.0.0.1;::1"Use this as a fallback, not the default path.
This project has more layers than the official client. The script above is not the general launcher for this repository's development app.
Set proxy-related environment variables before starting the app:
$env:HTTP_PROXY = "http://127.0.0.1:9090"
$env:HTTPS_PROXY = "http://127.0.0.1:9090"
$env:ALL_PROXY = "http://127.0.0.1:9090"
$env:NO_PROXY = "localhost,127.0.0.1,::1"
$env:NODE_EXTRA_CA_CERTS = "$env:APPDATA\\Proxyman\\certificate\\certs\\ca.pem"
# Enable only for temporary TLS debugging
$env:NODE_TLS_REJECT_UNAUTHORIZED = "0"
npm startThis primarily affects:
- Node HTTP and HTTPS requests
undici,fetch, and some dependency-driven upstream requests- internal proxy requests forwarded to upstream services
If you want both Node-side and renderer-side traffic, add Chromium proxy arguments:
$env:HTTP_PROXY = "http://127.0.0.1:9090"
$env:HTTPS_PROXY = "http://127.0.0.1:9090"
$env:ALL_PROXY = "http://127.0.0.1:9090"
$env:NO_PROXY = "localhost,127.0.0.1,::1"
$env:NODE_EXTRA_CA_CERTS = "$env:APPDATA\\Proxyman\\certificate\\certs\\ca.pem"
$env:NODE_TLS_REJECT_UNAUTHORIZED = "0"
npm start -- --proxy-server="http://127.0.0.1:9090" --proxy-bypass-list="<local>;localhost;127.0.0.1;::1"If your local npm start flow does not forward arguments to Electron Forge, use one of these fallback approaches:
- capture only Node and main-process traffic
- wrap the Electron launch in your own PowerShell or VS Code task
Check:
- the Proxyman root certificate is really trusted
NODE_EXTRA_CA_CERTSis set when Node-side traffic needs itNODE_TLS_REJECT_UNAUTHORIZED=0is only being used as a temporary debugging override- the target app is not using SSL pinning
Background setup guide:
Common causes:
- Node is not using system proxy settings
- the HTTP client does not read
HTTP_PROXY - only the system proxy was configured, but runtime environment variables were not
Common cause:
- loopback traffic is bypassing the proxy
Keep this bypass list in mind when launching Electron:
--proxy-bypass-list="<local>;localhost;127.0.0.1;::1"
Adjust it only if your current debugging target requires a different loopback behavior.
Common causes:
- the process started before the certificate was installed and needs a full restart
ca.cerwas imported butca.pemwas not passed to Node when required- a corporate proxy, VPN, or security product is changing network behavior
- the target app uses SSL pinning
Keep local debugging settings out of the repository and out of public issue threads.
- Do not commit your local proxy address, certificate paths, cookies, or OAuth codes.
- Do not leave
NODE_TLS_REJECT_UNAUTHORIZED=0enabled beyond temporary local debugging. - Do not post raw tokens, sessions, or authorization headers in public issues.
- Redact logs before sharing them.
- Complete Proxyman Installation and Basic Setup on Windows.
- Open Proxyman.
- Run:
powershell -ExecutionPolicy Bypass -File .\scripts\start-antigravity-with-proxyman.ps1- Trigger login, quota, or model-list traffic.
- Complete Proxyman Installation and Basic Setup on Windows.
- Open PowerShell.
- Set
HTTP_PROXY,HTTPS_PROXY, andNODE_EXTRA_CA_CERTS. - Run
npm start. - Filter Proxyman traffic by domains such as:
googleapis.comgoogleusercontent.com- the upstream domain you are debugging
- Setup guide: Proxyman Installation and Basic Setup on Windows
- Official-client launcher: scripts/start-antigravity-with-proxyman.ps1