Skip to content

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 promptType esc esc 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 spin up a separate workspace and branch the conversation from an earlier point
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

Action/CommandKeysPurpose
Clear TUI screenctrl+lClear terminal output
Enter / submitenterSubmit prompts or choices
Escape / cancelctrl+c, escStop stream, close menus, or clear prompt
Exit CLIctrl+dTerminate CLI TUI session
Suspend CLIctrl+zPush CLI session to terminal background
Edit commandeOpen editor to edit proposed terminal command
Confirm nonDecline terminal command execution
Confirm yesyApprove terminal command execution
Open editorctrl+gEdit prompt inside your default shell editor
Paste textctrl+vPaste text 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 downdownScroll 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 leftleftMove prompt cursor left
Page downpgdown, shift+downScroll TUI page down
Page uppgup, shift+upScroll TUI page up
Navigate rightrightMove prompt cursor right
Tab / focustabAuto-complete choices or switch component focus
Navigate upupScroll 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.