Skip to main content

Antigravity CLI Commands: The Ultimate List

All Antigravity CLI commands explained: installation, agy flags, slash commands, MCP integration, and model selection. The reference for Google's AI terminal.

FHFinn Hillebrandt
7 min read
AI Programming
Antigravity CLI Commands: The Ultimate List
Links marked with * are affiliate links. If a purchase is made through such links, we receive a commission.

"Free? That can't be as good as Claude Code..." That was my first thought when I heard about the Gemini CLI back in 2025. Google had just released their AI terminal as open source.

On June 18, 2026, Google moved Gemini CLI requests from its consumer Pro, Ultra, and free tiers to the Antigravity CLI, a terminal tool for the Antigravity platform. The open-source Gemini CLI remains supported for enterprise access and paid API-key users. The Antigravity CLI uses the command agy and has its own features and plan limits.

Here are the Antigravity CLI shell commands, subcommands, startup flags, and slash commands. Checked on October 31, 2026, I checked everything with version 1.4.12, the latest release. Where Google's release notes explicitly identify a command's introduction, the table shows that version. For other commands, the introduction version is not documented.

TL;DRKey Takeaways
  • Type agy to start the CLI in the current directory. For scripts and quick questions, agy -p followed by your prompt runs it non-interactively
  • Google's current CLI reference lists 43 slash commands; /compact is also documented in release notes from version 1.3.5
  • A leading exclamation mark runs a terminal command inside the session, and the flag table covers every startup option
  • Accounts without Google AI Pro or Ultra receive a weekly baseline quota; usage also depends on the amount of agent work

1. From Gemini CLI to Antigravity CLI: What Happened?

The switch happened fast, but Google did announce it beforehand.

On June 18, 2026, Google stopped serving Gemini CLI requests from Google AI Pro and Ultra and free Gemini Code Assist for individuals. Google moved those consumer requests to Antigravity. Enterprise licenses and paid Gemini or Gemini Enterprise Agent Platform API keys retain Gemini CLI access.

This was more than a rename. Gemini CLI remains a separate open-source project. Google's public Antigravity CLI repository contains documentation, examples, and a demo; that alone does not establish an open-source license for the CLI implementation. Its plans and quotas are separate, and Google does not publish a fixed number of daily requests.

The good news:

The CLI includes subagents, background tasks, hooks, and a planning mode. Google lists Claude models for some plans. For how Antigravity CLI stacks up against other terminal coding agents, see our Claude Code alternatives comparison, or compare directly with the Claude Code command reference.

2. Installing the Antigravity CLI

According to Google's CLI quickstart, installation scripts are available for macOS, Linux, and Windows:

Installation
# macOS and 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

# Afterwards: verify the installation
agy --version

2.1 Authentication

The first time you run agy, your browser opens for login. Google lists four sign-in types: your personal Google account for Free, Pro, and Ultra, Gemini Enterprise via OAuth with a Google Cloud account, a Gemini API key, and Gemini Enterprise with an API key or Application Default Credentials (ADC). Google marks both Gemini Enterprise options as preview in its agent configuration.

Since version 1.4.11, signing in with Google Cloud lets you choose whether to bill through a Gemini subscription or Pay As You Go.

3. Basic Commands: The Daily Workflow

Getting started is simple: type agy and go. For scripts and quick questions, there's the non-interactive mode:

Starting the Antigravity CLI
# Interactive mode in the current directory
agy

# Quick question without a session
agy -p "Explain the architecture of this codebase"

# Start with a specific model
agy --model gemini-3.8-flash-medium

# List available model IDs
agy models

# Auto-approve all tool calls (careful!)
agy --dangerously-skip-permissions

The installed CLI has more shell subcommands for models, agents, MCP servers, plugins, Remote Control, and updates. This list follows agy --help and the subcommand help in version 1.4.12. The official CLI reference does not list these shell subcommands in a separate table.

