Antigravity CLI Cheatsheet: Commands, Setup, Shortcuts, and Workflows

Find Antigravity CLI commands, default shortcuts, settings paths, permission presets, sandbox notes, and Gemini CLI migration steps in one place.

Antigravity CLI is Google’s new CLI AI coding agent for working with Google’s new Antigravity agent.

It enables you to start, monitor, and control AI coding agents from the command line while using the same core agent harness as Antigravity 2.0.

Learn More About Antigravity CLI

This cheatsheet is for moments when you already know what you want to do and need the exact command.

Start with the quick reference table, then use the sections below for setup, slash commands, shortcuts, permissions, sandbox settings, subagents, MCP, and Gemini CLI migration.

Last updated: June 16, 2026

Antigravity CLI Cheatsheet

Antigravity CLI quick reference

TaskCommand
Start CLIagy
Command menu/
Help?, /usage
Settings/config, /settings
Permissions/permissions
File diff/diff
Resume session/resume
Rewind session/rewind, /undo
Fork session/fork, /branch
Add folder/add-dir <path>
Open file/open <path>
Run shell command!<command>
Subagents/agents
Task logs/tasks
Skills/skills
MCP servers/mcp
Hooks/hooks
Log out/logout
Exit/exit

Install Antigravity CLI

Antigravity CLI installs the agy binary. It runs on macOS, Linux, and Windows.

macOS and Linux

The native installer downloads the executable to ~/.local/bin/agy.

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

Windows PowerShell

The Windows installer registers agy in the local user directory at C:\Users\<Username>\AppData\Local\agy\bin.

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

Install flags

FlagUse
--skip-aliasesKeep existing agy or antigravity aliases.
--skip-pathDo not edit shell profile PATH.

Authentication and SSH login

When you run agy locally, the CLI checks your operating system keyring first. On macOS it uses Apple Keychain. On Linux it uses Secret Service or dbus. On Windows it uses Windows Credential Manager. If a valid token exists, Antigravity CLI signs in silently.

If no saved session exists, the CLI opens your default browser. Sign in with your approved account, then return to the terminal.

SSH login uses a manual browser loop:

  1. Run agy in the remote terminal.
  2. Copy the authorization URL printed by the CLI.
  3. Open the URL in a local browser.
  4. Sign in and copy the authorization code.
  5. Paste the code back into the remote terminal.

Use /logout when you need to disconnect the current account and purge saved authentication profiles.

Core slash commands

Slash commands are the fastest way to control Antigravity CLI. Type / in the prompt box to open the command menu.

Workspace and files

CommandPurpose
/add-dir <path>Add a directory path to the active workspace.
/diffShow unified diffs for modified workspace files.
/open <path>Open a path in the default system editor.
/clearClear the terminal and reset active conversation context.

Conversation control

CommandPurpose
/resume (/switch, /conversation)Load previous threads.
/rewind (/undo)Roll back conversation history.
/fork (/branch)Create a parallel session.
/rename <name>Rename the thread.
/exitClose the CLI.

Settings and agent behavior

CommandPurpose
/config or /settingsOpen the interactive settings editor.
/permissionsSwitch global permission presets.
/modelChoose the preferred reasoning model for future sessions.
/planningEnable multi-turn plan generation mode for complex engineering tasks.
/fastEnable fast mode for quick actions.
/keybindingsOpen the keyboard shortcut editor.
/statuslineCustomize the status bar.
/title [on/off]Toggle or set terminal window title updates.

Tools, subagents, and accounts

CommandPurpose
/agentsOpen the Agent Manager Panel for background subagents.
/tasksOpen the Task Manager Panel for background shell logs.
/skillsBrowse loaded local and global Agent Skills.
/mcpOpen the MCP server manager.
/hooksBrowse active pre-flight and post-format hooks.
/btw <query>Ask a side question in the background without interrupting the main conversation.
/usageOpen the offline developer help manual.
/logoutDisconnect the account and remove saved tokens.

Keyboard shortcuts

Keybindings can change if you customize them. Use /keybindings to inspect or edit your current setup.

