Skip to content
Remote Control
CLI commands - Antigravity CLIcliAntigravity CLIGet StartedCLI commands - Antigravity CLI Antigravity CLI Get StartedAntigravity CLI

Review tables listing all TUI slash commands, default keyboard shortcuts, command-line flags, and JSON configuration parameters.

Type / inside the prompt box to open the typeahead command selection menu.

CommandCategoryAliasExecution Purpose
/add-dir <path>Utilities—Add a directory path to the active workspace.
/agentsTools & Tasks—Open the Agent Manager panel to switch custom agents and monitor background subagents.
/artifactTools & Tasks—Open the Artifact Review panel.
/boost <task>Reasoning—Run on-demand multi-agent deep reasoning loops.
/browser <task>Tools & Tasks—Delegate web browsing, UI verification, and in-browser debugging to the browser subagent.
/btw <query>Utilities—Ask a side question in the background without interrupting the main conversation.
/changelogUtilities—Open the interactive release notes viewer or print CLI changes in headless mode.
/clearUtilities/newClear the terminal and reset active conversation contexts.
/codesearch <query>Utilities/cs, /searchOpen the interactive Code Search panel to search code across the workspace.
/configConfigurations/settingsOpen the interactive Settings Editor overlay.
/contextUtilities—Open the context usage visualization panel.
/copy [n|btw]Utilities—Copy the last agent response, the n-th most recent response, or the latest /btw answer.
/creditsAccount—View remaining G1 credits and purchase links.
/diffUtilities—Open the interactive diff viewer to view changes, turns, and commits.
/effort [level]Configurations—Set or inspect the active model’s reasoning effort level (low through max, depending on the model).
/exitCore/quitClose the TUI session and restore your host shell.
/feedbackUtilities—Open the feedback submission panel.
/forkConversations/branchClone the current conversation thread into a new parallel session.
/goal <objective>Reasoning—Run autonomously until the goal is verified complete, without intermediate pauses.
/grill-me [task]Planning—Have the agent interview you one question at a time, with a recommended answer for each, before it starts work.
/helpUtilities—Open the help panel showing commands and shortcuts.
/hooksTools & Tasks—Browse active pre-flight/post-format script hooks.
/keybindingsConfigurations—Open the interactive Keyboard Shortcut Editor.
/learn [instruction]Tools & Tasks—Capture session corrections as persistent rules or skills through a reviewable proposal.
/logoutAccount—Disconnect your profile and purge authentication tokens from the secure keyring.
/mcpTools & Tasks—Open the Model Context Protocol (MCP) server manager.
/modelConfigurations—Choose your preferred reasoning model (persists across sessions).
/open <path>Utilities—Force the path to open inside your default system editor.
/permissionsConfigurations—Open the interactive tool permissions manager panel.
/plan [task]Planning—Explore the codebase, clarify requirements, and draft a reviewable Implementation Plan.
/pluginTools & Tasks/pluginsOpen the interactive Plugins Manager or run inline install, uninstall, enable, disable, and list commands.
/rename <name>Conversations—Rename the current session thread.
/remote-control [on/off]Utilities—Toggle Remote Control for the active terminal session.
/resumeConversations/switch, /conversationOpen the conversation picker overlay to select and load previous threads.
/rewindConversations/undoRoll back your conversation history to a previous message.
/schedule <when> <task>Tools & Tasks—Set a one-shot timer or recurring cron schedule that wakes the agent with an instruction.
/skillsTools & Tasks—Browse loaded local and global Agent Skills.
/statuslineConfigurations—Open the Status Bar customization overlay.
/tasksTools & Tasks—Open the Task Manager panel to monitor background shell execution logs.
/teamwork-preview <task>Reasoning/teamworkLaunch collaborative multi-agent teams for long-horizon projects (paid plans).
/title [on/off]Configurations—Toggle or set terminal window title updates.
/usageUtilities/quotaDisplay model quota usage.
/voiceUtilities/recordDictate a prompt using your microphone.

The following tables list the keyboard shortcut commands mapping global, prompt, navigation, and approval operations.

These hotkeys are always active regardless of which panel, overlay, or prompt is currently focused.

KeyTUI CommandAction Behavior
Esccli.escapeCloses active panels, halts active streams, or clears empty prompts.
Ctrl+Ccli.exitTerminates the CLI session (prompts for confirmation if agent is working).
Ctrl+Dcli.exitExits the CLI session (only when the prompt box is empty).
Ctrl+Lcli.clear_screenRefreshes and clears the visual terminal buffer.

These keys are active when writing instructions inside the prompt box.

