
Antigravity CLI
CLIGoogle 官方终端编码 Agent,接替 Gemini CLI:理解代码库,经确认后修改文件、执行命令,与 Antigravity 2.0 桌面端共享引擎与设置。闭源发行,需用 Google 账号登录,提供免费额度。
Antigravity CLI
Antigravity CLI understands your codebase, makes edits with your permission, and executes commands — right from your terminal.
- Official Docs: antigravity.google/docs/cli/overview
- Official Website: antigravity.google/product/antigravity-cli

Antigravity CLI brings the core capabilities of Antigravity 2.0 (multi-step reasoning, multi-file editing, tool calling, and persistent history) directly to your terminal. It is optimized for keyboard-driven workflows and remote SSH sessions with minimal resource overhead.
Features at a Glance
| Feature | Antigravity CLI | Antigravity 2.0 |
|---|---|---|
| Primary Focus | Speed, keyboard efficiency, low overhead | Comprehensiveness, visual orchestration, project management |
| Interface | Terminal User Interface (TUI) | Full Rich GUI Application |
| Workflows | SSH/Remote sessions, keyboard-first | Local workspaces, heavy orchestration |
| Agent Engine | Shared Core Agent Engine | Shared Core Agent Engine |
Integration
- Shared Agent Engine: Both interfaces run on the same core agent engine. Improvements automatically apply to both.
- Shared Settings: Preferences and permissions sync bidirectionally.
- Session Export: Export terminal sessions to the Antigravity 2.0 GUI to continue working.
Installation
macOS / Linux
curl -fsSL https://antigravity.google/cli/install.sh | bash
Windows PowerShell
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
Usage
After installation, start Antigravity CLI by running:
agy
Authentication
The CLI authenticates via the system keyring, falling back to Google Sign-In if no active session exists.
- Local: Automatically opens your default browser.
- Remote / SSH: Detects SSH sessions and prints an authorization URL to complete login locally.
- Sign Out: Run
/logoutto clear saved credentials.
[!NOTE] For enterprise access, connect your GCP project during onboarding. See the Enterprise page for details.
Terms of Service & Data Use
[!WARNING] AI coding agents are known to have certain security risks, including autonomous code execution, data exfiltration, prompt injection, and supply chain risks. Ensure that you monitor and verify all actions taken by the agent.
By using Antigravity CLI, you agree to help improve the product by allowing Google to collect and use your Interactions data, subject to the Google Terms of Service and Google Privacy Policy. You can choose to opt out at any time via your settings.
Legal & Privacy Links
- Terms of Service: antigravity.google/terms
- Privacy Policy: policies.google.com/privacy
相关资源

Gemini CLI
CLIGoogle 官方开源终端 Agent,使用 Gemini 模型与 100 万 token 上下文,内置 Google 搜索、文件与 Shell 工具并支持 MCP;个人 Google 账号有免费额度。
google-gemini/gemini-cli107k
OpenCode
CLI开源终端编码 Agent,可自由切换多家模型供应商,内置可改代码的 build 与只读分析的 plan 两种 agent 及子代理,另有桌面客户端。原 sst/opencode。
anomalyco/opencode214k
Claude Code
CLIAnthropic 官方终端编码 Agent:读懂代码库、修改代码、执行命令、处理 git 流程,支持插件、MCP 与无头模式(claude -p)。需要登录 Claude 账号或配置 API Key。
anthropics/claude-code151k
Codex CLI
CLIOpenAI 官方在本地运行的编码 Agent,Rust 实现,可读写代码、执行命令并在系统沙箱中运行;可用 ChatGPT 订阅登录,也可配置 API Key。
openai/codex130k
RTK (Rust Token Killer)
CLI在命令输出进入 agent 上下文之前做过滤和压缩的 Rust 命令行代理,覆盖 git、测试、grep、ls 等上百种命令,最多可减少约 90% 的 bash 输出;通过钩子自动改写 Claude Code、Codex 等 agent 执行的命令。
rtk-ai/rtk83.6k
Cline CLI
CLICline 官方命令行版,与 VS Code 插件共用 Agent 核心,支持 plan/act 模式、MCP、检查点与子代理;--yolo、--json 可无人值守跑在 CI 与脚本里。可登录 Cline、ChatGPT 订阅或自带 API Key。
cline/cline70.4k