Skip to content
Remote Control
CLI settings and tips - Antigravity CLIcliAntigravity CLIGet StartedCLI settings and tips - Antigravity CLI Antigravity CLI Get StartedAntigravity CLI

Antigravity CLI provides a flexible configuration system to customize workspace behavior, safety restrictions, editor preferences, visual style, and performance:

  • Configuration file: Stored in a plain JSON file at ~/.gemini/antigravity-cli/settings.json.
  • Settings panel: Type /config or /settings to open a full-screen overlay menu listing all available options:
    • Select a setting to open its list of options or a text input field.
    • Immediately save your selection to the disk and return to the main list.
  • Overrides: Certain settings can be overridden at launch using CLI flags (such as --sandbox or --dangerously-skip-permissions):
    • The settings menu displays an indicator showing where the override came from (for example, Sandbox Mode on overridden by --sandbox).
    • You can still edit the persistent setting on disk, but the current session enforces the command-line override until restarted.

The following table summarizes common shortcuts and commands:

Action/FeatureTip/Command
Auto-complete to file paths@ triggers path suggestions
Clear promptPress Esc twice to clear your prompt box (when no streaming is active)
Terminal commandsUse ! at the start of your prompt to run terminal commands directly
HelpType ? to get help and list all slash commands
Reduce noise from tool callsSet verbosity to low in /config to minimize outputs from numerous tool calls
Manage permissionsControl permissions using /config or /permissions
Go back in conversationUse /rewind or /undo to rewind the conversation history
Fork conversationUse /fork to branch the conversation at the current point while keeping the existing workspace
Clear conversationUse /clear to clear the prompt and start a new conversation session
Resume conversationUse /resume to list and resume previous conversation logs
Auto-save resumeWhen you close the CLI, it automatically prints the exact command needed to resume that specific session

Antigravity CLI supports custom keybindings. You can edit them by typing /keybindings or modifying the JSON file directly:

  • File location: ~/.gemini/antigravity-cli/keybindings.json.
  • Reset: To reset to default, delete the keybindings.json file.

Default keybindings

These keybindings apply to Antigravity CLI only. They don’t work in the Antigravity App.

Action/CommandKeysPurpose
Clear TUI screenCtrl + LClear terminal output
Enter / submitEnterSubmit prompts or choices
Submit (alternate)Alt + MSend one message the opposite way from your Queued Messages setting: right away instead of queued, or queued instead of right away (prompt.submit_alternate)
Escape / cancelEsc / Ctrl + CEsc stops the stream, closes menus, or clears the prompt. Ctrl + C interrupts a running turn, or exits when you press it twice.
Exit CLICtrl + DTerminate CLI TUI session
Suspend CLICtrl + ZPush CLI session to terminal background
Cycle modeShift + TabCycle between execution modes (cli.cycle_mode)
Edit commandCtrl + GWhen the agent asks to run a command, expand the command into a full-screen editor inside the CLI so you can change it before you approve it. This key is fixed and doesn’t open your external editor.
Confirm nonDecline terminal command execution
Confirm yesyApprove terminal command execution
Open editorCtrl + GOpen your prompt in your external editor (for example, vim or nano), which you choose with the editor setting or $EDITOR. CLI only: Ctrl + G doesn’t open an editor in the Antigravity App.
Review artifactsCtrl + ROpen the Artifact Review panel
Toggle tool detailsCtrl + OExpand or collapse detailed tool reasoning outputs
Jump to waiting subagentAlt + JSwitch to the next subagent awaiting confirmation
Approve subagent actionCtrl + KApprove the pending subagent action in the status alert
Voice dictationF5Start or stop voice dictation
Rename conversationF2Rename the highlighted conversation in the conversation picker (item.rename)
Delete conversationF4Delete the highlighted conversation in the conversation picker (item.delete)
Paste textCtrl + V / Alt + VPaste text or media from your clipboard
Redo text editCtrl + Shift + ZRedo last undone text change
Undo text editCtrl + _ / Ctrl + Shift + -Undo last text change
Yank (copy)Ctrl + YYank/copy selected text
Navigate down↓Scroll down in menu lists
Go to bottomCtrl + EndJump TUI view directly to the bottom
Go to topCtrl + HomeJump TUI view directly to the top
Navigate left←Move prompt cursor left
Page downPgDnScroll TUI one page down
Half page downShift + ↓Scroll TUI half a page down
Page upPgUpScroll TUI one page up
Half page upShift + ↑Scroll TUI half a page up
Navigate right→Move prompt cursor right
Tab / focusTabAuto-complete choices or switch component focus
Navigate up↑Scroll up in menu lists
Insert newlineAlt + Enter / Ctrl + J / Shift + EnterAdd newline to prompt without submitting

You can map a single action to many keybindings in the JSON file. To disable keybindings, set the list to empty (for example, []). If the file is malformed, the CLI uses the valid parts and falls back to defaults for the broken actions.