Antigravity CLI: Gemini CLI Alternative for Agent-first Development

The Next-Generation Gemini CLI that runs Antigravity agents in your terminal, with subagents, MCP, plugins, slash commands, and permissions.

Antigravity CLI is Google’s AI coding agent for the terminal. Run agy from a project directory to investigate a bug, implement a change, or run tests against your code.

You can review file edits as diffs, hand off parts of a task to subagents, and continue a local session from a browser with Remote Control.

Key features

  • Explore a repository, search for code patterns, and trace how files connect before making changes.
  • Edit code across files and inspect proposed writes as line-level diffs.
  • Run builds, tests, and shell commands under configurable permissions and terminal sandboxing.
  • Delegate investigations to subagents and monitor background work in the terminal.
  • Coordinate parallel workers with swarms for larger development tasks.
  • Resume previous conversations and inspect workspace or per-turn changes.
  • Extend the agent with skills, plugins, custom agents, hooks, and MCP servers.
  • Connect the CLI to an editor or request JSON output from a script.

Install Antigravity CLI

macOS and Linux

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

Windows PowerShell

irm https://antigravity.google/cli/install.ps1 | iex

Windows Command Prompt

curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd

After installation, open a terminal in the project you want to work on.

agy --version
agy

When the CLI opens, follow the prompts to configure the terminal, trust your workspace, and sign in with your Google account.

To update an existing installation, run agy update.

Your first session

Start by asking the agent to trace a part of the code you know. Give it a specific question and tell it what you want to see in the answer.

Explain how authentication works in this repository. Identify the route handlers, session logic, and related tests. Do not edit files yet.

Once you know which files are involved, ask the agent to make one change and run the relevant tests. To review edits as they come in, press Shift+Tab until the status bar shows Default mode. Open /diff afterward to check what changed.

Useful Antigravity CLI commands

See the Antigravity CLI Cheatsheet for more flags, shortcuts, and configuration options.

TaskCommand
Start a sessionagy
Choose a model/model
Review workspace changes/diff
Monitor subagents/agents
Inspect background commands/tasks
Resume a conversation/resume
Manage plugins and MCP/plugin, /mcp
Run a non-interactive promptagy -p "Your task"

Control file edits and shell commands

Set the execution mode according to which actions you want to approve.

Check the active mode in the status bar before you send a prompt. Use Shift+Tab to change it for the current session or set Agent Mode in /config to save your preference.

Use /permissions to allow, prompt for, or block specific actions. These rules take precedence over the execution mode. Set Tool Permission to strict in /config if you want edit approval even in Auto or accept-edits. The terminal sandbox limits file and network access for shell commands.

ModeBehavior
defaultShows each proposed file change for review and asks before running commands.
accept-editsApproves edits within the workspace and follows your permission rules for commands.
autoApproves workspace edits and runs commands in the terminal sandbox. Higher-risk actions receive additional review.
planInvestigates the task and prepares a plan before implementation.

Delegate work to subagents

If a login flow breaks, one subagent can trace the request handler while another checks the failing tests. Each reports its findings to the main agent. Open /agents to see their progress and approval requests.

Use /swarm to assign work through a coordinator. The workers share a message board you can follow with /swarm board.

The agent can use run_workflow to run a Python workflow with multiple stages. For example, it can ask subagents to review packages in parallel, then group their findings by which tests or modules need attention.

For a web UI bug, use /browser to start a subagent that can reproduce the issue in Chrome, check the console and network requests, and capture screenshots.

Use /tasks to check running commands and scheduled jobs. To pick up an earlier session, open /resume or run /resume <id> with a conversation ID or a unique prefix.

Models, sign-in, and usage limits

With a Google account, open /model to see which models your plan includes. Use /effort to adjust the reasoning level for models that support it.

If your model picker includes Orchestrator, you can have one model plan the work and another carry it out. Choose a planning model under Planner when the picker offers more than one.

Use /usage to see how much of your account’s allowance remains and when it resets.

Using your own Gemini API key

To use the Gemini API for model requests, set modelProvider to gemini in ~/.gemini/antigravity-cli/settings.json.

{
  "modelProvider": "gemini"
}

Set the GEMINI_API_KEY environment variable in the shell before running agy. Use /model to see the models available with the key, or pass --model when you launch the CLI.

Track requests made with your key in Google AI Studio. Sign in with a Google account to use Remote Control, hosted remote agents, or voice dictation.

Plugins, MCP servers, and editor integration

Open /plugin to install packages of skills, agents, rules, hooks, and MCP servers. Use /skills to see available skills and /mcp to check server connections. To bring over a supported Claude Code plugin, run agy plugin import claude.

Put repository-wide instructions in AGENTS.md or GEMINI.md. Use a skill for a repeatable task such as reviewing a database migration, or connect an MCP server to give the agent access to tools such as your issue tracker.

Run agy plugin validate before installing a plugin you received as a folder, ZIP file, ZIP download link, or GitHub repository.

To use Antigravity CLI from an editor that supports the Agent Client Protocol, configure the editor to launch agy acp. The editor passes project context to the agent and can display context window usage.

Remote Control, remote agents, and automation

Continue a local session in a browser

Use Remote Control to continue work on your development machine from a browser. Run /remote-control in a session or start one with agy --remote-control. From the browser, you can send prompts and approve actions while the CLI uses the repository and tools on the host machine.

To follow two conversations at once, choose Split Right or Split Down from a conversation’s Split menu. Use the conversation navigator to jump to an earlier prompt, or open the Overview Panel to find modified files and running tasks.

Use these commands to manage the Remote Control service on your machine.

agy remote-control start
agy remote-control status
agy remote-control stop

Run a session on a remote agent

To keep the agent working after your computer disconnects, sign in with a personal Google account on a plan that includes remote agents and start agy --remote-agent. Open /projects to attach the repositories and files the agent needs in its hosted workspace.

Remote agent sessions start in Default mode and ask before editing files. Press Shift+Tab to switch to accept-edits. Run agy --remote-agent -c to reopen your most recent remote conversation.

Run a prompt from a script

Use agy -p to run a prompt from a script or CI job. The command below asks for a repository summary and writes the result in JSON.

agy -p "Summarize this repository’s architecture and main entry points" --output-format json --print-timeout 10m

Print mode can also return plain text or streaming JSON. Pass --json-schema when the script expects a specific response structure. Use --input-format stream-json to send multiple prompts in the same conversation.

Migrate from Gemini CLI

Both CLIs run in the terminal and can read project instructions. Antigravity CLI also connects its sessions to the Antigravity browser and desktop UI. If you’re moving a Gemini CLI project over, start with the settings and extensions the CLI detects on first launch.

Read the official Gemini CLI migration guide.

To import Gemini CLI extensions manually, run this command.

agy plugin import gemini

Keep your GEMINI.md and AGENTS.md files. Move custom workspace skills from .gemini/skills/ to .agents/skills/ and configure MCP servers in mcp_config.json.

Alternatives and related resources

FAQs

Is Antigravity CLI free?
Yes. You can use it with an eligible personal Google account on the free plan, which has a weekly usage limit. If you connect with a Gemini API key, your requests follow Gemini API billing.

Do I need the Antigravity desktop app?
No. Install agy and start a session from your terminal.

Can I use Antigravity CLI over SSH?
Yes. Run agy on the SSH host. If the CLI prints a sign-in URL, open it in your browser, sign in, and paste the authorization code into the SSH terminal.

Last Updated: November 19, 2026

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest & top AI tools sent directly to your email.

Subscribe now to explore the latest & top AI tools and resources, all in one convenient newsletter. No spam, we promise!