agy
What it does
Starts an interactive session in the current directory.
Introduced
Not documented
agy --help
What it does
Shows local help with the available commands and flags.
Introduced
Not documented
agy --version
What it does
Prints the installed CLI version.
Introduced
Not documented
agy agent, agy agents
What it does
Lists available agents.
Introduced
v1.1.1
agy changelog
What it does
Shows release notes.
Introduced
Not documented
agy help <subcommand>
What it does
Shows help for a subcommand.
Introduced
Not documented
agy install
What it does
Configures PATH and shell settings.
Introduced
Not documented
agy mcp add
What it does
Adds an MCP server or updates its configuration.
Introduced
v1.1.16
agy mcp remove
What it does
Removes an MCP server from the configuration.
Introduced
v1.1.16
agy mcp list
What it does
Lists configured MCP servers.
Introduced
v1.1.16
agy mcp enable
What it does
Enables an MCP server.
Introduced
v1.1.16
agy mcp disable
What it does
Disables an MCP server.
Introduced
v1.1.16
agy mic-serve
What it does
Serves the local microphone to a CLI on another machine.
Introduced
v1.1.21
agy models
What it does
Lists available models.
Introduced
v1.0.5
agy plugin, agy plugins
What it does
Opens plugin management. The plural form is an alias.
Introduced
v1.3.2
agy plugin list
What it does
Lists installed plugins. The --json option was added in v1.3.4.
Introduced
v1.3.2
agy plugin import
What it does
Imports plugins from Gemini or Claude.
Introduced
Not documented
agy plugin install
What it does
Installs a plugin from a marketplace or path.
Introduced
v1.3.2
agy plugin uninstall
What it does
Removes a plugin.
Introduced
v1.3.2
agy plugin enable
What it does
Enables an installed plugin.
Introduced
v1.3.2
agy plugin disable
What it does
Disables an installed plugin.
Introduced
v1.3.2
agy plugin validate
What it does
Checks a plugin's manifest and files.
Introduced
Not documented
agy plugin link
What it does
Generates a marketplace link.
Introduced
Not documented
agy remote-control start
What it does
Registers and starts the Remote Control service.
Introduced
v1.2.0
agy remote-control status
What it does
Shows the Remote Control service status.
Introduced
v1.2.0
agy remote-control stop
What it does
Stops the service and removes its registration.
Introduced
v1.2.0
agy update
What it does
Updates the CLI.
Introduced
Not documented
Sources: Checked locally: agy --help
gradually.ai

In the default request-review mode, the CLI asks before write, bash, web, and MCP tool actions unless an allow rule covers them. You can choose among four permission modes in settings: request-review, proceed-in-sandbox, always-proceed, and strict.

4. All Slash Commands in Detail

Google's current CLI reference lists 43 slash commands.

The TUI subcommand /skills reload was added in version 1.2.4 and reloads discovered skills and slash commands without restarting the session. The checked print-mode invocation agy -p "/skills reload" does not work with version 1.4.12: the CLI reports that /skills takes no arguments.

/compact also appears in Google's release notes from version 1.3.5, but is missing from the current reference table. I mark that difference in the row.

The local agy -p "/help" command lists only commands that can be answered in print mode without an agent turn. It is not a complete TUI command list. The version column includes only releases that Google explicitly links to a command's introduction. “Not documented” means the first version cannot be reliably identified from the available release notes:

