Antigravity CLI (agy) is Google's terminal coding agent. It runs the same agent engine as the Antigravity 2.0 app, reads your codebase, edits files and runs commands with your permission. Install it with one curl or PowerShell command, sign in with a personal Google account, and you get a free weekly quota on Gemini 4 Hydrogen.
Google Antigravity on Toolfolio. Updated November 30, 2026.
What is Antigravity CLI?
Antigravity CLI is the terminal version of Google Antigravity, Google's agent-first coding platform. You type
agy inside a project folder, describe what you want in plain English, and an AI agent plans the work, edits files, runs tests and shows you diffs, all inside a text interface (a TUI) in your terminal.
Google launched it on May 19, 2026 in a blog post called "Google Antigravity CLI", describing it as "the most lightweight way to invoke, monitor, and interact with Antigravity agents, directly from your terminal." The GitHub README says it brings the core of Antigravity 2.0 to the terminal: multi-step reasoning, multi-file editing, tool calling and persistent history, tuned for keyboard-driven work and remote SSH sessions.
| Question | Answer (checked November 30, 2026) |
|---|---|
| Who makes it? | Google, as part of Google Antigravity |
| Command name | agy |
| Platforms | macOS, Linux, Googlebook (Linux terminal) and Windows |
| Latest version on the download page | v1.5.16 |
| Is it free? | Yes, with a weekly quota on a personal Google account |
| Paid upgrades | Google AI Pro ($20 a month) and Google AI Ultra ($100 or $200 a month) |
| What it replaced | Gemini CLI for free users and Google AI Pro and Ultra subscribers (since June 18, 2026) |
What Antigravity CLI does in plain English
Think of agy as a coding assistant that lives in your terminal instead of a code editor. You can ask it to:
- Explain an unfamiliar codebase or a single function
- Fix a failing test, then rerun the suite to prove the fix works
- Build a feature across several files and show you every change as a diff
- Run background subagents in parallel on separate tasks (type
/agentsto watch them) - Plan first with
/plan, interview you about requirements with/grill-me, or run until a goal is verified with/goal - Answer one-off questions in scripts and CI with headless mode (
agy -p "prompt")
How it relates to the Antigravity app and Gemini CLI
Antigravity now comes in several surfaces: the Antigravity 2.0 desktop app, the CLI, IDE extensions (VS Code, Visual Studio, JetBrains,
Zed, Xcode, Eclipse) and a Python SDK. Google says the app and the CLI share "the same Antigravity agent harness" and the same settings, so permissions you set in one apply to the other. Conversations are separate by default, but you can pull a CLI conversation into the app from its @conversation menu.
Gemini CLI still exists, but its GitHub README now says it is meant for Gemini Code Assist Standard and Enterprise licenses on Google Cloud. Free individual access and Google AI Pro and Ultra users "moved to Antigravity CLI on June 18, 2026." If you used Gemini CLI on a personal Google account, agy is its successor.
How to install Antigravity CLI
Installation is one command. Google's docs list these installers on the download page, the getting started guide and the GitHub README.
Install on macOS, Linux or Googlebook
Open a terminal and run:
curl -fsSL https://antigravity.google/cli/install.sh | bash
The binary lands in ~/.local/bin/agy.
Install on Windows
In PowerShell:
irm https://antigravity.google/cli/install.ps1 | iex
In Command Prompt (CMD):
curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd
On Windows the binary goes to C:\Users\<you>\AppData\Local\agy\bin.
Check that it worked
agy --version
If you see agy: command not found, the install folder is not on your PATH. On macOS or Linux, add export PATH="$HOME/.local/bin:$PATH" to ~/.zshrc or ~/.bashrc and reload your shell. On Windows, Google's troubleshooting page gives a PowerShell snippet that adds %LOCALAPPDATA%\agy\bin to your user PATH, then you restart the terminal.
Is there an npm package? Not an official one. Google's docs only list the install scripts above, unlike Gemini CLI, which installs with npm install -g @google/gemini-cli. The CLI also updates itself in the background.
First launch and sign-in
Go to a project folder and start it:
cd my-project
agy
On the first run a short setup asks for three things:
- Color scheme: Dark, Solarized Dark, Solarized Light or your terminal default.
- Rendering mode: Alt-Screen (full-screen) or Inline (output stays in your terminal history).
- Workspace trust: confirm you trust the folder before the agent indexes it.
Then you sign in. Google's codelab shows two options: Google OAuth (opens your browser to log in with a Google account) or Use a Google Cloud project. Over SSH, agy prints a link you open on your own machine instead. Your session token is stored in the system keychain (Apple Keychain, Linux secret-service or Windows Credential Manager), and /logout clears it.
One catch: Google Workspace accounts (you@yourcompany.com) don't include Antigravity plans. Use a personal Google account, pay as you go with your own Google Cloud project, or go through Gemini Enterprise.
If you already used Gemini CLI, agy detects your old setup on first launch and offers to migrate it. More on that below.
How to use Antigravity CLI
The three ways to start it
| Command | What it does |
|---|---|
agy | Opens the interactive TUI in the current folder |
agy -i "prompt" | Opens the TUI and sends a first prompt |
agy -p "prompt" | Runs one prompt with no UI, prints the answer and exits (headless mode) |
Headless mode is what you use in scripts and CI. It supports --output-format text, json or stream-json, a --json-schema flag for structured answers, --model and --effort to pin a model and reasoning level, --continue to resume the last conversation and --print-timeout to cap run time. You have to sign in once with a normal interactive agy session first, because headless runs reuse cached credentials.
Execution modes: how much the agent can do on its own
Press Shift+Tab to cycle modes during a session:
| Mode | What happens |
|---|---|
| default | Shows a diff and asks before every file edit, and asks before running commands |
| accept-edits | Applies file edits in your workspace automatically, still asks before commands |
| auto | Applies edits and runs safe, reversible commands in a sandbox without asking; risky actions still prompt |
| plan | Makes the agent outline the steps before it writes code |
Since v1.5.7, agy starts in auto mode where it is available (it needs the terminal sandbox and a personal account) and in default mode otherwise. If you want to approve every change, switch to default in /config. There is also a --dangerously-skip-permissions flag that approves everything. Google warns against it unless you fully trust the prompt and environment, and so do we.
Slash commands worth knowing
| Command | Use it to |
|---|---|
/model | Pick the reasoning model (saved across sessions) |
/usage (or /quota) | See how much of your 5-hour and weekly quota is left |
/credits | Check AI credit balance (paid plans) |
/agents | Watch and switch between background subagents |
/plan, /goal, /grill-me | Plan first, run to a verified goal, or get interviewed about requirements |
/diff, /rewind | Review changes, or roll the conversation back |
/mcp, /skills, /plugin, /hooks | Manage MCP servers, skills, plugins and hooks |
/config, /keybindings | Change settings and shortcuts |
/logout | Sign out and remove saved credentials |
Add MCP servers and skills
agy reads MCP servers from ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (per project), and workspace skills from .agents/skills/. It still follows your GEMINI.md and AGENTS.md rule files. That means the same MCP servers you use in
Claude Code or
Cursor can usually be added here too, for example
earshot, which lets coding agents listen to audio files and generate sound effects from code. For ideas, see our best MCP servers for designers, creators and marketers and our 21st.dev Magic MCP setup guide. Check each server's own docs for setup, since we have not tested every one inside agy.
Moving over from Gemini CLI
- On first launch,
agyfinds your Gemini CLI setup and shows a checklist of what to migrate. - Convert old Gemini extensions into Antigravity plugins with
agy plugin import gemini. - Move project skills from
.gemini/skills/to.agents/skills/, oragywon't see them. - In MCP configs, rename the
urlorhttpUrlkey toserverUrlfor remote servers. GEMINI.md,AGENTS.mdand~/.gemini/GEMINI.mdkeep working with no changes.
Google notes that some custom Gemini CLI themes and experimental visual overlays may not carry over.
Is Antigravity CLI free? Free limits explained
Yes. Antigravity's pricing page lists a $0 For Individuals plan that covers the app, the CLI, the IDE extensions and the Python SDK, with parallel background agents, subagents, browser use and scheduled tasks. It is not a trial. You only need a personal Google account.
What the free tier includes
According to Antigravity's Plans docs, free and Google AI Plus users get "a meaningful quota, refreshed weekly", a weekly rate limit and access to Gemini 4 Hydrogen, which is also the default model for free accounts.
Model lineups are changing today. The pricing and Models pages say Gemini 3.8 Flash, Claude Sonnet 4.6, Claude Opus 4.6 and GPT-OSS-120b "will be removed on November 30, 2026." After that, the free tier is effectively Gemini 4 Hydrogen only.
How big is the free quota?
Google does not publish a number of prompts or tokens. The docs say limits follow "the amount of work done by the agent": simple tasks let you send more prompts, while long, complex tasks use more quota. Limits are "primarily determined by available capacity" and can change. Inside the CLI, run /usage to see what is left. The panel shows each model group with a weekly limit and a five-hour limit.
When you hit the weekly limit on the free plan, you wait for the reset. Paying for extra usage with AI credits is only available on Google AI Pro and Ultra, and Antigravity does not support bringing your own API key for more quota.
Paid plans: Google AI Pro and Ultra
| Plan | Price | Quota | Models in Antigravity |
|---|---|---|---|
| For Individuals | $0 | Baseline quota, refreshed weekly | Gemini 4 Hydrogen |
| Google AI Pro | $20 a month | Refreshed every 5 hours, higher weekly limit | Gemini 4 Neon, Carbon and Hydrogen, Orchestrator, Claude Sonnet 5.5 and Opus 5.5 (paid, non-trial) |
| Google AI Ultra | $100 a month | 5x the Pro rate limit | Everything in Pro, with the highest access |
| Google AI Ultra | $200 a month | 20x the Pro rate limit | Everything in Pro, with the highest access |
| Business (Google Cloud) | From $30 per seat a month, or pay as you go | Set by your organization | Gemini models, partner models with admin opt-in |
Prices come from Google's "Changes to Antigravity plans" post (May 19, 2026) and the Antigravity pricing page; check your local price on Google One before you subscribe. Pro and Ultra are the same Google AI subscriptions that unlock more in the
Gemini app. Pro trial accounts get a lower quota and fewer models than paid Pro until you switch to a paid plan.
Don't log third-party tools into your Antigravity account
Antigravity's FAQ is blunt: using third-party software such as Claude Code, OpenClaw or OpenCode with your Antigravity login "is a violation of our Terms of Service" and "can result in suspension or termination of your account." Wrapping agy -p inside another coding agent, or rotating between accounts, is "not supported under consumer plans." If you want Gemini inside another agent, Google recommends a
Google AI Studio or Gemini Enterprise API key instead.
One more thing to know: the README says Google collects your Interactions data to improve the product by default. You can opt out in settings.
Antigravity CLI vs Claude Code vs Codex vs Gemini CLI
All four are AI coding agents that run in a terminal. The biggest differences are who can use them for free and which models they run.
| Antigravity CLI | Claude Code | Codex | Gemini CLI | |
|---|---|---|---|---|
| Made by | Anthropic | OpenAI | ||
| Command | agy | claude | codex | gemini |
| Free option | Yes, weekly quota on a personal Google account | No, needs a paid Claude plan or API credits | Yes, included in ChatGPT Free for quick tasks | No longer for individuals |
| Paid entry | Google AI Pro, $20 a month | Claude Pro, $20 a month ($17 billed yearly) | ChatGPT Go $8, Plus $20 | Gemini Code Assist Standard or Enterprise |
| Models | Gemini 4 family; Claude 5.5 models on paid plans | Claude models | OpenAI models | Gemini, not tuned for Gemini 4 |
| Also available as | Desktop app, IDE extensions, Python SDK | Part of your Claude plan, sharing usage with Claude chats | Web, IDE extension, iOS | Gemini Code Assist on Google Cloud |
| Bring your own API key | No | Yes, through an Anthropic Console account | Yes, at API prices | Yes, for legacy paid API and Vertex keys |
| Best for | Free terminal agent with subagents and Gemini models | Deep reasoning and careful multi-file work | People already paying for ChatGPT | Companies on Gemini Code Assist |
Prices are US list prices from claude.com/pricing, developers.openai.com/codex/pricing and Google's Antigravity plans post, checked November 30, 2026. Usage limits on all paid plans vary with task size.
Antigravity CLI vs Claude Code
Claude Code is included in every paid Claude plan and shares one usage pool with your Claude chats. It is not on the free Claude plan. Developers on Reddit and in comparison posts that rank for this search generally give Claude Code the edge on hard debugging and careful refactors, while agy wins on price because it has a real free tier, and on parallel subagents. Both use project rule files: CLAUDE.md for Claude Code, AGENTS.md and GEMINI.md for agy. On Google AI Pro, Antigravity also lets you pick Claude Sonnet 5.5 and Claude Opus 5.5 as models.
Antigravity CLI vs Codex
Codex is OpenAI's agent. It runs in a CLI, an IDE extension, the web and iOS, and it is included in every ChatGPT plan, starting with Free. If you already pay for ChatGPT Plus, Codex costs you nothing extra. If you pay for nothing, both Codex and agy have a free way in, so try both on the same task and compare.
Antigravity CLI vs Gemini CLI
For personal accounts this is no longer a real choice. Gemini CLI is now for Gemini Code Assist customers on Google Cloud, and its README warns it is "not optimized for Gemini 4+." If you are on a free or Google AI Pro or Ultra account, use agy and follow the migration steps above.
Other options if you prefer an editor or another agent
Cursor and
Windsurf Editor: AI code editors if you would rather work in a GUI than a terminal.
Zed: a fast editor that also has an official Antigravity extension.
Amp and
OpenCode: other coding agents. OpenCode is open source and works with many model providers, but remember you cannot sign it in with your Antigravity login.
Who should use Antigravity CLI?
- Use it if you want a capable coding agent in the terminal without paying, you already pay for Google AI Pro or Ultra, you work over SSH, or you are moving off Gemini CLI.
- Look elsewhere if your company only gives you a Google Workspace account and won't set up Google Cloud billing, if you need to plug your subscription into third-party tools, or if you already get more from Claude Code or Codex on a plan you pay for.
Frequently asked questions
What is Antigravity CLI?
Antigravity CLI (agy) is Google's terminal-based AI coding agent. It shares its agent engine and settings with the Antigravity 2.0 desktop app, and it can read your codebase, edit files, run commands, use subagents and connect to MCP servers.
Is Antigravity CLI free?
Yes. Personal Google accounts get the $0 For Individuals plan with a weekly quota on Gemini 4 Hydrogen. Google AI Pro ($20 a month) and Ultra ($100 or $200 a month) raise the limits, refresh them every 5 hours and add more models.
How do I install Antigravity CLI?
On macOS or Linux run curl -fsSL https://antigravity.google/cli/install.sh | bash. On Windows PowerShell run irm https://antigravity.google/cli/install.ps1 | iex. Then check with agy --version and run agy in a project folder.
Is Antigravity CLI as good as Claude Code?
It depends on the job. Developers tend to rate Claude Code higher for deep reasoning and tricky multi-file fixes, while Antigravity CLI is free to start, runs parallel subagents and gives paid users Gemini 4 and Claude 5.5 models. Try both on a real task before you pay.
Why is Claude Code better than Antigravity?
Many developers prefer Claude Code for hard bug fixes and careful refactors, and its tooling has been around longer. Antigravity's advantages are its free tier and shared quota across the app and CLI. "Better" depends on your codebase and budget.
Can Claude Code be used with Google Antigravity?
Not with your Antigravity login. Google's FAQ says using third-party software such as Claude Code with an Antigravity account breaks the Terms of Service and can get the account suspended. To use Gemini models from Claude Code, use a Google AI Studio or Gemini Enterprise API key.
Is Antigravity outdated?
No. The CLI launched in May 2026 and the download page listed v1.5.16 on November 30, 2026, with the app at v2.36.0. Google keeps adding models such as Gemini 4 Neon. What is outdated is Gemini CLI for personal accounts, which Antigravity CLI replaced in June 2026.
Can I install Antigravity CLI with npm?
There is no official npm package. Google's docs list only the curl install script for macOS and Linux and the PowerShell and CMD scripts for Windows.
Can I use Antigravity CLI with a Google Workspace account?
Not on a Google AI plan. Workspace accounts don't include Antigravity plans. Use a personal Google account, pay as you go with a Google Cloud project, or get access through Gemini Enterprise.
