Swipe the table horizontally, or use the left and right arrow keys, to view all columns.
If websites open in your browser but Claude Code, Antigravity CLI (agy), Codex CLI, Git, npm, pip, or curl still times out in your terminal, the most common reason is that command-line tools do not read your operating system’s system proxy by default. You have two reliable ways to fix it: enable TUN mode in Clash Verge Rev so every terminal process routes through the virtual network adapter automatically, or export explicit HTTP_PROXY / HTTPS_PROXY environment variables matching your client’s actual local port.
If your issue is specifically Windows Google Antigravity sign-in stalling on oauth2.googleapis.com/token, see our dedicated guide on Clash TUN for Gemini and Antigravity sign-in timeouts. This checklist covers all terminal CLI and package-manager timeouts across macOS and Windows.
1. Why the Browser Works While the Terminal Fails
Browsers such as Chrome, Safari, and Edge automatically inherit macOS or Windows system proxy settings. Most developer CLI tools intentionally ignore system proxy GUI settings for script predictability:
| Tool Group | Reads OS System Proxy? | Default Behavior | Recommended Fix |
|---|---|---|---|
| Node.js / npm / pnpm / Claude Code / Codex CLI | No (by default) | Connects directly, or checks HTTPS_PROXY / HTTP_PROXY (behavior varies across Node/undici versions) | Enable TUN mode (most reliable) or export proxy env vars |
Antigravity CLI (agy) / Go / Rust CLIs | Usually no | Checks HTTPS_PROXY / ALL_PROXY, otherwise connects directly | Enable TUN mode and clear stale proxy vars |
| Git (HTTPS) | No | Uses git config http.proxy or HTTPS_PROXY | Enable TUN mode or configure Git proxy |
Python (pip / uv) & curl | Env vars only in most shells | Reads HTTPS_PROXY / ALL_PROXY | Enable TUN mode or export env vars |
2. Diagnose in 10 Seconds Before Changing Anything
Run these two read-only checks inside the exact terminal window where your CLI is failing:
macOS / Linux (zsh / bash)
env | grep -iE 'proxy|no_proxy'
curl -I --max-time 10 https://api.anthropic.com
Windows (PowerShell)
Get-ChildItem Env: | Where-Object Name -match 'proxy'
curl.exe -I --max-time 10 https://api.anthropic.com
(Use curl.exe in PowerShell rather than curl, which aliases to Invoke-WebRequest.)
How to read the output:
- Empty proxy vars + connection timeout: Your shell is bypassing your client completely → jump to Section 3 or 4.
- Old port shown (e.g.,
127.0.0.1:7890) while your client listens on7897: A stale environment variable is pointing to a closed port → update or unset it. - Server responds (
HTTP/2 404or401): Network and TLS are working; any remaining error in Claude Code or Antigravity is region/account eligibility rather than connectivity. Switch to a supported region node and verify your account status (see Claude Code, Cursor and Copilot in China).
3. Option A (Recommended): Enable TUN Mode in Clash Verge Rev
When you switch between Claude Code, Antigravity CLI, Git, Python, and container tools, maintaining per-tool proxy configs is brittle. TUN mode intercepts traffic at the OS network interface layer so child processes work without hardcoded ports.
- Open Clash Verge Rev and verify you have an active node selected (for AI developer APIs, pick a low-latency node in a supported region such as Japan, Singapore, or the US).
- Windows: Install and start Service Mode first, then toggle TUN Mode ON (step-by-step setup and rollback: Clash TUN troubleshooting).
- macOS: Open Settings and toggle TUN Mode ON (enter your macOS admin password when prompted to authorize the virtual adapter).
- Clear stale proxy environment variables in your open shell so a dead port does not override TUN:
- macOS/Linux:
unset http_proxy https_proxy all_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY - Windows PowerShell:
Remove-Item Env:HTTP_PROXY,Env:HTTPS_PROXY,Env:ALL_PROXY -ErrorAction SilentlyContinue
- macOS/Linux:
- Re-test with
curl.exe -I --max-time 10 https://api.github.com(orcurlon macOS).
Watch out for conflicting virtual adapters: Running two network clients with virtual adapters at the same time causes route conflicts. Keep only one active while troubleshooting.
4. Option B (No Admin / No TUN): Set Session Proxy Variables
If a corporate laptop blocks virtual network drivers, or you only want a single terminal session routed, export your client’s actual Mixed Port (replace 7897 with the port shown in your client’s Settings):
macOS / Linux (current shell)
export HTTP_PROXY="http://127.0.0.1:7897"
export HTTPS_PROXY="http://127.0.0.1:7897"
export ALL_PROXY="socks5://127.0.0.1:7897"
export NO_PROXY="localhost,127.0.0.1,::1"
Windows PowerShell (current shell)
$env:HTTP_PROXY="http://127.0.0.1:7897"
$env:HTTPS_PROXY="http://127.0.0.1:7897"
$env:ALL_PROXY="socks5://127.0.0.1:7897"
$env:NO_PROXY="localhost,127.0.0.1,::1"
Three Quick Pitfalls to Check
- Use
http://, nothttps://, for the local loopback proxy: SettingHTTPS_PROXY="https://127.0.0.1:7897"causes TLS handshake errors because the local proxy listener speaks HTTP CONNECT, not HTTPS. - Open a fresh integrated terminal: Inside Antigravity, VS Code, or Cursor, existing terminal tabs keep their launch-time environment snapshot. Close and open a new tab after enabling TUN or editing shell profiles.
- Git-specific proxy overrides: Check
git config --global --get http.proxyfor leftover dead ports (also see GitHub Opens in Your Browser but Git Fails).
5. Next Steps Once Your Terminal Connects
- Select Claude models inside Antigravity: How to Use Claude Opus 5.5 and Sonnet 5.5 in Antigravity
- Choose the right model per coding task: Claude Opus vs. Sonnet in Antigravity for Coding
- Need stable low-latency routing for developer tools across up to 3 devices with unlimited bandwidth and a 7-day unconditional refund for first-time purchases? Compare SSRocket Global Access and Pricing.