KeyTUI CommandAction Behavior
Entercli.enterSubmits your prompt or active menu selection to the agent.
Shift+Enter / Ctrl+Jprompt.insert_newlineInserts a clean newline without submitting.
Shift+Tabcli.cycle_modeCycles between execution modes (default > accept-edits > auto > plan; auto only where available).
Ctrl+Vedit.pastePastes graphic media files or clipboard blocks into the prompt.
Ctrl+Oview.toggle_trajectoryExpands or collapses detailed tool reasoning outputs.
Ctrl+Rview.review_artifactOpens the Artifact Review panel.
Ctrl+Gedit.open_editorLaunches your default $EDITOR shell to compose your prompt.
Alt+Jsubagent.jump_to_waitingInstantly switches focus to the next subagent awaiting confirmation.
Ctrl+Ksubagent.approve_fastInstantly approves the pending subagent action listed in the status alert.
Ctrl+A—Moves the prompt insertion cursor to the beginning of the line.
Ctrl+E—Moves the prompt insertion cursor to the end of the line.
Ctrl+_ / Ctrl+Shift+-edit.undoReverts the last edit.
Ctrl+Shift+Zedit.redoRedoes the last undone text operation.
Ctrl+D—Forward delete (only when the prompt box is non-empty).
F5voice.start_dictationStarts or stops voice dictation.

These keys are active inside select panels, menus, and scrollable text boxes.

KeyTUI CommandAction Behavior
↑ / ↓navigation.up / navigation.downScrolls highlighted selections up or down by one item.
PgUp / Shift+↑navigation.page_up / navigation.half_page_upScrolls the active text viewport up by one page block.
PgDn / Shift+↓navigation.page_down / navigation.half_page_downScrolls the active text viewport down by one page block.
← / →navigation.left / navigation.rightSwaps pages inside multipage structures (like the Session Picker).
Tabnavigation.tabConfirms the highlighted slash-command autofill option.

These keys are active during confirmation prompts.

KeyTUI CommandAction Behavior
yconfirm.yesAuthorizes the proposed tool, command, or active artifact.
nconfirm.noRejects the proposed tool, command, or active artifact.
A—(Inside Review panel) Approves all generated artifacts in one action (built-in shortcut).

Pass startup flags when launching agy to configure the session or run non-interactively:

FlagDefaultDescription
--mode""Set the agent execution mode for this session: accept-edits, auto (Preview; v1.3.5+ on macOS and Linux, v1.4.4+ on Windows; requires the terminal sandbox; not available for business or enterprise accounts), or plan.
--model—Select the model for the current CLI session (refer to agy models).
--effort—Set the reasoning effort for the current CLI session (low through max, depending on the model).
--agent—Select the agent for the current CLI session (refer to agy agents).
--add-dir[]Add a directory to the workspace (repeatable).
-c, --continuefalseContinue the most recent conversation.
--conversation—Resume a previous conversation by ID.
-i, --prompt-interactive—Run an initial prompt interactively and continue the session.
-p, --print, --prompt—Run a single prompt non-interactively in headless mode and print the response.
--output-formattextOutput format for print mode (text, json, stream-json).
--input-formattextInput format for print mode (text, stream-json).
--json-schema—JSON schema string or path to a schema file to enforce structured output in print mode.
--print-timeout0sOptional time limit for print mode (0 waits until the turn completes).
--disable-slash-commandsfalseDisable slash command and skill expansion in print mode.
--sandboxfalseRun in a terminal sandbox with OS containment restrictions enabled (in v1.4.4+, no effect if the sandbox isn’t available on your machine).
--dangerously-skip-permissionsfalseAuto-approve all tool permission requests without prompting.
--remote-controlfalseCreate a Remote Control connection for the CLI session on startup.
--project—Project ID or project name for the current CLI session.
--new-projectfalseCreate a new project for this session.
--log-file—Override the CLI log file path.

This section lists every key you can set in ~/.gemini/antigravity-cli/settings.json, with its type and default. A key you leave out uses its default. For how the CLI reads and saves the file, and for the keys that take an object, refer to CLI settings.

{
    "agentMode": "auto",
    "colorScheme": "tokyo night",
    "altScreenMode": "always",
    "toolPermission": "proceed-in-sandbox",
    "notifications": true,
    "enableTerminalSandbox": true
}

To get autocomplete and validation in editors such as VS Code, add "$schema": "https://antigravity.google/schemas/v1/settings.json" at the top of the file. For details, refer to Editor autocomplete and validation.

