Antigravity CLI
Google's terminal AI agent: edits code across files, runs commands and keeps session history, started with the agy command
- 2,662 ★ on the repository
- Last commit
Broad access
Why this level
- The agent edits files and runs commands in your terminal; approval of each change stays with you
- Installation runs a script from Google's site, and interaction data goes to Google under the terms of use
Install
- Works in
Manual install
curl -fsSL https://antigravity.google/cli/install.sh | bashmacOS and Linux. For Windows PowerShell: irm https://antigravity.google/cli/install.ps1 | iex.
Access and checks
How we reviewBroad accessThe tool can change data, run commands or handle secrets.
- The agent edits files and runs commands in your terminal; approval of each change stays with you
- Installation runs a script from Google's site, and interaction data goes to Google under the terms of use
This is third-party code. Review the repository files before installing.
What it does
The Antigravity CLI is the terminal edition of Google's Antigravity 2.0 agent. It reads your codebase, proposes edits across several files and runs commands, making each change only with your permission. The interface is text-based, built for keyboard work and remote SSH sessions with a light footprint. The CLI and the Antigravity 2.0 desktop app share one agent engine, one set of settings and one set of permissions. You can export a terminal session to the desktop app and keep working there. For sign-in the CLI uses the system keyring and falls back to Google sign-in; on an SSH machine it prints an authorization link that you open on your own computer.
Who it is for. For developers who work in a terminal or over SSH and want Google's agent next to the code without a graphical shell.
Good fit when
- You work on a remote server over SSH and need an agent without a graphical interface
- You want to edit code across several files and approve every change from the keyboard
- You started a session in the console and plan to continue it in the Antigravity 2.0 app
- Enterprise access runs through a GCP project, which you connect during first sign-in
- You want a status line or terminal title updated by your own script
Not a fit when
- You need visual orchestration of several agents and project management: the Antigravity 2.0 desktop app covers that
- You need the CLI source for audit or patching: the repository holds only docs, examples and a changelog, and installation runs through a script from Google's site
- Your policy forbids sending interaction data to Google: the terms say it is collected, with an opt-out in settings
- The agent must run without a Google account
Example request
Find where the project reads its config and move the path into an environment variable; show the edits before writingLimitations
The repository has no CLI source, only docs and examples, so behavior is checked against the documentation on antigravity.google. Installation runs a script downloaded from Google's site. Under the terms of use Google may collect your interaction data, which you can switch off in settings. Check availability of Google services from your region in advance. For enterprise access you connect a GCP project during first sign-in; details are on the Enterprise page of the docs. Settings and permissions sync between console and app, so a change in one place affects both.
How to disable. The /logout command in the CLI clears saved credentials. Remove the installed agy as you would any executable placed by the install script.
FAQ
How do I install Antigravity CLI and what starts it?
On macOS and Linux one command is enough: curl -fsSL https://antigravity.google/cli/install.sh | bash. Windows has PowerShell and CMD variants. After installation you start the CLI with agy.
How is Antigravity CLI different from Antigravity 2.0?
Antigravity 2.0 is a graphical app for orchestration and project management, while the CLI is a text interface for fast keyboard work and SSH. They share the agent engine, settings and permissions, and a session can move from the terminal to the app.
How do I sign in to Antigravity CLI on an SSH server?
The CLI detects an SSH session and prints an authorization link. You open it in a browser on your own computer and finish sign-in there. /logout signs you out.
What does Antigravity CLI do with my data?
Under the terms of use Google collects interaction data with the agent to improve the product. You can opt out in settings at any time.
How do I customize the status line in Antigravity CLI?
The repository has examples: examples/statusline/statusline.sh for the status line and examples/title/title.sh for the terminal title. Each example has its own README with steps.
Discussion
No questions or reviews yet.
Related
CLI toolsDelegating to an intern: Google's Antigravity CLI (agy) with a fast Gemini model for Claude Code, Codex, Pi and OpenCode. Code and tasks go to Google
A .agents workspace for Google Antigravity: 20 roles, 47 skills, 13 commands, project memory, a safety hook and a CLI with update rollback
Google's open-source terminal agent on Gemini models: code work, shell, web search and MCP
Google's CLI and skill set that helps a coding agent build, evaluate and deploy agents on Google Cloud with ADK and Gemini Enterprise
A skill for messaging between Claude Code, Codex, Gemini CLI and other CLI agents through a shared local SQLite database, written in bash
A tmux-based TUI that runs Claude Code, Codex and other agents in one list: status, quick prompts, worktrees and diff review
Comparison with similar tools
Entries that share the main search query, and how they differ.
| Entry | Official | Repository stars | Main difference |
|---|---|---|---|
| Antigravity CLI (this entry) | yes | 2,662 | |
| Claude Code | no | 153,873 | Anthropic's terminal agent with its own permission model and plugins |
| OpenCode | no | 222,896 | open-source terminal agent with a model choice across providers |
| AG Kit | no | 8,206 | a .agents workspace for Google Antigravity |
README in short
The repository describes the product: a comparison table of the console and Antigravity 2.0, install commands for Unix and two Windows shells, the sign-in flow and a warning about the dangers of autonomous agents. Terminal customization examples sit beside it.