If Gemini opens in your browser but the Google Antigravity desktop app times out at sign-in, try TUN mode in Clash Verge Rev on Windows. TUN uses a virtual network adapter to receive traffic sent to it by Windows routing, including some requests from apps that ignore the system proxy. If Google explicitly says your account or region is unsupported, check the requirements for the product you are using first. Mihomo TUN documentation · Gemini web app availability · Antigravity FAQ
Why does the desktop sign-in time out when Gemini opens in a browser?
In the example, the sign-in screen says “There was an unexpected issue setting up your account.” The details show a TCP connection timeout on a request to oauth2.googleapis.com/token. Antigravity opens a browser for Google authorization, then returns to the desktop app. Google uses that OAuth endpoint to exchange an authorization code for an access token, so the authorization page can load even when the later connection times out. The error points to a connection problem. Clash’s connection list and logs can help narrow down the cause. Antigravity sign-in documentation · Google OAuth token exchange documentation
System Proxy relies on the app honoring Windows proxy settings. TUN receives traffic through Windows routing and lets the active Clash rules decide whether each connection goes directly or through a proxy. Keep the same account, network, and node for the first retry so you can see whether the original request reaches Clash after the switch. Mihomo TUN routing documentation
How to enable TUN in Clash Verge Rev on Windows
- Record what happens before you switch. With your current profile and node, open a site you normally use, then repeat the failing sign-in with TUN off. Note the error and your System Proxy setting so you can compare results and restore it. For installation and import steps, see the SSRocket Clash Verge setup guide.
- Install Service Mode if prompted. If the TUN switch reports a permissions problem, look for Service Mode in Clash Verge Rev. Follow the prompts and confirm the service is available. Its location can vary by release. Clash Verge Rev FAQ
- Enable TUN Mode. For this test, turn off the System Proxy switch in Clash. Keep the same profile, node, and rules so you can see what changed when TUN took over. Clash Verge Rev interface labels
- Reopen Antigravity and retry sign-in. Open Connections in Clash, repeat the original action, and look for
oauth2.googleapis.com. If you only use Gemini on the web, reload the page, send a short prompt, and check for a reply.
How to tell whether TUN fixed the connection
- Antigravity signs in. Wait until the desktop workspace opens, then try a simple action. If you have only finished browser authorization, give the desktop app time to complete sign-in. Once the workspace is open, see how to select Claude Opus 5.5 or Sonnet 5.5 in Antigravity and how to choose between Opus and Sonnet for coding tasks.
- The domain appears in Connections, but the request still times out. Open the connection details and check the matched rule and outbound route. If you see
DIRECT, confirm that your profile is meant to send this traffic directly. If the expected proxy route is already in use, check whether that route can reach the destination. Change one setting at a time and retry. - You see no matching connection during the retry. Short-lived connections can disappear quickly, and the list may only show an IP address. Watch the logs as you retry and correlate by time. If you still see no trace, check whether the service is running, TUN is enabled, and the virtual adapter was created.
- Other sites stop loading after you enable TUN. Turn off TUN, restore your previous System Proxy setting, and confirm that your usual sites load again. Then check the service status and whether another network client is also changing routes.
- Google explicitly says your account or region is unsupported. Check eligibility for that product. If you use a work or school account, ask your administrator whether the service is enabled. Gemini sign-in requirements · Antigravity account and region requirements
Frequently asked questions
Can Clash TUN unlock Gemini?
TUN can resolve some timeouts caused by the route an app uses. Access to the Gemini web app and Antigravity still depends on Google’s account and region requirements for each product. Check the relevant product’s help page. Gemini web app availability · Antigravity availability FAQ
Do I need TUN for Gemini in a browser?
If you can sign in and get a Gemini reply in your browser, keep your current setup. TUN is worth testing when the browser works and a desktop app times out.
Should I leave System Proxy on with TUN enabled?
For this test, use TUN with Clash’s System Proxy switch off and keep your existing rules. Check whether the original action succeeds and whether the connection uses the route you expected. Clash Verge Rev mode descriptions