ShortcutAction
EnterSubmit the prompt or selected menu item.
Shift+Enter or Ctrl+JInsert a newline without submitting.
Alt+EnterInsert a newline in prompt editing.
EscClose panels, stop active streams, or clear an empty prompt.
Ctrl+CCancel or exit behavior, with confirmation when work is active.
Ctrl+DExit the TUI session.
Ctrl+LClear the visual terminal buffer.
Ctrl+VPaste text, clipboard blocks, or terminal media.
Ctrl+GOpen the default shell editor for prompt composition.
Ctrl+OExpand or collapse detailed tool reasoning output.
Ctrl+ROpen the Artifact Review Panel.
Alt+JSwitch focus to the next subagent awaiting confirmation.
Ctrl+KApprove a pending subagent action from the fast path alert.
Ctrl+AMove the prompt cursor to the start of the line.
Ctrl+EMove the prompt cursor to the end of the line.
Ctrl+ZUndo the last text edit.
Ctrl+Shift+ZRedo the last undone text edit.
Up and DownMove through menu selections.
PgUp or Shift+UpScroll the active viewport up by one page.
PgDn or Shift+DownScroll the active viewport down by one page.
TabConfirm the highlighted slash-command autofill option.
yApprove a proposed tool, command, or artifact.
nReject a proposed tool, command, or artifact.
AApprove all generated artifacts inside the Review Panel.

Settings, permissions, and sandbox

Antigravity CLI stores its main settings in:

~/.gemini/antigravity-cli/settings.json

It stores custom keybindings in:

~/.gemini/antigravity-cli/keybindings.json

You can edit settings through /config or /settings. Some settings can also be overridden at launch with flags such as --sandbox or --dangerously-skip-permissions. A launch flag applies to the current session until restart, even if you edit the persistent setting on disk.

Settings worth knowing

SettingDefault and use
colorScheme"terminal"; color theme.
altScreenMode"default"; screen buffer.
toolPermission"request-review"; tool approvals.
artifactReviewPolicy"asks-for-review"; code review flow.
notificationsfalse; completion alerts.
showTipstrue; prompt tips.
showFeedbackSurveytrue; feedback prompts.
editor"auto"; external editor.
allowNonWorkspaceAccessfalse; outside-root file access.
enableTerminalSandboxfalse; command sandboxing.
enableTelemetrytrue; metrics and crash logs.
verbosity"high"; output detail.
runningLightSpeed"medium"; progress animation.

Permission presets

PresetUse
request-reviewDefault for most coding work.
proceed-in-sandboxAuto-proceed inside sandbox.
always-proceedNo prompts; controlled workspaces only.
strictPrompt for all non-read tools.

Terminal sandbox

Set enableTerminalSandbox to true if you want local agent commands to run inside OS containment boundaries.

{
  "enableTerminalSandbox": true
}

When sandbox mode is enabled, Antigravity CLI can still ask whether a trusted command should run without sandbox restrictions. When sandbox mode is disabled, a confirmation prompt can offer to run a specific risky command inside the sandbox.

For regular project work, start with request-review, keep allowNonWorkspaceAccess set to false, and inspect /diff before accepting code changes.

Subagents, tasks, skills, plugins, and MCP

Antigravity CLI can run background subagents. The main agent can delegate work such as documentation lookup, builds, tests, and validation while the primary conversation stays active.

Use /agents to open the Agent Manager Panel. It shows active and completed subagents, their status, and the step each subagent is running. Select a subagent to inspect its full conversation, tool logs, and pending approvals.

Use /tasks when you need shell execution logs. Use /skills to browse loaded Agent Skills. Use /mcp to manage Model Context Protocol servers. Use /hooks to inspect active pre-flight and post-format hooks.

Plugins are staged under:

~/.gemini/antigravity-cli/plugins/<plugin_name>/

A plugin can include a required plugin.json file plus optional mcp_config.json, hooks.json, skills/, agents/, and rules/ directories.

Gemini CLI migration

Antigravity CLI supports migration from Gemini CLI. On first launch, agy can detect legacy Gemini CLI profiles and prompt you to choose which assets to migrate.

The migration flow can import extensions, global configuration, active session tokens, visual settings, workspace rules, skills, and MCP server definitions. Some customized terminal themes or experimental visual overlays may not have full parity.

Convert Gemini extensions to Antigravity plugins

Run:

agy plugin import gemini