/add-dir <path>
What it does
Adds a directory to the active workspace.
Alias
None
Introduced
Not documented
/agents
What it does
Opens the Agent Manager for custom agents and background subagents.
Alias
None
Introduced
Not documented
/artifact
What it does
Opens the Artifact Review panel.
Alias
None
Introduced
Not documented
/boost <task>
What it does
Runs on-demand multi-agent deep reasoning loops.
Alias
None
Introduced
Not documented
/browser <task>
What it does
Delegates web browsing, UI checks, and in-browser debugging to the browser subagent.
Alias
None
Introduced
Not documented
/btw <query>
What it does
Asks a side question in the background without interrupting the main conversation.
Alias
None
Introduced
Not documented
/changelog
What it does
Opens the release-notes viewer or prints release changes in headless mode.
Alias
None
Introduced
Not documented
/clear
What it does
Clears the terminal and resets the active conversation context.
Alias
/new
Introduced
Not documented
/compact
What it does
Summarizes conversation history to free context. The command appears in release notes but not in the current command-reference table.
Alias
None
Introduced
v1.3.5
/codesearch <query>
What it does
Opens interactive code search for the workspace.
Alias
/cs, /search
Introduced
v1.1.3
/config
What it does
Opens the Settings Editor.
Alias
/settings
Introduced
Not documented
/context
What it does
Opens the context-usage visualization.
Alias
None
Introduced
Not documented
/copy [n|btw]
What it does
Copies the latest agent response, the n-th most recent response, or the latest answer to a side question.
Alias
None
Introduced
Not documented
/credits
What it does
Shows remaining G1 credits and purchase links.
Alias
None
Introduced
v1.0.3 (Source unavailable on November 2, 2026)https://github.com/google-antigravity/antigravity-cli/releases/tag/1.0.3
/diff
What it does
Opens the interactive viewer for changes, conversation turns, and commits.
Alias
None
Introduced
Not documented
/effort [level]
What it does
Shows or changes the active model's reasoning effort.
Alias
None
Introduced
v1.1.5
/exit
What it does
Closes the TUI session and returns to your shell.
Alias
/quit
Introduced
Not documented
/feedback
What it does
Opens the feedback form.
Alias
None
Introduced
Not documented
/fork
What it does
Clones the current conversation into a parallel session.
Alias
/branch
Introduced
Not documented
/goal <objective>
What it does
Keeps working autonomously until the goal is verified as complete.
Alias
None
Introduced
Not documented
/grill-me [task]
What it does
Interviews you one question at a time and recommends an answer before work begins.
Alias
None
Introduced
Not documented
/help
What it does
Opens the help panel with commands and keyboard shortcuts.
Alias
None
Introduced
Not documented
/hooks
What it does
Browses active pre-flight and post-format hooks.
Alias
None
Introduced
Not documented
/keybindings
What it does
Opens the keyboard shortcut editor.
Alias
None
Introduced
Not documented
/learn [instruction]
What it does
Creates a reviewable proposal for rules or skills from a session correction.
Alias
None
Introduced
Not documented
/logout
What it does
Disconnects your profile and removes authentication tokens from the secure keyring.
Alias
None
Introduced
Not documented
/mcp
What it does
Opens the MCP server manager.
Alias
None
Introduced
Not documented
/model
What it does
Opens the model selector. A model name as an argument is documented from v1.1.22.
Alias
None
Introduced
Not documented
/open <path>
What it does
Opens a path in your system's default editor.
Alias
None
Introduced
Not documented
/permissions
What it does
Opens the tool permissions manager.
Alias
None
Introduced
v1.0.5
/plan [task]
What it does
Explores the codebase, clarifies requirements, and drafts a reviewable work plan.
Alias
None
Introduced
v1.1.0
/plugin
What it does
Opens the plugin manager or runs install, uninstall, enable, disable, and list.
Alias
/plugins
Introduced
v1.3.2
/remote-control [on/off]
What it does
Turns Remote Control on or off for the active terminal session.
Alias
None
Introduced
v1.2.6
/rename <name>
What it does
Renames the current conversation thread.
Alias
None
Introduced
Not documented
/resume
What it does
Opens the conversation picker to load an earlier thread.
Alias
/switch, /conversation
Introduced
Not documented
/rewind
What it does
Rolls conversation history back to an earlier message.
Alias
/undo
Introduced
Not documented
/schedule <when> <task>
What it does
Sets a one-shot timer or recurring schedule with an instruction for the agent.
Alias
None
Introduced
Not documented
/skills
What it does
Browses local and global Agent Skills. Use /skills reload to reload discovered skills and slash commands without restarting the session.
Alias
None
Introduced
reload: v1.2.4; /skills: not documented
/statusline
What it does
Opens the status bar customization overlay.
Alias
None
Introduced
Not documented
/tasks
What it does
Opens the Task Manager for background shell execution.
Alias
None
Introduced
Not documented
/teamwork <task>
What it does
Launches a collaborative multi-agent team for long-horizon work. Requires a paid plan. The release notes for v1.1.17 still list the command as /teamwork-preview.
Alias
None
Introduced
Not documented
/title [on/off]
What it does
Turns terminal window title updates on or off.
Alias
None
Introduced
Not documented
/usage
What it does
Displays model quota usage.
Alias
/quota
Introduced
Not documented
/voice
What it does
Dictates a prompt using your microphone.
Alias
/record
Introduced
v1.1.21

