Antigravity CLI: install, commands, and how agy works

Antigravity CLI is Google's terminal agent, and since June 2026 it is the one Google actually supports for individual developers. It is a single Go binary called agy, installed from a script, sharing an agent core with the Antigravity desktop app.

By the Continuum team. We build a workbench that runs Claude Code, Codex, and their peers, so the model rates quoted here are the ones our own cost analytics ship with.

The short version

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.

What you need to know
  • Install: curl -fsSL https://antigravity.google/cli/install.sh | bash. The binary is agy.
  • 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 json and --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.

SurfaceWhat it isInstall
Antigravity CLITerminal agent, Go binaryinstall.sh, run agy
Antigravity 2Desktop command center for parallel agentsDownload, or brew install --cask antigravity
Antigravity IDEFull agentic editorPart of the desktop download
Antigravity SDKPython tools for building custom agentsPython 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

macOS and Linux
curl -fsSL https://antigravity.google/cli/install.sh | bash

agy --version
Windows: winget, or the install script
winget install Google.AntigravityCLI

# or
irm https://antigravity.google/cli/install.ps1 | iex
Windows CMD
curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd

Where it lands.

PlatformBinary path
macOS, Linux~/.local/bin/agy
WindowsC:\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
Updating
agy update
agy changelog

First run

01

Start it in a repository

cd ~/code/your-project
agy
02

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.

03

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.

04

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.

Read from agy 1.1.5 in August 2026.
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

CommandWhat it does
agyStart an interactive session
agy modelsList models your account can use
agy agentsList available agents
agy pluginInstall, import, enable, disable, and validate plugins
agy updateUpdate the binary
agy changelogRelease notes
agy installConfigure 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.

FlagAliasEffect
--print / --prompt-pRun one prompt non-interactively and exit
--prompt-interactive-iRun a prompt, then stay in the session
--continue-cContinue the most recent conversation
--conversationResume a specific conversation by id
--modelModel for this session
--effortlow, medium, or high
--modeaccept-edits or plan
--agentRun as a named agent
--add-dirAdd a directory to the workspace, repeatable
--project / --new-projectAttach to or create a project
--sandboxRun with terminal restrictions enabled
--dangerously-skip-permissionsAuto-approve every tool request
--print-timeoutHow long headless mode waits. Default 5m
--log-fileOverride the CLI log path

Slash commands

CommandUse it for
/model, /fast, /planningSwitch model, skip reasoning, or force a plan first
/agents, /skills, /hooksThe agent manager, loaded skills, active hooks
/mcpManage MCP servers
/permissionsWhat the agent may do without asking
/diffInteractive diff viewer for pending edits
/contextVisualize how much context is used
/tasksMonitor background shell tasks
/fork, /rewindBranch the thread, or roll back a message
/resume, /renameLoad or rename a conversation
/usage, /creditsQuota and remaining credits
/config, /keybindingsSettings editor and key bindings
/add-dir, /openExtend the workspace, open a path in your editor
/clear, /copy, /logoutReset 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.

~/.gemini/antigravity-cli/settings.json
{
  "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 CLIAntigravity CLI
Binarygeminiagy
Built asNode package on npmGo binary from a script
Individual accountsNot served since 18 June 2026Supported
User config~/.gemini/~/.gemini/antigravity-cli/
MCP serversInside settings.json~/.gemini/config/mcp_config.json
Remote MCP keyurl or httpUrlserverUrl
Workspace skills.gemini/skills/.agents/skills/
Context filesGEMINI.md, AGENTS.mdSame files, unchanged
Add-onsExtensionsPlugins
LicenseApache 2.0No license file in the repo
ModelsGemini onlyGemini, Claude, gpt-oss
The two migration steps that are not automatic.
# 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
Stars1,856
Open issues594
License fileNone. The winget manifest declares it Proprietary
ContentsREADME, CHANGELOG, issue templates, examples/
Last push7 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

SymptomCauseFix
agy: command not foundShell profile not reloaded, or installed with --skip-pathexec $SHELL -l, then agy install
Sign-in loops on a remote boxNo browser in an SSH sessionCopy the printed URL to a local browser, paste the code back
Headless run does nothing and exits 0A tool was soft-denied by the permission policyAdd an allow entry, or check stderr
A migrated MCP server never connectsRemote servers now use serverUrlRename the key in mcp_config.json
Skills are not loadedThey are still in .gemini/skills/Move them to .agents/skills/
Settings vanished after cleanup~/.gemini was deleted wholesaleRe-run agy and redo the onboarding
Out of quota mid-taskWeekly 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.

  1. Antigravity CLI documentation install, commands, headless mode
  2. antigravity-cli on GitHub repo contents and install commands
  3. Gemini CLI to Antigravity CLI migration config, MCP, and skills changes
  4. Transitioning Gemini CLI to Antigravity CLI the 18 June 2026 cutover
Try it

Antigravity,
beside everything else.

Continuum drives agy as a first-class provider next to Claude Code and Codex, on your login, with spend by repo.

free app · your subscriptions · local-first