Antigravity CLI is the terminal surface of Google Antigravity, installed with curl -fsSL https://antigravity.google/cli/install.sh | bash and run as agy. It is a Go binary, not an npm package, and it replaced Gemini CLI for individual accounts on 18 June 2026. It supports interactive and headless modes, Gemini plus Claude and gpt-oss models, MCP servers, skills, plugins, and a one-command import of your old Gemini CLI extensions.
- Install:
curl -fsSL https://antigravity.google/cli/install.sh | bash. The binary isagy. - It is a Go binary, not an npm package. No Node required.
- It replaced Gemini CLI for individual accounts on 18 June 2026.
- Headless:
agy -p "...", with--output-format jsonand--json-schema. - It serves Gemini, Claude, and gpt-oss models from one binary.
- Config lives in
~/.gemini/antigravity-cli/, not a new dotfile directory.
What Antigravity CLI is
Google Antigravity started in November 2025 as an agent-first IDE built around Gemini 3. At I/O on 19 May 2026 it became a platform rather than an editor, and the CLI shipped as one of its surfaces. The important consequence for anyone in a terminal: Antigravity CLI is the successor to Gemini CLI, and on 18 June 2026 Gemini CLI stopped serving requests for free, Google AI Pro, and Google AI Ultra accounts.
The four surfaces, as of August 2026.
| Surface | What it is | Install |
|---|---|---|
| Antigravity CLI | Terminal agent, Go binary | install.sh, run agy |
| Antigravity 2 | Desktop command center for parallel agents | Download, or brew install --cask antigravity |
| Antigravity IDE | Full agentic editor | Part of the desktop download |
| Antigravity SDK | Python tools for building custom agents | Python package |
The CLI and the desktop app share an agent core and sync settings, so a conversation started in the terminal can be exported into the desktop app when it outgrows a single pane.
Install it
curl -fsSL https://antigravity.google/cli/install.sh | bash
agy --version
winget install Google.AntigravityCLI
# or
irm https://antigravity.google/cli/install.ps1 | iex
curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd
Where it lands.
| Platform | Binary path |
|---|---|
| macOS, Linux | ~/.local/bin/agy |
| Windows | C:\Users\<you>\AppData\Local\agy\bin |
| Config, all platforms | ~/.gemini/antigravity-cli/ |
The installer edits your shell profile to add that directory to PATH and to register aliases. Two flags turn that off if you manage your own dotfiles.
curl -fsSL https://antigravity.google/cli/install.sh | bash -s -- --skip-path --skip-aliases
# then, if you change your mind
agy install # configures environment paths and shell settings
agy update
agy changelog
First run
Start it in a repository
cd ~/code/your-project
agy
Answer three setup questions
Color scheme, then rendering mode (alt-screen for a full-screen TUI, inline to keep output in your scrollback), then workspace trust for the current directory. Inline mode is the one to pick if you want the transcript to survive in your terminal history.
Sign in
The CLI checks your system keyring first and falls back to Google Sign-In in a browser. Over SSH it detects the remote session and prints an authorization URL to open on your local machine, then takes a code back.
Check your quota before you start a long task
/usage # or /quota
/credits # remaining credits
Models and reasoning effort
One binary reaches three vendors. agy models prints exactly what your account can use, which is the only list worth trusting because it changes.
agy models
gemini-3.6-flash-high
gemini-3.6-flash-medium
gemini-3.6-flash-low
gemini-3.5-flash-high
gemini-3.5-flash-medium
gemini-3.5-flash-low
gemini-3.1-pro-high
gemini-3.1-pro-low
claude-sonnet-4-6
claude-opus-4-6-thinking
gpt-oss-120b-medium
Note that effort is baked into most model slugs. You can also set it separately.
agy --model gemini-3.1-pro-high --effort high
agy --model gemini-3.6-flash-low --effort low
Commands and flags
Subcommands
| Command | What it does |
|---|---|
agy | Start an interactive session |
agy models | List models your account can use |
agy agents | List available agents |
agy plugin | Install, import, enable, disable, and validate plugins |
agy update | Update the binary |
agy changelog | Release notes |
agy install | Configure PATH and shell aliases |
agy help <cmd> | Help for a subcommand |
Flags
Read from agy --help on 1.1.5. The release shipping in August 2026 was 1.1.9, so run it yourself if a flag is missing.
| Flag | Alias | Effect |
|---|---|---|
--print / --prompt | -p | Run one prompt non-interactively and exit |
--prompt-interactive | -i | Run a prompt, then stay in the session |
--continue | -c | Continue the most recent conversation |
--conversation | Resume a specific conversation by id | |
--model | Model for this session | |
--effort | low, medium, or high | |
--mode | accept-edits or plan | |
--agent | Run as a named agent | |
--add-dir | Add a directory to the workspace, repeatable | |
--project / --new-project | Attach to or create a project | |
--sandbox | Run with terminal restrictions enabled | |
--dangerously-skip-permissions | Auto-approve every tool request | |
--print-timeout | How long headless mode waits. Default 5m | |
--log-file | Override the CLI log path |
Slash commands
| Command | Use it for |
|---|---|
/model, /fast, /planning | Switch model, skip reasoning, or force a plan first |
/agents, /skills, /hooks | The agent manager, loaded skills, active hooks |
/mcp | Manage MCP servers |
/permissions | What the agent may do without asking |
/diff | Interactive diff viewer for pending edits |
/context | Visualize how much context is used |
/tasks | Monitor background shell tasks |
/fork, /rewind | Branch the thread, or roll back a message |
/resume, /rename | Load or rename a conversation |
/usage, /credits | Quota and remaining credits |
/config, /keybindings | Settings editor and key bindings |
/add-dir, /open | Extend the workspace, open a path in your editor |
/clear, /copy, /logout | Reset context, copy the last reply, sign out |
Headless mode
This is the part that makes agy useful in a Makefile, a git hook, or CI. It runs one prompt, prints, and exits.
agy -p "what does the retry logic in internal/queue do?"
# structured, for anything downstream
agy -p "list every exported function missing a doc comment" \
--output-format json | jq
# streaming, when you want to watch a long run
agy -p "run the test suite and fix failures" --output-format stream-json
# multi-turn scripting
agy -p "now add tests for the case you just fixed" --continue
Exit code 0 means success, non-zero means failure, and the JSON payload carries a status of SUCCESS, ERROR, CANCELED, INTERRUPTED, INVALID, WAITING, or RUNNING. Check the status, not just the exit code: a run that ends WAITING on an approval is not a run that failed.
Permissions in headless runs
By default a headless run still respects your settings, and a tool that needs approval is soft-denied with a note on stderr. That is the correct default and the reason a CI job can appear to do nothing. Grant specific permissions rather than reaching for the blunt flag.
{
"permissions": {
"allow": ["command(git)", "write_file(src/)"]
}
}
Coming from Gemini CLI
The two tools are the same idea with a different implementation. Most of your configuration carries over, and the CLI offers to migrate it the first time you run it.
What actually changes.
| Gemini CLI | Antigravity CLI | |
|---|---|---|
| Binary | gemini | agy |
| Built as | Node package on npm | Go binary from a script |
| Individual accounts | Not served since 18 June 2026 | Supported |
| User config | ~/.gemini/ | ~/.gemini/antigravity-cli/ |
| MCP servers | Inside settings.json | ~/.gemini/config/mcp_config.json |
| Remote MCP key | url or httpUrl | serverUrl |
| Workspace skills | .gemini/skills/ | .agents/skills/ |
| Context files | GEMINI.md, AGENTS.md | Same files, unchanged |
| Add-ons | Extensions | Plugins |
| License | Apache 2.0 | No license file in the repo |
| Models | Gemini only | Gemini, Claude, gpt-oss |
# 1. extensions become plugins
agy plugin import gemini
agy plugin list
# 2. workspace skills move by hand
git mv .gemini/skills .agents/skills
agy plugin import also accepts claude, so a Claude Code plugin set can be brought across the same way.
The GitHub repository
The repository is github.com/google-antigravity/antigravity-cli. Two things about it surprise people arriving from the Gemini CLI repo, which had 106,000 stars and full Apache 2.0 source.
Checked 7 August 2026.
| Value | |
|---|---|
| Stars | 1,856 |
| Open issues | 594 |
| License file | None. The winget manifest declares it Proprietary |
| Contents | README, CHANGELOG, issue templates, examples/ |
| Last push | 7 August 2026 |
It is the place Google directs bug reports and feature requests, and where the changelog and examples live. It is not a mirror of the agent implementation. Gemini CLI was Apache 2.0 with the source in the open; Antigravity CLI ships as a proprietary binary with a public issue tracker. If open source is a hard requirement for you, that is the decision point, not the feature list.
When it does not behave
| Symptom | Cause | Fix |
|---|---|---|
agy: command not found | Shell profile not reloaded, or installed with --skip-path | exec $SHELL -l, then agy install |
| Sign-in loops on a remote box | No browser in an SSH session | Copy the printed URL to a local browser, paste the code back |
| Headless run does nothing and exits 0 | A tool was soft-denied by the permission policy | Add an allow entry, or check stderr |
| A migrated MCP server never connects | Remote servers now use serverUrl | Rename the key in mcp_config.json |
| Skills are not loaded | They are still in .gemini/skills/ | Move them to .agents/skills/ |
| Settings vanished after cleanup | ~/.gemini was deleted wholesale | Re-run agy and redo the onboarding |
| Out of quota mid-task | Weekly rate limit on your plan | /usage, then drop to a Flash model or lower effort |
Questions people ask
It is the terminal surface of Google Antigravity: a Go binary called agy that runs an agent in your repository, edits files, runs commands, and calls MCP tools. It shares an agent core with the Antigravity desktop app and replaced Gemini CLI for individual accounts on 18 June 2026.
On macOS and Linux, curl -fsSL https://antigravity.google/cli/install.sh | bash. On Windows, irm https://antigravity.google/cli/install.ps1 | iex in PowerShell. The binary lands at ~/.local/bin/agy and you start it by running agy.
Individual access is free on Google's individual tier, which includes Gemini Flash and Pro models plus Claude Sonnet and Opus 4.6 and gpt-oss-120b under weekly rate limits. Google AI Pro and Ultra raise those limits and add a credit pool. Check /usage in the CLI for your own numbers, because the limits have changed several times.
Gemini CLI is an Apache 2.0 Node package on npm that only talks to Gemini models, and it stopped serving individual accounts on 18 June 2026. Antigravity CLI is a Go binary installed from a script, reaches Gemini, Claude, and gpt-oss models, and is what Google supports. Your GEMINI.md carries over; MCP config and workspace skills move.
github.com/google-antigravity/antigravity-cli. It carries the README, changelog, examples, and issue templates, and it is where Google directs bug reports. There is no license file and the winget manifest lists it as proprietary, so unlike Gemini CLI it is not open source.
In ~/.gemini/antigravity-cli/, with MCP servers in ~/.gemini/config/mcp_config.json globally and .agents/mcp_config.json per workspace. It reuses the ~/.gemini directory rather than creating a new one, which matters if you are cleaning up after Gemini CLI.
Yes. agy -p "your prompt" runs once and exits, --output-format json or stream-json makes it parseable, --json-schema constrains the shape, and --continue chains a second prompt onto the same conversation. Default timeout is 5 minutes.
No. The Homebrew cask installs the Antigravity desktop app. As of August 2026 there is no Homebrew formula or npm package for agy, so use the install script on macOS and Linux. On Windows, winget install Google.AntigravityCLI is packaged.
Sources
Every figure above was read from these pages on August 2026. Vendors reprice without notice; if you find a stale number, tell us.
- Antigravity CLI documentation install, commands, headless mode
- antigravity-cli on GitHub repo contents and install commands
- Gemini CLI to Antigravity CLI migration config, MCP, and skills changes
- Transitioning Gemini CLI to Antigravity CLI the 18 June 2026 cutover