Today, with the explosion of artificial intelligence, you may have used ChatGPT to help you write code snippets, or used GitHub Copilot to automatically complete code. But have you ever experienced a *
- A "fully automated" AI assistant that can understand projects, design their own solutions, create their own files, and even run and debug code yourself **?
This is Antigravity -** a new generation of Agent AI programming assistant ** created by the Google DeepMind team.
This guide will start from scratch, take you through the installation and configuration of Antigravity, and share practical skills on how to efficiently command it to work for you. *
- The full text has been desensitized, so domestic users can read and share it with confidence!**
##Part1: Get into Antigravity -Why is it different?
Traditional AI assistants are "question-and-answer": you ask, it replies a piece of code, and you manually copy it into the editor.
And **Antigravity is a "task-driven" agent **:
- ** Autonomous sensing **: It can directly read the directory structure and file content of your entire project.
- ** Planning ability **: Faced with complex tasks (such as "Help me develop a message board with background"), it will first write an "Implementation Plan"
Plan), let you pass the review before doing it. - ** Tool usage **: It has its own "hands and feet"-it can automatically create/modify code files, and even run test and compile commands on the terminal.
- ** Safe and controllable **: Before it performs any sensitive operations (such as modifying files, running commands), ** will definitely pop up a window to ask for your approval **, and the security defense line is always in your own hands.
##ˇPart 2: Preparations
Before formal installation, please confirm that your computer and network environment meet the following conditions:
1. compatible operating system
- macOS: Supports Intel and Apple Silicon (M1/M2/M3) chips.
- Windows: Windows 10 and above.
- Linux: Supported by mainstream distributions.
2. Network environment preparation
Because Antigravity relies on Google's global cloud AI services:
- ** Please ensure that your computer network has smooth access to mainstream academic and technical resources overseas **.
- If you encounter a page that cannot be loaded during the first login or download, please check yourself and turn on your network assistive tool. Due to platform compliance requirements, please explore specific configuration methods yourself (I believe everyone understands
😉)。
3. Prepare your Google account
- Antigravity requires binding to your Google account to activate the AI model (it is recommended to prepare a Gmail mailbox).
- If you don't have an account yet, please go to Google's official website to register through regular channels in a smooth network environment.
##Part 3: Version Selection-Desktop Version vs IDE Plug-in Version
Antigravity provides two forms. Their core capabilities are the same, but their usage scenarios are different:
| characteristics | Desktop App🌟 (recommended) | IDE version |
|---|---|---|
| ** Suitable for the crowd ** | Newcomer programming, product manager, daily light developer | Professional programmers, developers who are accustomed to working in editors |
| ** Installation difficulty ** | Very low (double click to install like ordinary software) | Lower (double click to install like ordinary software) |
| ** Independence ** | Running in a separate window, the UI interface is more beautiful and easy to interact | Embedded in the editor sidebar for more coherent code writing |
| ** Download address ** | Click to visit the desktop version download page | Click to visit the IDE version download page |
##ˇPart 4: Hands-on installation and pit avoidance guide
1. Desktop installation steps
####macOS installation
- Click to download the corresponding installation package in
.dmgformat. - Double-click to open the
.dmgfile, and drag the Antigravity icon into the **Applications ** folder on the right. - ** Trap Avoidance Guide **: When opening it for the first time, if the system prompts "Unable to open it because the developer cannot be verified", please don't panic. Open Mac's **"System Settings"->"Privacy and Security"
**, swipe down to find the security section, and click "Still want to open".
####Windows installation
- Click to download the
.exeinstaller. - Double-click to run, follow the installation wizard and click "Next" to complete.
- ** Trap avoidance guide **: If Windows Defender pops up "Preventing Unrecognized Applications from Starting", click "More Information", and then select "Still Running".
##ˇPart 5: Core configuration (how to correctly set "brain" and "hands")
After the installation is complete and opening the software, we need to make three key configurations:
###Step 1: Account login
- Launch Antigravity and click "Sign in with Google" on the interface.
- The system will automatically jump to your default browser, select your Google account, and complete authorization.
- After the authorization is successful, the browser will prompt you to return to the client, and the Antigravity interface will be successfully activated.
###Step 2: Select your AI model (Model Selection)
Antigravity supports switching between different Gemini models. Click the ** Settings ** in the lower left corner of the software to find the Model Selection:
- Gemini 3.1 Pro (High)(highly recommended): It is the smartest "all-round brain", good at handling code tasks that require complex logic and require in-depth planning and multi-file collaboration.🌟
- Gemini 3.5 Flash (Medium): Very fast response, suitable for daily simple code questions and answers, correcting individual typos, or quickly reviewing documents.
###Step 3: Set up the "Workspace" reasonably
** The workspace is a stage for AI to show its talents, and configuring it is very important: **
- It is recommended to create a new dedicated folder on your computer (such as under the "Documents" or "Users" directory) and name it
MyAIProjects. - Click "Open Folder" in Antigravity to select this folder as the current workspace.
3.ˇ* * Security Warning **: ** Never ** set the root directory of your computer (such as drive C, drive D) or your entire user home directory as a workspace. because AI
The assistant has file modification permissions. If the workspace is too large, it may misread or affect your system's personal files.
##Part 6: Practical Guide-How to Command AI to Work for You
After configuring the workspace, you can start entering your first command. Here is the core workflow of Antigravity:
1. Propose ambitious goals
You can give orders like you would speak to a human programmer:
ˇ*"Help me write an exquisite personal to-do list (To-Do) in HTML + CSS + JS
List) web pages, required to support Diablo mode, and tasks can be cached in the browser, so that the page will not be lost when refreshed."*
2. Protocol Validation (Planning Mode)
When you enter complex tasks, Antigravity will not blindly write code, but will automatically enter ** planning mode **:
- It generates an implementation_plan.md (implementation document).
- The document will list which files it plans to create (such as
index.html,style.css,app.js), as well as the specific design logic. - ** What you need to do **: Read this plan carefully, and if you think it is feasible, directly reply "Agree" in the chat box or click Approve.
3. Security Approvals (Command and File Approvals)
When writing code and running projects, AI calls system tools:
- When it wants to ** write/modify a file **, a green/red code difference comparison (Diff) will pop up on the interface and let you confirm it.
- When it wants to run debugging commands ** on the terminal **(such as starting a local web server), it will apply for command line execution privileges from you.
- ** Security Tips **: Please develop good auditing habits, carefully confirm whether the command line it wants to execute is safe, and then click *Approve after confirming that it is correct.
##Part 7: Skills for Advanced Players
- ** Utilize subagents **: When working on extremely large projects, you can use Antigravity
Subagents that are specifically responsible for "research literature" or "database debugging" are derived. They work in parallel in the background without interfering with each other, and finally report to the main program. - ** Write a clear Prompt**: When asking for AI, try to follow the principle of **"Role + Context + Goals + Restrictions"*. For example: "
- You are a front-end expert. In the current workspace, help me reconstruct the data persistence logic in app.js and use LocalStorage instead of modifying the original CSS style. *"
##Part 8: Troubleshooting
**Q: When logging in, the browser prompts "Unable to connect to the server" or "Unable to display page"? **
A: This is usually due to network environment issues. Please confirm that your overseas network access tool has enabled "Global Proxy" mode, or confirm that the proxy port is configured correctly in the system settings.
**Q: AI reported an error and prompted "Permission Denied"? *
A: This error is reported when the AI attempts to read a file outside the workspace, or when it attempts to run a command that requires system administrator (sudo) privileges. Make sure your workspace is set up in the general user directory (such as
/Users/username/Documents/), and do not let the AI run high-risk system-level instructions.
**Q: How to view the local log of AI operation? **
A: Antigravity will silently save logs in the background of the system. You can find related logs in the
.gemini/antigravitydirectory under the user directory
Files for debugging or viewing detailed historical workflows.
🎉Congratulations to you! You have mastered all the secrets of Antigravity. Now, open your workspace and send your first development command to the AI!**