Google Gemini CLI (gemini) is an Apache-2.0 terminal agent for Gemini Code Assist on Google Cloud and legacy API or Vertex keys. Google Antigravity spans the Antigravity App, Antigravity CLI (agy), standalone IDE, editor extensions and Python SDK, replacing Gemini CLI on 18 June 2026 for free and Google AI Pro or Ultra plans. The consumer Gemini desktop app is a separate everyday assistant that opens Antigravity in one click on macOS.

Google Gemini CLI and Google Antigravity side by side
The google-gemini/gemini-cli README names three command-line tools:
- Gemini CLI (
gemini) is for organisations with Gemini Code Assist Standard or Enterprise, or Code Assist for GitHub, on Google Cloud. - Antigravity CLI (
agy) is an interactive multi-agent coding terminal for Gemini 4 Argon+, free or Google AI Pro and Ultra accounts, or Google Cloud. - Gemini API CLI (
gemini-api) is a stateless API CLI, not a coding harness, for agents, scripts and CI that need direct commands for Gemini models.
| Feature | Google Gemini CLI (gemini) | Google Antigravity |
|---|---|---|
| Surfaces | Terminal agent | App, CLI (agy), IDE, extensions, Python SDK |
| Sign-in | Google OAuth, API key, Vertex AI | Personal Google Account, Gemini Enterprise, Pay As You Go |
| Models | Not tuned for Gemini 4 | Gemini 4 Neon, Hydrogen, Orchestrator |
| Install | Node.js 20.0.0+ with npm, npx, Homebrew, MacPorts or Anaconda | App and IDE installers, agy install scripts, editor extensions, and pip, Poetry or uv for the SDK |
| Context | GEMINI.md, settings.json, .gemini/skills/ | GEMINI.md, AGENTS.md, .agents/skills/, mcp_config.json, hooks.json |
| Execution modes | default, auto_edit, plan, yolo | agy: default, accept-edits, auto, plan |
| Headless runs | gemini -p with --output-format json or stream-json | agy -p "prompt" |
See Google Gemini CLI: install, auth, commands and MCP setup and Google Antigravity: App, IDE, CLI, setup and agent workflows.
Antigravity App vs Antigravity CLI
Both surfaces share Projects, Orchestrator, Subagents, /run-workflow, /browser, skills, rules, MCP servers, hooks and plugins. App data lives in ~/.gemini/antigravity and CLI data in ~/.gemini/antigravity-cli.
| Area | Antigravity App | Antigravity CLI (agy) |
|---|---|---|
| Workspace | Software Engineering and Knowledge Work layouts (v2.30.0+), worktrees, scratch chats, SSH (v2.33.0+) | Terminal UI, Vim mode, keybindings.json |
| Tools | Review pane, built-in browser, PDF and .ipynb viewers, MCP Apps (SEP-1865), Automations | /resume, /rewind, /diff, /context, /codesearch, /tasks, /usage, /fork, Ctrl + G, Ctrl + R |
| Remote Control | Settings > Application (Enable Remote Control) | /remote-control, agy --remote-control, agy remote-control start |
Both surfaces include voice mode. In agy, /voice live or F6 talks live, while F5, /voice dictate or /record dictates outside business or enterprise accounts, with agy mic-serve over SSH. Remote Control syncs CLI output, approvals and questions live, while settings stay in the CLI.
Consumer Gemini desktop app vs Google Antigravity
The consumer Gemini desktop app assists with writing, screen context, Gmail, Drive, Docs and Calendar, while Google Antigravity is built for multi-agent coding.
- The app runs on Windows 10 or later on x64 and ARM64.
- On Mac, it requires Apple Silicon, macOS Sequoia 15.0 or later, 8 GB RAM and 200 MB disk space.
- Windows summons Gemini with
Alt + Space, while Mac opens mini chat withOption + Spaceand full chat withOption + Shift + Space. - On Mac, hold
fnfor Speak to Window, or launch Google Antigravity in one click.
Installation and system requirements
Google Gemini CLI
Gemini CLI needs Node.js 20.0.0 or later.
npx @google/gemini-cli # run without installing
npm install -g @google/gemini-cli # npm
brew install gemini-cli # Homebrew
sudo port install gemini-cli # MacPorts
conda create -y -n gemini_env -c conda-forge nodejs
conda activate gemini_env
npm install -g @google/gemini-cli # inside AnacondaGemini CLI publishes three release channels:
- Stable (
@latest) ships each week on Tuesdays at 20:00 UTC. - Preview (
@preview) ships each week on Tuesdays at 23:59 UTC. - Nightly (
@nightly) ships each day at 00:00 UTC.
Google Antigravity App, CLI, IDEs and SDK
- The Antigravity App needs macOS 13 (Ventura) or later, Windows 10 (64-bit) or Windows 11, or Linux with
glibc >= 2.28andglibcxx >= 3.4.25. - Google lists Ubuntu 20+, Debian 10+, Fedora 36+ and RHEL 8+ as meeting the Linux requirement.
- The standalone Antigravity IDE needs macOS 12 or later, Windows 10 (64-bit) or later, or the same Linux libraries.
- Googlebooks come with Antigravity pre-installed, and Google Play installs its updates.
- The
agyscript installs to~/.local/bin/agyon macOS, Linux and Googlebook. - On Windows,
agyinstalls toC:\Users\<username>\AppData\Local\agy\bin, from PowerShell or a CMD installer. - On first launch,
agyasks for a colour scheme, a rendering mode (Alt-Screen or Inline) and workspace trust. - The SDK installs
google-antigravitywithpip, Poetry oruvin a Python 3.10+ virtual environment.
# macOS, Linux or Googlebook
curl -fsSL https://antigravity.google/cli/install.sh | bash
agy --version# Windows PowerShell
irm https://antigravity.google/cli/install.ps1 | iexAntigravity extensions have these editor requirements:
| Editor or IDE | Requirement |
|---|---|
| VS Code | 1.90+ |
| JetBrains IDEs | IntelliJ-based IDEs 2026.2.1+ |
| Android Studio | A release with Bring Your Own Agent (ACP) support |
| Visual Studio | 2026 (17.8+) on Windows 10 or 11 |
| Zed | 0.140.0+ on macOS or Linux |
| Xcode | Xcode 27 beta 6+ on macOS |
| Eclipse | 2026-06+ (Public Preview) |
See Antigravity App vs Antigravity IDE: what's the difference and Google Antigravity CLI: commands, settings and permissions.
Accounts, models and quotas
Google says Gemini CLI is not tuned for the Gemini 4 series, such as Gemini 4 Argon. The README also asks you not to use Gemini CLI to benchmark Gemini models.
Gemini CLI sign-in and rate limits
- Sign in with Google uses OAuth with your Google Account.
- Paid Code Assist users must also set
GOOGLE_CLOUD_PROJECT. - A Gemini API key suits model selection and paid tiers, and you can upgrade for higher limits.
- Vertex AI suits enterprise use, with higher rate limits through a billing account.
Google Antigravity sign-in and models
- Free accounts and Google AI Plus get a weekly quota defaulting to Gemini 4 Hydrogen.
- Paid Pro and Ultra refresh every 5 hours up to a weekly cap, with AI Credit Overages set to
NeverorAlways. - Paid Pro, Ultra and Gemini Enterprise default to Gemini 4 Neon, while standard promotional Pro trials default to Gemini 4 Hydrogen.
- Orchestrator pairs Neon with Hydrogen in
Settings > Models > Orchestrator Settingsor/model, or Carbon High with Hydrogen High on Gemini Enterprise. - Google Workspace plans exclude Antigravity plans and higher limits, though Workspace users can use Pay As You Go or Gemini Enterprise.
- Bring-your-own-key and bring-your-own-endpoint options for extra rate limits are unsupported.
Paid Google AI Pro at $19.99/month and Google AI Ultra at $99.99/month for 5x limits or $199.99/month for 20x cover consumer Gemini apps and Antigravity. See Google Antigravity pricing: plans, quotas, models and credits and Google Antigravity orchestrator: parallel agents and workflows.
Context files, MCP servers and admin controls
Context files and moving your Gemini CLI setup
- Gemini CLI loads
GEMINI.mdcontext files from several locations in a hierarchy and concatenates them. - A
GEMINI.mdfile can import other files with the@file.mdsyntax. - The
context.fileNamesetting can load other file names, such asAGENTS.md. - First launch of
agydetects legacy Gemini CLI profiles with a checklist and moves tokens into the OS keyring. - Run
agy plugin import geminito convert legacy Gemini CLI extensions into native Antigravity plugins. GEMINI.mdandAGENTS.mdstay compatible, global skills stay in~/.gemini/skills/, and workspace skills move to.agents/skills/.- Antigravity App Software Engineering onboarding imports MCP servers, skills, rules and instructions from Gemini CLI.
MCP servers
Gemini CLI reads ~/.gemini/settings.json and adds servers via gemini mcp add. Antigravity reads ~/.gemini/config/mcp_config.json and .agents/mcp_config.json, renaming remote url or httpUrl keys to serverUrl. See Google Antigravity MCP servers: set up and manage tools.
Gemini CLI enterprise admin controls
Admins set these controls in the Gemini CLI Management Console, and users cannot override them locally:
- Strict Mode stops users entering
yolomode. - Turning off Extensions stops users using or installing extensions.
- Turning off MCP stops users using MCP servers.
- MCP Servers (preview) sets an explicit allowlist of MCP servers.
- Required MCP Servers (preview) adds servers that the user's local configuration does not filter.
- Unmanaged Capabilities currently turns off Agent Skills.
Execution modes and policies
- In Gemini CLI,
defaultasks for approval,auto_editapproves edit tools andplanis read-only. - Gemini CLI's
yolomode approves every action and can only be turned on from the command line. - Gemini CLI policy rules are
.tomlfiles in a policy folder such as~/.gemini/policies/. - In
agy,Shift + Tabcyclesdefault,accept-edits,autoandplan, or set--modeoragentMode. - From
v1.5.7,agystarts inautoon sandboxed personal accounts, while business, enterprise and unsandboxed hosts start indefault. - The Antigravity SDK sets
allow,denyandask_userrules inLocalAgentConfig.
Google's SDK example denies every tool, then allows view_file:
from google.antigravity import LocalAgentConfig
from google.antigravity.hooks.policy import allow, deny
config = LocalAgentConfig(policies=[deny("*"), allow("view_file")])Hooks in Gemini CLI vs Antigravity
- Gemini CLI reads hooks from
.gemini/settings.json,~/.gemini/settings.jsonor/etc/gemini-cli/settings.json, includingBeforeTool,AfterTool,BeforeAgentandAfterAgent. - Antigravity reads hooks from
.agents/hooks.jsonor~/.gemini/config/hooks.json, withSessionStart,PreToolUse,PostToolUse,PreInvocation,PostInvocationandStop. - Antigravity ignores hooks in
~/.gemini/antigravity-cli/settings.json, and/hookslists CLI hooks.
Interactive sessions and headless runs
Gemini CLI sessions and scripting
Run gemini for an interactive session. Add --include-directories ../lib,../docs to bring more folders into it. Use -p for a headless run:
gemini -p "Explain the architecture of this codebase" --output-format json
gemini -p "Run tests and deploy" --output-format stream-jsonjson gives structured output and stream-json emits newline-delimited JSON. In agy, -p, --print or --prompt is for direct scripting and CI. Consumer plans do not support wrapping agy inside third-party agents, and Antigravity logins cannot be used with tools like Claude Code, OpenClaw or OpenCode.
Antigravity Projects and commands
Projects scope folders, settings and permissions, with Git worktrees in the App and default-cli-project, --project or --new-project in agy.
| Command | What it does |
|---|---|
/goal | Runs the task until completion without pausing for input |
/grill-me | Has the agent interview you about requirements first |
/schedule | Runs an instruction once after a delay or on a cron schedule |
/browser | Hands UI testing, screenshots and web inspection to the browser subagent |
/plugin | Manages Marketplace plugins or creates custom plugin bundles |
Watch Antigravity and Gemini CLI sessions on a keypad or phone with Orbtile
Orbtile shows coding-agent sessions on the nine LCD keys of a Logitech MX Creative Keypad, over USB without Logi Options+. It can also show them on an iPhone (iOS 17+) or an Android phone (Android 8.0+) with Orbtile Mobile. It runs on a computer with macOS 14.0 Sonoma or later on Apple silicon (M1 or later), or a Windows 11 PC (x64).
- Each Antigravity desktop app conversation gets its own key, with its title and state.
- A conversation waiting on a question moves to the front, and its key says Question.
- Antigravity's waiting states use the shared terracotta alarm colour.
- Antigravity replies appear as live typewriter text.
- You can answer questions with numbered options on the keypad by picking options and holding Send.
- Up to four questions with two to four choices each work this way.
- Written answers, permissions and unsupported questions stay on the computer.
- Antigravity IDE and CLI sessions don't appear.
- Gemini CLI is not a built-in agent, but you can show its runs through Orbtile's local Adapter API.
- To turn it on, open Settings > Agents, choose Build your own, turn on Let your own tools show sessions, and allow your adapter.
- On a Mac, the reference shell adapter from the open-source
Orbtile/orbtile-adapterskit can wrap a headlessgemini -pcommand.
Orbtile also shows Claude Code, Codex, ZCode and Kimi Code sessions. See Antigravity keypad: MX Keypad shortcuts and Orbtile status pad and Show any script or agent on a keypad with the Orbtile Adapter API.
FAQ
Did Google Antigravity replace Gemini CLI?
For some users. On 18 June 2026, Antigravity CLI replaced Gemini CLI for unpaid tier and Google One users. Google still maintains Gemini CLI for organisations with Gemini Code Assist Standard or Enterprise, or Code Assist for GitHub, on Google Cloud. It also covers legacy paid API or Vertex keys.
How does the consumer Gemini desktop app differ from Google Antigravity?
The consumer Gemini desktop app assists with writing, screen context, Gmail, Drive, Docs and Calendar. Google Antigravity is a coding platform across the Antigravity App, CLI, IDE, extensions and Python SDK, and the macOS Gemini app opens it in one click.
Can I move my Gemini CLI setup to Google Antigravity?
Yes. Launching agy for the first time shows a migration checklist for legacy Gemini CLI profiles, and agy plugin import gemini converts extensions into plugins. Context files stay compatible, workspace skills move to .agents/skills, and MCP servers move to mcp_config.json.
How does Orbtile work with Google Antigravity and Gemini CLI?
Orbtile shows each Antigravity desktop app conversation on its own key, with live reply text. It also lets you answer supported numbered-option questions from the keypad. Antigravity CLI and IDE sessions don't appear. Gemini CLI runs can show through Orbtile's local Adapter API, which you turn on in Settings > Agents.