5. Terminal Commands and Background Tasks

Put an exclamation mark at the start of the prompt to run a terminal command without leaving the session:

Using shell mode
# Run a terminal command directly
! git status

# Monitor background shell commands:
/tasks

# Display active agents:
/agents

Put ! at the start of the prompt to run a terminal command directly. /tasks opens the task manager for background shell execution. /agents shows agents and running subagents.

! <command>
What it does
Runs a terminal command directly.
Note
Put the exclamation mark at the start of the prompt.
?
What it does
Shows help and lists available slash commands.
Note
Type it in the TUI prompt.
Esc
What it does
Closes an open panel, stops a running stream, or clears an empty prompt.
Note
Global shortcut.
Ctrl+C
What it does
Cancels or exits the CLI. If the agent is working, the CLI asks for confirmation.
Note
Global shortcut.
Ctrl+D
What it does
Exits the session when the prompt box is empty.
Note
In a non-empty prompt it deletes the character after the cursor.
Ctrl+L
What it does
Clears and refreshes the terminal display.
Note
Global shortcut.
Shift+Enter, Ctrl+J
What it does
Inserts a newline without submitting the prompt.
Note
In the prompt box.
Shift+Tab
What it does
Cycles through available execution modes.
Note
Auto mode is not available on every system.
Ctrl+V
What it does
Pastes image files or clipboard content.
Note
In the prompt box. Since v1.4.9, image paste also works with your terminal's own paste shortcut and by dragging image files into the prompt.
Ctrl+O
What it does
Expands or collapses detailed tool output.
Note
In the prompt box.
Ctrl+R
What it does
Opens Artifact Review.
Note
In the prompt box.
Ctrl+G
What it does
Opens the default editor to compose your prompt.
Note
In the prompt box.
Alt+J
What it does
Jumps to the next subagent waiting for approval.
Note
When an approval is pending.
Ctrl+K
What it does
Immediately approves the pending subagent action shown in the status alert.
Note
When an approval is pending.
y, n
What it does
Approves or rejects a proposed action.
Note
During a confirmation prompt.

6. CLI Flags

This table includes the flags in Google's current CLI reference, plus --help and --version, which I checked with the installed 1.4.12 binary. Google does not list these two local options in its reference table. The version column only gives introduction versions stated in the release notes.

One thing matters for scripts: put the prompt directly after -p. In version 1.4.12, -p otherwise takes the next flag as the prompt and exits with an error. --print-timeout needs a time unit such as 60s or 15m.

accept-edits automatically approves workspace file edits but still asks before terminal commands.

auto automatically approves workspace edits and runs terminal commands in the sandbox by default. Outside the sandbox, the CLI evaluates risk. Safe, reversible commands run without a prompt; risky or irreversible actions require approval.

plan explores the codebase and shows you a plan first. It writes changes only after you approve the plan.

Auto is a preview, requires an available terminal sandbox, and Google lists it from v1.3.5 on macOS and Linux and v1.4.4 on Windows. Business and enterprise accounts cannot use it.

