Guide

Google Gemini CLI vs Google Antigravity: what's the difference

Updated

Also in: Deutsch, Français, Español, Português

On this page

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.

Orbtile showing live coding agent sessions on a Mac panel, a Logitech MX Creative Keypad and an iPhone

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.
FeatureGoogle Gemini CLI (gemini)Google Antigravity
SurfacesTerminal agentApp, CLI (agy), IDE, extensions, Python SDK
Sign-inGoogle OAuth, API key, Vertex AIPersonal Google Account, Gemini Enterprise, Pay As You Go
ModelsNot tuned for Gemini 4Gemini 4 Neon, Hydrogen, Orchestrator
InstallNode.js 20.0.0+ with npm, npx, Homebrew, MacPorts or AnacondaApp and IDE installers, agy install scripts, editor extensions, and pip, Poetry or uv for the SDK
ContextGEMINI.md, settings.json, .gemini/skills/GEMINI.md, AGENTS.md, .agents/skills/, mcp_config.json, hooks.json
Execution modesdefault, auto_edit, plan, yoloagy: default, accept-edits, auto, plan
Headless runsgemini -p with --output-format json or stream-jsonagy -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.

AreaAntigravity AppAntigravity CLI (agy)
WorkspaceSoftware Engineering and Knowledge Work layouts (v2.30.0+), worktrees, scratch chats, SSH (v2.33.0+)Terminal UI, Vim mode, keybindings.json
ToolsReview 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 ControlSettings > 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 with Option + Space and full chat with Option + Shift + Space.
  • On Mac, hold fn for 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 Anaconda

Gemini 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.28 and glibcxx >= 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 agy script installs to ~/.local/bin/agy on macOS, Linux and Googlebook.
  • On Windows, agy installs to C:\Users\<username>\AppData\Local\agy\bin, from PowerShell or a CMD installer.
  • On first launch, agy asks for a colour scheme, a rendering mode (Alt-Screen or Inline) and workspace trust.
  • The SDK installs google-antigravity with pip, Poetry or uv in 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 | iex

Antigravity extensions have these editor requirements:

Editor or IDERequirement
VS Code1.90+
JetBrains IDEsIntelliJ-based IDEs 2026.2.1+
Android StudioA release with Bring Your Own Agent (ACP) support
Visual Studio2026 (17.8+) on Windows 10 or 11
Zed0.140.0+ on macOS or Linux
XcodeXcode 27 beta 6+ on macOS
Eclipse2026-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 Never or Always.
  • 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 Settings or /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.md context files from several locations in a hierarchy and concatenates them.
  • A GEMINI.md file can import other files with the @file.md syntax.
  • The context.fileName setting can load other file names, such as AGENTS.md.
  • First launch of agy detects legacy Gemini CLI profiles with a checklist and moves tokens into the OS keyring.
  • Run agy plugin import gemini to convert legacy Gemini CLI extensions into native Antigravity plugins.
  • GEMINI.md and AGENTS.md stay 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 yolo mode.
  • 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, default asks for approval, auto_edit approves edit tools and plan is read-only.
  • Gemini CLI's yolo mode approves every action and can only be turned on from the command line.
  • Gemini CLI policy rules are .toml files in a policy folder such as ~/.gemini/policies/.
  • In agy, Shift + Tab cycles default, accept-edits, auto and plan, or set --mode or agentMode.
  • From v1.5.7, agy starts in auto on sandboxed personal accounts, while business, enterprise and unsandboxed hosts start in default.
  • The Antigravity SDK sets allow, deny and ask_user rules in LocalAgentConfig.

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.json or /etc/gemini-cli/settings.json, including BeforeTool, AfterTool, BeforeAgent and AfterAgent.
  • Antigravity reads hooks from .agents/hooks.json or ~/.gemini/config/hooks.json, with SessionStart, PreToolUse, PostToolUse, PreInvocation, PostInvocation and Stop.
  • Antigravity ignores hooks in ~/.gemini/antigravity-cli/settings.json, and /hooks lists 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-json

json 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.

CommandWhat it does
/goalRuns the task until completion without pausing for input
/grill-meHas the agent interview you about requirements first
/scheduleRuns an instruction once after a delay or on a cron schedule
/browserHands UI testing, screenshots and web inspection to the browser subagent
/pluginManages 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-adapters kit can wrap a headless gemini -p command.

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.