How to Use Antigravity CLI, Google's Gemini CLI Replacement
Gemini CLI users now move to Antigravity CLI. How to install agy, run your first session, migrate GEMINI.md, skills and MCP, and what the free quota covers.

If you followed a Gemini CLI tutorial and it no longer works with your Google account, this is why: on 18 June 2026, Google moved free, Google AI Pro and Google AI Ultra users from Gemini CLI to Antigravity CLI. The new tool does the same job (an AI agent that reads your project, writes code and runs commands in your terminal) under a new command, agy.
This guide covers installing it, your first session and moving your Gemini CLI setup across, using Google’s own Antigravity documentation.
Comparing options? See Claude Code vs Codex vs Gemini CLI for prices and plans side by side.
What changed, in short
- 19 May 2026: Google announced it was “transitioning Gemini CLI to Antigravity CLI.”
- 18 June 2026: Gemini CLI and the Gemini Code Assist IDE extensions stopped serving free individual users and Google AI Pro and Ultra subscribers.
- Still on Gemini CLI: companies with Gemini Code Assist Standard or Enterprise licenses, and anyone using a paid Gemini API key.
Google says Antigravity CLI is built in Go, runs multi-agent tasks in the background, and shares its agent with the Antigravity 2.0 desktop app, but warned it wouldn’t have full feature parity at launch.
What it costs
Google’s Antigravity plans page says the CLI is included on every plan:
| Account | Quota |
|---|---|
| No paid plan | “A meaningful quota, refreshed weekly” |
| Google AI Pro | Refreshed every five hours, up to a weekly limit |
| Google AI Ultra | The highest quota, plus third-party models |
Google doesn’t publish exact numbers and says limits can change with capacity. Complex tasks use more of your quota.
Step 1: Install Antigravity CLI
On Mac or Linux, open a terminal and run the command from Google’s quickstart:
curl -fsSL https://antigravity.google/cli/install.sh | bash
On Windows, Google’s quickstart has separate PowerShell and CMD installers; copy the one for your terminal from the Antigravity getting-started page.
Then check it worked:
agy --version
The program installs to ~/.local/bin/agy. If your terminal says agy isn’t found, that folder isn’t on your PATH; open a new terminal window, then add the folder to your PATH if it still fails.
Prefer an app? The Antigravity desktop app needs macOS 12 or later, or 64-bit Windows 10 or 11, and uses the same agent.
Step 2: Start your first session
Make a practice folder and start agy inside it:
mkdir agy-demo && cd agy-demo
agy
On first launch you pick a color scheme, choose how output is displayed, and confirm you trust the folder. Sign in with your Google account when asked.
Then type a request, such as Google’s own example:
Write a simple python script to fetch web page text
When the agent wants to create a file, press Y to approve. To see exactly what changed, type:
/diff
To leave, type /exit or press Ctrl + D.
Step 3: Move your Gemini CLI setup across
The first time you run agy on a computer that had Gemini CLI, it detects your old setup and offers a checklist to convert it. Here’s what happens to each part, according to Google’s migration guide:
| Gemini CLI item | In Antigravity CLI |
|---|---|
| GEMINI.md and AGENTS.md project files | No change needed. They still apply, as does your global ~/.gemini/GEMINI.md |
| Extensions | Convert them with agy plugin import gemini (they’re now called plugins) |
| Global skills | Stay in ~/.gemini/skills/, or move to ~/.gemini/antigravity-cli/skills/ |
| Workspace skills | Action required: move from .gemini/skills/ to .agents/skills/ |
| MCP servers | Move from ~/.gemini/settings.json to ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (project) |
| Sign-in tokens | Moved to your system keyring automatically |
One detail that catches people out: for remote MCP servers, the address setting is now called serverUrl, replacing url or httpUrl. If a server stops connecting after you migrate, check that key first.
Google also notes that some custom terminal themes and experimental visual features from Gemini CLI may not carry over.
Tips for getting good results
- Start in a git repository so you can undo anything the agent changes.
- Review with /diff before you accept a big change.
- Be specific. “Add input validation to the signup form so empty emails show an error” works better than “fix the form.”
- Keep your project notes in GEMINI.md or AGENTS.md. Coding standards and project rules written there apply to every session.
- Watch your quota. On the free tier it refreshes weekly, so save long refactors for when you need them.
Antigravity CLI or another agent?
If you already pay for ChatGPT Plus, Codex is included; if you pay for Claude, Claude Code is. Antigravity CLI’s main advantage is a free weekly quota with no subscription. New to coding agents? Our Claude Code for beginners tutorial walks through the same first-project approach with a different tool, and AI coding for beginners covers the basics.
Key takeaways
- Antigravity CLI (
agy) replaced Gemini CLI for free, Google AI Pro and Ultra users on 18 June 2026. - Install on Mac or Linux with one curl command, then run
agyin a project folder. - GEMINI.md files keep working; workspace skills and MCP settings need moving.
- Every plan includes the CLI; free accounts get a quota that refreshes weekly.
Sources: Google Developers Blog: Transitioning Gemini CLI to Antigravity CLI · Antigravity: Getting started · Antigravity: Migrating from Gemini CLI · Antigravity plans
Frequently asked questions
What is Antigravity CLI?
Antigravity CLI is Google's terminal coding agent, launched in May 2026 as the successor to Gemini CLI. Its command is agy. Google says it is built in Go, runs multi-agent tasks in the background and shares its agent with the Antigravity 2.0 desktop app.
Is Antigravity CLI free?
There's a free option. Google's Antigravity plans page says accounts without Google AI Pro or Ultra get a quota refreshed weekly, while Pro and Ultra quotas refresh every five hours up to a weekly limit. The CLI is included on every plan.
Does Gemini CLI still work?
Only for some users. Since 18 June 2026 it no longer serves free Gemini Code Assist for individuals or Google AI Pro and Ultra subscribers. It still works with paid Gemini API keys and Gemini Code Assist Standard or Enterprise licenses.