--mode
What it does
Sets the execution mode: accept-edits, auto, or plan.
Example
agy --mode plan
Introduced
Not documented (auto: v1.3.5 on macOS/Linux, v1.4.4 on Windows)
--model
What it does
Selects the model for this CLI session.
Example
agy --model gemini-3.8-flash-medium
Introduced
v1.0.5
--effort
What it does
Sets the reasoning effort when the model supports it.
Example
agy --effort high
Introduced
v1.1.5
--agent
What it does
Selects an agent for the session.
Example
agy --agent review
Introduced
v1.1.1
--add-dir
What it does
Adds a directory to the workspace. Can be repeated.
Example
agy --add-dir ../shared
Introduced
Not documented
-c, --continue
What it does
Continues the most recent conversation.
Example
agy --continue
Introduced
Not documented
--conversation
What it does
Resumes a conversation by ID.
Example
agy --conversation <id>
Introduced
Not documented
-i, --prompt-interactive
What it does
Starts with an initial prompt and continues in an interactive session.
Example
agy -i "Find the bug"
Introduced
Not documented
-p, --print, --prompt
What it does
Runs one prompt without an interactive session and prints the response.
Example
agy -p "Explain the architecture"
Introduced
Not documented
--output-format
What it does
Selects the print-mode output format: text, json, or stream-json. Since v1.4.11, the finished_reason field says why a run ended early.
Example
agy -p "Summarize this project" --output-format json
Introduced
v1.1.8
--input-format
What it does
Selects text or stream-json input. stream-json reads NDJSON messages from standard input and requires stream-json as the output format.
Example
agy --input-format stream-json --output-format stream-json
Introduced
v1.1.15
--json-schema
What it does
Enforces structured print-mode output using an inline schema or schema file.
Example
agy -p "Return JSON" --json-schema schema.json
Introduced
v1.1.8
--print-timeout
What it does
Limits print-mode runtime. The value needs a time unit such as 60s or 15m. 0 waits for the turn to complete.
Example
agy -p "Run the tests" --print-timeout 60s
Introduced
Not documented
--disable-slash-commands
What it does
Disables slash-command and skill expansion in print mode.
Example
agy -p "/plan" --disable-slash-commands
Introduced
v1.1.9
--sandbox
What it does
Runs terminal commands with OS sandbox restrictions. From v1.4.4, it has no effect if a sandbox is unavailable on the system.
Example
agy --sandbox
Introduced
Not documented
--dangerously-skip-permissions
What it does
Automatically approves all tool permission requests.
Example
agy --dangerously-skip-permissions
Introduced
Not documented
--remote-control
What it does
Creates a Remote Control connection for the session at startup.
Example
agy --remote-control
Introduced
v1.2.6
--project
What it does
Selects a project by ID or name. Project names became supported in v1.1.18.
Example
agy --project "Website"
Introduced
v1.0.12
--new-project
What it does
Creates a new project for the session.
Example
agy --new-project
Introduced
v1.0.12
--log-file
What it does
Overrides the CLI log file path.
Example
agy --log-file /tmp/agy.log
Introduced
Not documented
--help
What it does
Shows available commands and flags.
Example
agy --help
Introduced
Not documented
--version
What it does
Prints the installed version number.
Example
agy --version
Introduced
Not documented
Sources: Google CLI reference
gradually.ai

7. Model Selection: Gemini 4, Claude, and Removed Models

Use /model to choose a model for your task. In November 2026, Google updated the model lineup: Gemini 4 Neon (including extra reasoning via --model gemini-4-neon-xhigh), Gemini 4 Carbon, Gemini 4 Hydrogen, and Orchestrator replaced older options, while Claude 4.6 and GPT-OSS 120B were removed from the picker. Anthropic's newer Claude Fable 5.2 is not currently listed in Antigravity; the Claude options remain Sonnet 5.5 and Opus 5.5. agy models lists the model IDs your account can use right now, and Google's current model overview shows what each plan includes:

Gemini 4 Neon
Provider
Google
Availability per Google
Paid Google AI Pro (or trial on eligible premium devices), Ultra, and Enterprise; default model
Gemini 4 Carbon
Provider
Google
Availability per Google
Paid Google AI Pro (or trial on eligible premium devices), Ultra, and Enterprise
Gemini 4 Hydrogen
Provider
Google
Availability per Google
Free, Google AI Plus, Pro, Ultra, and Enterprise
Orchestrator
Provider
Google
Availability per Google
Paid Google AI Pro (or trial on eligible premium devices), Ultra, and Enterprise
Gemini 4 Argon
Provider
Google
Availability per Google
Enterprise (Gemini API shutdown scheduled for December 15, 2026)
Gemini 3.8 Flash, Gemini 3.7 Flash, Gemini 3.6 Flash, and Gemini 3.1 Pro
Provider
Google
Availability per Google
Enterprise
Claude Sonnet 5.5 and Claude Opus 5.5 (Thinking)
Provider
Anthropic
Availability per Google
Google AI Pro without a trial, Ultra, and Enterprise (Claude Fable 5.2 not listed)
Claude Sonnet 4.6 and Claude Opus 4.6
Provider
Anthropic
Availability per Google
Removed (listed through November 2026)
GPT-OSS 120B (Medium)
Provider
OpenAI (open weights)
Availability per Google
Removed (listed through November 2026)
Source: Google model overview
gradually.ai

