Google Antigravity From China: Account Region, Network Setup, and Troubleshooting
Antigravity is Google's agentic development platform: you describe what you want, and the agent plans, writes code, runs commands, and even opens a browser to verify the result. The software itself is free, and a personal Gmail account comes with a weekly-refreshing base quota. It runs on macOS, Windows, and Linux.
If you are in China and cannot log in after installing it, the problem is almost always the account or the network. Whether Antigravity works depends on the country or region associated with your Google account, not just your current IP. Get the account region, age verification, and network sorted first, then install and use it.
What It Is: One Agent, Four Ways to Use It
A regular coding assistant just helps you complete code. Antigravity is more like a mission control center: the agent plans, writes code, runs commands, and even opens a browser to verify results. It comes in four products that share the same agent underneath. The only difference is how much code you write yourself.
| Product | Who it's for | What it does |
|---|---|---|
| Antigravity | Most people | The flagship desktop app, a command center for managing multiple local agents. You describe what you want, and the agent writes the code |
| Antigravity IDE | People who write code | A full agentic IDE with all your code visible, tab completion, a problems panel, and an agent sidebar |
| Antigravity CLI | Terminal people | The command is agy. Chat with the agent, edit multiple files, and call tools from the terminal |
| Antigravity SDK | Developers integrating | Bring the Antigravity agent into your own system |
How to choose: Start with the Antigravity desktop app and build things. When it gets complicated and you need to read code line by line, switch to the IDE or CLI.
Account and Network: Get Past This First
Check these four things in order.
1. Use a Personal Google Account
The personal tier of Antigravity is for personal Gmail accounts (@gmail.com and the like). Company or school Google Workspace accounts often hit the error "cannot determine your account's location", and Workspace accounts do not get the personal Google AI plan quota.
2. Your Account Region Cannot Be China
- Open the Google Terms of Service page and look at the "country version" shown at the top.
- If it says China (or shows an unknown region), use the country association change form to request a change to the region you actually use most (for example, the United States). Write your real, long-term situation as the reason.
- The review takes a few days. Do not resubmit repeatedly in the meantime. Once it is changed, sign out of Antigravity and log back in.
WARNING
Even with Google AI Pro, an account in the China region can only use Gemini on the web. Antigravity stays off limits.
3. Age Verification
Your account must be 18 or older and pass Google's age verification. Check the status on the age verification page and follow the prompts if you have not done it yet.
4. Network: TUN Mode Plus a Fixed Exit IP
- Antigravity is a desktop app, and a "system proxy" alone may not cover it. Turn on TUN mode (virtual network adapter) in your proxy software so that all of the app's traffic goes through the proxy.
- Put your node in a supported region (ideally the same as your account region) and stick to the same exit IP. An IP that jumps between countries is the easiest way to trigger Google's extra verification.
- When picking a node, look at latency, packet loss, and stability during peak hours. A clean IP (not shared by too many people) matters more.
Logging In Asks for a QR Code or SMS: What If Device Verification Fails
Google will treat a login as untrusted (IP jumping between regions, account region set to China, a new account switching devices, a dirty environment) and show a second verification step: scan a QR code with your phone, then send an SMS from a trusted phone.
Common reasons it gets stuck:
- Chinese domestic phones have no Google services (GMS), so the scan goes nowhere. Tablets and computers have no SIM card.
- Carriers block SMS to foreign short codes. The success rate for +86 numbers is very low, and numbers from SMS-verification services no longer receive these messages.
- A desktop PC has no camera, so it cannot scan the code.
Things to try, from easiest to hardest:
- Stay on a clean IP in the same supported region, and scan with Chrome on your phone.
- Open g.co/verifyaccount in a desktop browser and see if it helps (it does not always appear).
- Use a stock Android phone with Google services (such as a Pixel or Samsung) together with a clean IP. The success rate is higher.
- Send the verification SMS from a phone with a foreign SIM card in it.
WARNING
Do not hand your account to a stranger to verify it. If you do, change your password immediately afterwards and review your signed-in devices and security settings. Passing verification is only the first step. The account region and network still have to be right after that.
Installation and First-Time Setup
You need macOS, Windows, or some Linux distributions, a Chrome browser, and a personal Gmail account.
Step 1: Download
Download the installer for your system from antigravity.google/download. If you already have the desktop app and also want the IDE, click "Install IDE" in the top right of the app.
Step 2: Log In and Pick a Theme
Turn on TUN mode first, then sign in with your Google account. You can import settings from VS Code or Cursor, or start fresh.
Step 3: Choose How the Agent Works
This page sets three rules: terminal command execution, review, and JavaScript execution. For beginners, choose "review-driven development": the agent shows you the plan before acting and asks before running commands. You can change this at any time.
Step 4: Extensions and Plugins
Install only the extensions you will actually use. You might as well install the agy-ide command-line tool. Plugins bundle skills and MCP servers, and you can skip the ones for Google Cloud products you do not use.
Want the Terminal: Install the CLI
Run this in a macOS or Linux terminal. After it installs, add ~/.local/bin to your PATH as prompted, then type agy in a project directory.
curl -fsSL https://antigravity.google/cli/install.sh | bash
NOTE
The desktop app may work while the CLI reports "not eligible" on the same account. The CLI checks account region more strictly, so accounts in the China region must change region first.
Security Settings: Take a Look First
The Antigravity settings in the bottom right have an agent safety mode that controls whether it can run terminal commands directly and which files it can access.
- When working on a real project, do not let it run terminal commands without confirmation.
- Hand it only the project folder you want to change. Do not open your entire home directory.
- Put keys and passwords in environment variables or
.env, and add them to your ignore file.
Your First Task: Review the Plan, Give Notes, Then Let Go
Open a project folder (you cannot chat without one) and describe what you want in one sentence in the agent panel. It delivers in three stages: plan, code changes, verification. You can give feedback at every stage.
| Stage | Output | What you can do |
|---|---|---|
| Before it starts | Implementation plan and task list | Comment on the plan directly like in Google Docs. After you submit, it revises the plan. Click Proceed when you are happy. It occasionally starts before you approve. In that case, comment on the plan, stop the task, and retry |
| While coding | Code changes (diff) | Choose Accept all, Reject all, or Review changes to go through them one by one. You can also leave comments right on the code. If it breaks something, click "Undo changes up to this point" in the conversation to roll back to that step |
| After it finishes | Walkthrough | It writes up what it changed and how to verify it, possibly with screenshots or a browser recording. If something is wrong, comment on it and have it rework |
Everyday Operations
- Open or close the agent panel: Press
Cmd + L(Ctrl + Lon Windows usually). Select a piece of terminal output and press it to send that output straight to the agent. - @ for context: Type
@to reference a file, folder, terminal output, or MCP server. It is far more precise than describing things in words. - Slash commands:
/goalkeeps going until done./scheduleruns tasks on a timer or recurring basis./grill-mealigns the plan with you first./learndistills rules or skills from the current conversation. - The fastest way to fix an error: With a linter such as Pylint installed, hover over the problem and choose Explain and fix. Or select it in the Problems panel and choose Send to Agent.
- Browser subagent: When building web pages, it opens Chrome itself, clicks around, and takes screenshots to verify. The first time, it asks you to install a browser extension.
- Four views at the top of the panel: Changes overview, Terminal (background processes), Artifacts (plans, checklists, write-ups), and Browser. This is where you see what the agent is doing.
TIP
When writing a request, say clearly what to build, who it is for, and what counts as done. That works far better than "build me a website". Give it one thing at a time, then the next.
Rules, Workflows, Skills, and MCP
The "…" menu in the top right has Customizations for rules and workflows, and MCP Servers for MCP. Each of these comes in two scopes: "global" (all projects) and "project" (this repository only).
| Thing | What it's for | Global location | Project location |
|---|---|---|---|
| Rules | Like a system prompt: code style, documentation requirements, stack conventions. Applies every time | ~/.gemini/GEMINI.md | .agents/rules/ |
| Workflows | Saved prompts triggered on demand with /name, such as /generate-unit-tests | ~/.gemini/config/global_workflows/ | .agents/workflows/ |
| Skills | Knowledge packs loaded only when a request matches their description, so they do not eat context | ~/.gemini/config/skills/ | .agents/skills/ |
| MCP servers | Connect the agent to external systems (GitHub, databases, cloud services) | ~/.gemini/config/mcp_config.json | — |
Writing a Skill
my-skill/
├── SKILL.md # Required: name, description, what to do
├── scripts/ # Optional: Python or Bash scripts
├── references/ # Optional: docs, templates
└── assets/ # Optional: images, logos
Once it is in place, ask "which skills are installed" to confirm it shows up, then try it once with a real request.
Adding an MCP Server
- Top right "…" → MCP Servers. Common ones (such as Cloud Run) install with one click.
- For a custom one, click Manage MCP Servers to open
mcp_config.jsonand add a config block per the server's instructions. - Click refresh to apply, then have it do something that needs the server to verify.
WARNING
MCP can read and write external systems. Install only from sources you trust, and give tokens the minimum permissions.
How Quota Works and What to Do When You Run Out
Antigravity itself is free. The quota follows the Google AI plan on your Google account (personal accounts only; Workspace accounts do not get these plan quotas). How much you burn depends on how much work the agent actually does. The more complex the task, the faster it goes.
| Plan | Quota refresh | Notes |
|---|---|---|
| Free (Free / AI Plus) | Weekly | Access to core Gemini models. There is a weekly cap, allocated by capacity, mainly to prevent abuse. Good for trying it out and small projects |
| Google AI Pro | Every 5 hours, up to a weekly cap | Higher, more generous quota and weekly cap. Some new models are Pro and above only. When you run out, you can continue with AI credits (choose "always" or "never" auto-use in settings) |
| Google AI Ultra | Every 5 hours, the highest | The highest quota and weekly cap (5x or 20x the Pro tier). Third-party models available. New models arrive first |
Check what you have left: The desktop app's settings page shows base quota usage per model. In the CLI, type /usage or /quota.
You can switch models at any time and choose the thinking level (Low / Medium / High). Use a low level for small changes to save quota, and a high level for hard problems. Which plan gets which model changes fast, so go by the official models page.
NOTE
For Pro opened through a channel redemption or a student discount, Google may count it as a trial or promotional subscription. A few new models labeled "paid Pro only" may not be available.
Wanting a Chinese Interface
The official interface is in English. There is an open-source community localization pack, qqxpee/antigravity2-cn, which translates the menu, tray, settings, and login page. It supports Windows and macOS and works with Antigravity 2.29.0 and above. It is unofficial, so read the notes below before using it.
Installation
- Install Node.js LTS first (the localization script needs it to unpack).
- Download the pack's ZIP from GitHub and extract it.
- Quit Antigravity completely (including the tray).
- Double-click the install script: "双击安装中文汉化.bat" on Windows, the
.commandone on macOS. - Follow the prompts to choose the title display (keep English Antigravity / hide / show Chinese), then reopen Antigravity.
To restore English: quit the app and run the "双击卸载还原官方英文" script.
Notes
- It rewrites
app.asarinside the app (it backs it up asapp.asar.bakthe first time). You have to rerun the install script after every Antigravity update. - English in the conversation that exactly matches UI text may also get translated on screen, but the AI still receives the original.
- macOS says "cannot open": run
chmod +x *.commandin the terminal, then go to "System Settings → Privacy & Security" and click "Open Anyway". On Windows, if permissions are insufficient, right-click and "Run as administrator". - "Unpack failed" usually means Node.js is not installed.
- The project also mentions an optional proxy approach using DLL injection. It is not recommended. TUN mode in your proxy software is cleaner.
Troubleshooting
Find the exact message on your screen and follow the steps. Most problems come down to account region or network. You do not need to reinstall.
Login / Eligibility
| What you see | Cause and fix |
|---|---|
| Sorry, this account is ineligible to use Antigravity … because it is not currently available in your location | It looks at the country or region associated with your account. Check the region on the Terms of Service page first. If it is China, apply to change it. If the region is fine, check TUN mode and your node. A few paid accounts with the right region and IP still get this. That is an eligibility problem with the account itself. Report it on the official forum or switch to another account |
| … because we cannot determine your account's location | Common with Workspace (company / school) accounts, or when the region shows "unknown". Switch to a personal Gmail account. For a personal account, submit the region association form |
| 403 PERMISSION_DENIED / UNSUPPORTED_LOCATION (login succeeds but every generation fails) | Account eligibility and network exit do not match. Confirm TUN mode is on and the node is in a supported region. Quit the app completely (including the tray), sign out, and log in again |
Desktop app works but the agy command line says not eligible | The CLI checks account region more strictly. Accounts in the China region must change region before the CLI works |
| Login asks for a QR code / SMS and gets stuck on the verification page | Stay on a clean, fixed IP. Scan with a phone that has Google services, or try g.co/verifyaccount |
| Been using it, then suddenly "ineligible" after signing out and back in | Eligibility is rechecked on login. Confirm the account region and network have not changed. If they have, follow the first two rows |
While Using
| What you see | Cause and fix |
|---|---|
| Quota used up / told to wait a few days for a refresh | Free accounts refresh weekly. Pro refreshes every 5 hours but has a weekly cap. Check usage per model in settings. Switch model, lower the thinking level, or upgrade to Google AI Pro / Ultra |
| Opened but cannot chat | You must open a folder as a workspace first. No folder, no chat |
| Spinning forever, request timeout, empty model list | The app is probably not going through the proxy. Turn on TUN mode. Stop switching nodes. If it still fails, quit completely and reopen |
| Chinese interface gone after an update | Updates overwrite app.asar. Quit completely and rerun the localization install script |
FAQ
Is Antigravity paid? The software is free, and a personal Gmail account comes with a weekly-refreshing base quota. More quota comes from the Google AI Pro / Ultra plans, not from paying for Antigravity separately.
If I have Gemini Pro, will Antigravity definitely work? Not necessarily. Whether you can log in depends on account region. How much quota you get depends on the plan. The order is: make the account able to log in to Antigravity first, then get Pro. An account in the China region can only use Pro on the Gemini website.
Is Pro from student verification or a channel different from regular paid Pro? The 5-hour Pro quota is usually there. But Google counts some subscriptions as trial or promotional, so a few new models labeled "paid Pro only" on the official models page may not be available. Go by the models you can actually select in settings.
Why does a system proxy alone not work? The desktop app and the language server it starts do not necessarily read the system proxy settings. TUN (virtual network adapter) mode takes over traffic at the system level and is the least hassle.
Can I use a Workspace (company / school) account? The personal tier is for personal Gmail accounts. Workspace accounts often cannot log in and do not get the personal Google AI plan quota. Teams should look at Google's enterprise options.
Will it mess up my files or run commands on its own? It depends on the permissions you give it. For beginners, "review-driven" is recommended: review the plan before letting go, and confirm terminal commands one by one. If it breaks something, you can roll back to a previous step in the conversation. Commit important projects to Git once before letting it start.
The barrier with Antigravity is not installation or operation. It is the account region and the network exit. Get those two right and the desktop app, IDE, and CLI all work the same way. When quota runs short, switching models and lowering the thinking level is worth trying before upgrading the plan.
References: Google's official Antigravity documentation and Antigravity IDE getting started Codelab; the community projects air-rem/antigravity-guide (login verification) and qqxpee/antigravity2-cn (localization pack); and this article by @chasen_liao. The interface and quota are subject to what you actually see.