Option Key NameValue TypeSystem DefaultParameter Characteristics & Options
agentModestring"" (default mode)Default startup execution mode: "" (standard default mode), "accept-edits" (auto-approve workspace file edits), "auto" (Preview; v1.3.5+ on macOS and Linux, v1.4.4+ on Windows; requires the terminal sandbox; auto-approves edits, runs commands in the terminal sandbox by default, and automatically checks any command that needs to run outside the sandbox so safe, reversible commands run without prompting while irreversible actions still prompt; not available for business or enterprise accounts), or "plan" (research and outline steps before writing code). Can be overridden per session with --mode.
colorSchemestring"terminal"Color theme: "light", "solarized light", "colorblind-friendly light", "dark", "solarized dark", "colorblind-friendly dark", "tokyo night", or "terminal" (inherits native shell colors).
altScreenModestring"default"Screen buffer usage: "default" (renders the conversation inline and opens full-screen views in the alternate screen), "always" (runs the whole TUI in the alternate screen), or "never" (never uses the alternate screen; available only in settings.json).
toolPermissionstring"request-review"Global safety presets: "request-review" (prompts for write, bash, web, and MCP tools unless an allow rule covers them), "proceed-in-sandbox" (runs terminal commands without prompting when the sandbox is on and the command runs inside it; in v1.4.4+, behaves like "request-review" if the sandbox isn’t available), "always-proceed" (runs commands, web requests, and MCP tools without prompting unless an ask or deny rule matches), or "strict" (prompts before every tool action, including file reads, even if an allow rule matches). Deny rules apply in every mode.
artifactReviewPolicystring"asks-for-review"Whether the agent waits for your review when it asks for feedback on an artifact, such as an implementation plan: "asks-for-review" (always waits), "agent-decides" (currently the same as "asks-for-review"), or "always-proceed" (never waits). Doesn’t affect file edits.
notificationsbooleanfalseRings the terminal bell and shows a desktop notification when the agent needs your approval or an answer, or finishes its turn.
showTipsbooleantrueDisplays helpful usage tips while the agent is generating responses.
showFeedbackSurveybooleantrueDisplays periodic quality feedback surveys upon active task completions.
editorstring"auto"External editor for opening artifacts and files and for composing prompts (Ctrl+G): "auto" (uses $EDITOR, then falls back to vim, or to edit and notepad on Windows), "vim", "emacs", or any other editor command.
editorModestring"default"Prompt editing model: "default" (flat text editing) or "vim" (modal editing). Distinct from editor, which selects an external program. Refer to Vim editor mode.
vimInsertFirstbooleanfalseStarts Vim editing in Insert mode and makes a bare Enter submit. Requires editorMode set to "vim".
allowNonWorkspaceAccessbooleanfalseLets the agent read and edit files outside your workspace folders, subject to toolPermission, agentMode, and your permission rules.
enableTerminalSandboxbooleanfalseRestricts all local execution commands launched by agents to OS containment rings (in v1.4.4+, no effect if the sandbox isn’t available on your machine).
useG1CreditsbooleanfalseUses your AI credits for model requests after your plan’s quota runs out. Not available for business accounts.
verbositystring"medium"Visual verbosity level: "high" (renders every tool call, command, and thought in full), "medium" (groups related tool calls and thoughts into summaries while keeping commands and responses visible), or "low" (renders only responses and collapses tool activity into a token usage summary).
runningLightSpeedstring"medium"Visual running light progress animation speed: "fast", "medium", "slow", or "off".
copyOnSelectbooleantrueIn alt-screen mode, copies text to the clipboard when you release a mouse selection. When false, the artifact viewer uses your terminal’s own text selection.
hideActiveItemsbooleanfalseHides the list of active subagents and background tasks below the prompt box (Show Active Tasks in /config).
pickerGroupingstring"none"How the /resume picker lists conversations: "none" (one list, most recent first) or "grouped" (grouped by workspace).
queuedMessagesstring"queue"What happens to a message you send while the agent is working: "queue" (held until the current turn ends) or "send-immediately" (interrupts the agent and sends it right away).
clearScrollbackOnResizebooleantrueIn inline rendering, clears your terminal’s scrollback when the CLI redraws the conversation, such as after you resize the window.
disableSlashCommandsbooleanfalseIn headless mode (-p), sends prompts that start with / as typed instead of running slash commands or skills. Same as --disable-slash-commands.
historySizeinteger2000Prompt history entries kept on disk, trimmed when the CLI exits: -1 keeps every entry, and 0 clears the history.
modelstring""The model you chose with /model, saved by its label.
modelProviderstring"""gemini" sends model requests directly to the Gemini API with the key in GEMINI_API_KEY (Using a Gemini API key).
trustedWorkspacesstring[][]Folders you chose to trust when the CLI asked. The CLI adds entries for you.
useTerminalCursorbooleanfalseUses your terminal’s own cursor shape instead of a block cursor.
permissionsobject—Allow, ask, and deny rules for the agent’s tools. Refer to permissions.
statusLineobject—Custom status line script. Refer to statusLine and title.
titleobject—Custom terminal title script. Refer to statusLine and title.
sandboxProxyobject—HTTP proxy for sandboxed terminal commands. Refer to sandboxProxy.
customModelsConfigobject—Extra models for the Gemini API key setup. Refer to customModelsConfig and gcp.
gcpobject—Saved by the Use a Google Cloud project sign-in. Refer to customModelsConfig and gcp.

Enable Telemetry in /config has no settings.json key: the CLI saves that choice with your account.

Learn how to safely deploy permission policies, sandboxes, and customize plugins: