Antigravity CLI: What It Is, What It Costs, and How to Start
Install Google’s agy terminal agent, review your first edit, and run a headless prompt. See who moved from Gemini CLI and what Google’s terms permit.
Published

If you used Gemini CLI with a personal Google plan, Antigravity CLI is its replacement. Type agy in a project folder and you can ask Google’s coding agent to change a file, inspect the edit, and decide what to run next. Google made the switch for personal users on June 18, 2026.
Gemini CLI vs Antigravity for personal projects
The account you used with Gemini CLI determines whether you need to switch. Google moved free individual users and Google AI Pro and Ultra subscribers to Antigravity CLI. Developers using Gemini Code Assist Standard or Enterprise licenses, or paid Gemini API keys, could keep using Gemini CLI. If you have both a personal login and a work license, check which one your project uses. Google’s transition announcement
On first launch, agy looks for your old Gemini CLI configuration and lets you choose which extensions and settings to bring over. If you’re deciding what to keep on a work machine, the Gemini CLI and Claude Code comparison covers the older tool’s place in that decision. Google’s migration guide
Think of agy as a pair programmer sitting at the terminal you opened. The project directory tells it where to start, a plain-language request gives it a task, and a diff shows you which lines it changed. If you prefer to inspect plans visually or oversee several agents from a desktop window, the Google Antigravity guide covers the wider platform.
Install Antigravity CLI in your terminal
As verified on December 2, 2026, personal access starts at $0 per month, and Google lists Free and Google AI Plus together under a weekly quota measured by work done, with no fixed prompt count. Full Antigravity pricing
Use the command for your shell from Google’s CLI download page. On macOS, Linux, or the Linux terminal on a Googlebook, run:
curl -fsSL https://antigravity.google/cli/install.sh | bashOn Windows, open PowerShell and run:
irm https://antigravity.google/cli/install.ps1 | iexHow to start Antigravity CLI and sign in
Open a fresh terminal. Run agy --version to check that your shell can find the program. Then start in an empty folder so the first edit is easy to spot. Here’s Google’s example for a macOS or Linux shell:
mkdir agy-demo && cd agy-demo
agyFor a personal account, choose Google OAuth when prompted, then finish signing in through the browser window that opens. If Antigravity finds a valid sign-in in your computer’s secure credential store, it can open the session without a browser prompt. Over SSH, open the sign-in link on your local computer and paste the returned code into the remote terminal. Google’s CLI sign-in instructions
During setup, choose your display preferences and check the folder before confirming workspace trust. This is the directory the agent will index. For a first session in an existing project, open your terminal inside that project before launching agy.
How to use Antigravity CLI on a first task
Google’s getting-started example begins with a small request. In the prompt inside agy, ask for a Python script that fetches the text of a web page. Google’s walkthrough shows the agent creating main.py. If it asks for approval to create the file, press Y after checking the filename. In auto mode, workspace edits and sandboxed commands can run automatically.
Type /diff inside the session to inspect the change. For this task, look for where the script gets its URL and what it does with the returned text. Then ask the agent to run the script and show its output. The diff answers “What did it write?” Running the script answers “What happens when I use it?” Type /exit to return to your shell.
The Antigravity CLI command for a single prompt
Use agy -p from the shell when you want one answer printed and have no follow-up ready. For example, from the demo folder after the script exists:
agy -p "Explain how main.py gets the web page text."That’s headless mode. A script can make the same call without opening the interactive interface. Stick with an interactive session when the next instruction depends on what you see in the diff.

What Google permits in headless mode
Section 6 of Google’s Antigravity terms explicitly permits calling Antigravity “as a tool or subagent from another harness, using the Antigravity CLI in headless mode, or configuring it through supported customization and extension mechanisms”. This permission covers the unmodified Antigravity runtime accessed through supported interfaces. It also covers a third-party user interface built around that runtime and supported extensions such as plugins and hooks.
The distinction for a developer is what crosses the boundary. Another coding tool can hand a task to the official CLI. Copying an Antigravity sign-in token into that tool so it can spend your entitlement directly is prohibited. Section 6 also prohibits bypassing or modifying the runtime, turning it into a raw model proxy for an external agent, and sharing, pooling, or reselling individual access. Google identifies separate administrator agreements for access through its business services.

Antigravity CLI vs Claude Code in an existing workflow
If you already work in Anthropic’s Claude Code or OpenAI’s Codex, decide whether you want a new terminal session or just a way to delegate a task from your current one. For the latter, use the Antigravity setup for Claude Code and Codex. For a choice between working environments, see Google Antigravity vs Claude Code.
Voice mode in the terminal
On December 2, 2026, Google said Gemini 4 Live powers native voice mode in both the Antigravity desktop app and CLI. While an agent works, you can hear progress, interrupt to redirect it, and approve routine steps by voice. High-impact actions still require a click. Google’s Gemini 4 Live announcement
Common questions
What is the CLI command for Antigravity?
Run agy in the project directory. It opens an interactive session there.
What does Antigravity do?
Its agents can edit project files and run commands in response to a task. In the CLI, you can inspect the resulting changes with /diff.
How to upgrade Antigravity CLI?
Run agy update in your shell, then check the installed version with agy --version. Google’s CLI command reference
What is the difference between Antigravity and Antigravity CLI?
Antigravity is Google’s development platform. The CLI is the terminal interface to its agents. The platform also offers a desktop app, editor integrations, and a software development kit.
Should I use Gemini CLI or Antigravity?
Use Antigravity CLI if you relied on Gemini CLI through free individual access or a personal Google AI subscription. If you use an eligible work license or paid API key, the personal-account transition alone gives you no reason to switch.
Is Antigravity getting worse?
Google’s public docs describe features and limits. For a project-specific answer, look at how the edits hold up on your own tests. Keep a small task with a known passing test and compare the resulting edits on the same starting files.
Is there anything better than Antigravity?
It depends on the job. If reviewing several plans visually matters more than staying in the shell, start with the desktop app. If you want another terminal agent, compare candidates on the same edit and the checks you use before accepting it.
Why is Antigravity bad?
One concrete drawback for someone planning a batch of jobs is quota predictability. A complex task can use more of the weekly allowance than a short one, so counting prompts tells you little about how much work will fit.
Will Antigravity be free forever?
Google offers individual access today and says usage limits may change. Its current plans page gives no lifetime guarantee.
If you’re choosing which terminal agent to keep, compare the Claude Code alternatives on a task from your own project. For more developer guides, subscribe to the newsletter.
- Published
- Category
- Build