The importer searches legacy local directories, reads extension manifests, and converts compatible files into Antigravity plugin layout blocks.

Context files

Antigravity CLI continues to read workspace context from:

GEMINI.md
AGENTS.md

It also consults global developer context at:

~/.gemini/GEMINI.md

Skills path changes

ScopePath change
Global skills~/.gemini/skills/ to ~/.gemini/antigravity-cli/skills/
Workspace skills.gemini/skills/ to .agents/skills/

If a project has custom workspace skills in .gemini/skills/, move or rename that folder to .agents/skills/ so Antigravity can recognize those skills as active slash commands.

MCP config changes

Gemini CLI declared MCP servers inside:

~/.gemini/settings.json

Antigravity CLI uses standalone MCP profiles:

~/.gemini/config/mcp_config.json
.agents/mcp_config.json

For remote websocket or SSE server definitions, update legacy url or httpUrl fields to serverUrl.

{
  "mcpServers": {
    "remote-indexer": {
      "serverUrl": "https://mcp.internal.enterprise.com/sse",
      "env": {
        "AUTH_TOKEN": "secure_alpha_token"
      }
    }
  }
}

Example Workflows

Start work in a repository

cd path/to/project
agy

In the prompt, describe the task and scope. Keep the first request narrow. For example:

Review this repository and identify the files involved in the login flow. Do not edit files yet.

Add another folder to the workspace

/add-dir ../shared-package

Use this when the agent needs access to a sibling package, shared library, or local dependency.

Run a terminal command

!npm test

Use ! for commands you would normally run yourself. Keep review prompts enabled when a command can modify files, install dependencies, or reach the network.

Review changes before accepting them

/diff

Read the diff before accepting a change. If the change is too broad, ask the agent to narrow the edit or explain the affected files.

Rewind a bad turn

/rewind

Use /rewind or /undo when the conversation goes in the wrong direction. This rolls back conversation history to a previous message.

Fork an approach

/fork

Use /fork when you want to explore a different solution without losing the current thread.

Resume earlier work

/resume

Use /resume to reopen previous conversation logs. Antigravity CLI also prints the command needed to resume a specific session when you close the CLI.

Use subagents without losing focus

/agents

Open /agents when background work needs your approval or when you want to inspect what a subagent did. Use Ctrl+K for fast approval when a pending subagent action appears above the prompt.

Keep output quieter

/config

Set verbosity to low if many tool calls make the terminal hard to scan.

Troubleshooting tips

ProblemFix
agy not foundCheck PATH and install directory.
SSH sign-in stallsOpen the printed URL locally and paste the code.
Agent cannot see a folderUse /add-dir <path> or start in project root.
Output is noisySet verbosity to low.
Command needs tighter safetyUse strict or enable sandboxing.
Workspace skill stopped workingMove .gemini/skills/ to .agents/skills/.
MCP config failsUse mcp_config.json and serverUrl.
Need to inspect codeUse /diff, then Ctrl+R.
Reset custom shortcutsDelete keybindings.json.

Related Resources

FAQs

What command starts Antigravity CLI?

Run agy from your terminal.

What is the fastest way to see available commands?

Type / in the prompt box to open the slash command menu. Type ? for help or /usage for the offline developer manual.

Where does Antigravity CLI store settings?

It stores main settings at ~/.gemini/antigravity-cli/settings.json and custom keybindings at ~/.gemini/antigravity-cli/keybindings.json.

How do I review code changes?

Use /diff to inspect modified files. Use Ctrl+R to open the Artifact Review Panel.

How do I undo a bad conversation turn?

Use /rewind or /undo to roll conversation history back to an earlier message.

How do I migrate from Gemini CLI?

Start agy in an environment that contains legacy Gemini CLI profiles and follow the first-launch checklist. To convert Gemini extensions manually, run agy plugin import gemini.

Does Antigravity CLI support MCP?

Yes. Use /mcp to open the MCP server manager. Global MCP servers use ~/.gemini/config/mcp_config.json, and workspace servers use .agents/mcp_config.json.

Should I use always-proceed?

Use always-proceed only in controlled workspaces where you are comfortable with the agent acting without prompts. For most coding work, request-review is safer.

How do I make Antigravity CLI quieter?

Open /config and set verbosity to low.

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!