8. MCP Integration

Model Context Protocol (MCP) works in the Antigravity CLI. According to Google's MCP documentation, global configuration applies to all projects and workspace configuration applies locally:

Configuring MCP servers
// Global: ~/.gemini/config/mcp_config.json
// Per project: .agents/mcp_config.json
{
  "mcpServers": {
    "myServer": {
      "serverUrl": "https://my-mcp-server.example.com"
    }
  }
}

Use /mcp to open the interactive manager. The shell subcommands agy mcp add, remove, list, enable, and disable manage the configuration from the terminal.

9. Subagents, Skills, and Hooks

Under the hood, the Antigravity CLI is a multi-agent system. Three building blocks are worth knowing:

Subagents work asynchronously and in parallel without blocking your main session. Keep track of them with /agents. Skills are markdown-based blueprints for teaching the CLI recurring workflows, a concept similar to Claude Code. And hooks are interceptors that run automatically before or after certain actions; use /hooks to see which ones are active.

10. Limits and Pricing

According to Google's plan overview, accounts without Google AI Pro or Ultra receive a weekly baseline quota. Pro and Ultra accounts receive higher quotas that refresh every five hours until the weekly limit is reached, and eligible users can use purchased AI credits for overages. The amount of work the agent performs also affects how many prompts fit in the quota. Use /usage to check consumption.

Frequently Asked Questions About Antigravity CLI Commands

Yes. The CLI can execute terminal commands as part of agent work. Permission and sandbox settings decide whether each command needs your confirmation.

Start an interactive session with agy. Use agy -p "your question" to run one prompt non-interactively; agy --model selects a model. In a session, /plan starts structured planning, /goal starts a goal run, /model selects a model, /mcp manages MCP servers, and /usage shows quota. See Google's CLI reference.

The Antigravity CLI (command: agy) is Google's terminal interface for its Antigravity agents and the successor to Gemini CLI for individual users.

Yes, with a limited quota. Google makes the CLI available to individual accounts. Accounts without Google AI Pro or Ultra receive a baseline quota that refreshes weekly; Pro and Ultra receive higher quotas that refresh every five hours until the weekly limit is reached. Google does not publish a fixed prompt count because usage also depends on the amount of agent work. Pro and Ultra users can also use purchased AI credits for overages. Check usage with /usage.

The Antigravity CLI. Since June 18, 2026, requests from Google AI Pro and Ultra, and from free Gemini Code Assist for individuals, are no longer served through Gemini CLI. Google directs these consumer users to Antigravity. Gemini Code Assist Standard or Enterprise licenses and paid Gemini or Gemini Enterprise Agent Platform API keys retain Gemini CLI access.

Yes. Google lists Claude models for some plans. The /model command shows which options your account has.

No, that is not established. The public GitHub repository contains only documentation, examples, and a demo, with no recognizable open-source license for the CLI itself. Gemini CLI is a separate open-source project.

Yes. The global configuration is ~/.gemini/config/mcp_config.json; the workspace configuration is .agents/mcp_config.json. For remote servers, the current configuration uses the serverUrl key. Use /mcp to open the MCP server manager.

Get productive with Claude Code faster

Get the free cheat sheet or get personal guidance for your first steps.

FH

Finn Hillebrandt

AI Expert & Blogger

Finn Hillebrandt is the founder of Gradually AI, an SEO and AI expert. He helps online entrepreneurs simplify and automate their processes and marketing with AI. Finn shares his knowledge here on the blog in 125+ articles as well as in his AI Newsletter.

Learn more about Finn and the team or follow Finn on LinkedIn.