Explore our next generation products
Built for developers in the agent-first era
Everything you need to stay up-to-date and get help
Settings, rendering & keybindingslink
Configure persistent preferences, customize keyboard shortcuts, toggle terminal display buffers, and manage runtime CLI parameter overrides.
Setting up preferenceslink
Antigravity CLI stores user preferences in a minimal, forward-compatible JSON configuration profile.
Configuration file locationlink
The persistent settings are saved in a plain JSON format:
text
~/.gemini/antigravity-cli/settings.jsonThe CLI leverages sparse persistence by writing only values to disk that differ from their system defaults. This keeps your configuration file clean, minimal, and fully forward-compatible with future updates.
The interactive settings panellink
To edit settings directly inside your active terminal session without opening raw JSON files:
- Type
/config(or its alias/settings) inside the prompt panel and pressEnter. - The full-screen Settings Editor Overlay opens.
- Navigate between available options using
↑/↓. - Press
Enteron a highlighted parameter to toggle its state or open a text insertion field. - Press
Escto save your modifications and close the editor.

Command-line overrideslink
You can temporarily override persistent preferences for individual terminal sessions using CLI command flags:
bash
agy --sandbox --model="Gemini 3.5 Flash"When an override flag is active, the interactive
/config menu displays a warning indicator alongside the modified setting:text
! Tool Permission: strict (overridden by command flag)You can still edit the persistent value on disk during these sessions, but the CLI enforces the active runtime flag override until you close the session.
Visual rendering modeslink
The TUI operates in one of two visual rendering modes depending on your terminal capability and connection latency.
Alt-screen mode (`always`)link
This mode opens a dedicated display screen using the terminal's alternate buffer, creating an immersive, standalone app interface.
- Key features: Integrated scrollback, mouse-wheel scrolling support, custom rendered scrollbar, and clean terminal state restoration on exit.
- Best used for: Standard local development sessions in advanced terminal emulators (such as iTerm2, Ghostty, or WezTerm).
Inline mode (`never`)link
This mode renders output sequentially directly within your terminal's standard stdout pipeline.
- Key features: Preserves entire session history inside your emulator's native scrollback buffer, does not capture mouse inputs, and works seamlessly alongside standard command outputs.
- Best used for: Remote SSH terminals, terminal multiplexers like
tmuxorscreen, and low-bandwidth remote sessions.
info
Adaptive Rendering: Setting Alt-Screen mode to
default allows the TUI to automatically detect your environment. It defaults to Alt-Screen on advanced local shells and degrades to Inline mode when running over SSH or in non-interactive sessions.Configuration options referencelink
The interactive settings panel (
/config) and settings.json allow you to customize the CLI's behavior across several categories.Safety & permissionslink
Manage how the agent interacts with your system and codebase:
- Tool Permission (
toolPermission): Controls the authorization flow for tools (such as running terminal commands). request-review(Default): Prompts for your approval before running write, bash, or web tools.proceed-in-sandbox: Automatically runs terminal commands if they are sandboxed; otherwise prompts for review.strict: Prompts for all non-read tools, ensuring maximum control.always-proceed: Runs all tools without prompting (highest risk, use with caution).- Artifact Review (
artifactReviewPolicy): Controls when the agent prompts you to review generated artifacts (like code files) before writing them to disk. asks-for-review(Default): Always prompts you to review changes.agent-decides: The agent decides whether to prompt based on the complexity of the change.always-proceed: The agent writes changes directly without prompting (maximizes autonomy, but increases risk of overwriting code without review).- Sandbox Mode (
enableTerminalSandbox): When enabled (on), restricts all agent-initiated terminal commands to a secure OS container. - Non-Workspace Access (
allowNonWorkspaceAccess): Controls whether the agent can read or write files outside your active project directories. Set tooffby default for safety.
Display & renderinglink
Customize the visual experience of the TUI:
- Rendering Mode (
altScreenMode): Controls how the TUI utilizes your terminal buffer. default: Adaptive mode. Uses Alt-screen on advanced local terminals and degrades to inline mode over SSH.always: Forces Alt-screen mode, providing an immersive, page-based interface with mouse support and scrollbars.never(configurable viasettings.json): Forces inline mode, rendering output sequentially and preserving history in your emulator's scrollback.- Color Scheme (
colorScheme): Selects the visual theme. Options includeterminal(inherits shell colors),dark,light,solarized dark/light,tokyo night, and colorblind-friendly variants. - Animation Speed (
runningLightSpeed): Adjusts the speed of the progress indicator animation (fast,medium,slow, oroff). - Verbosity (
verbosity): Controls detail level.highshows full agent thoughts and tool steps;lowshows only minimal progress indicators.
Editor & notificationslink
Configure integrations with your host environment:
- Editor (
editor): The text editor used to view artifacts or compose prompts (viaCtrl+G). Defaults toauto(respects$EDITOR), but can be set tovim,emacs, or others. - Notifications (
notifications): When enabled (on), triggers a system desktop notification and a terminal bell chime when a long-running task completes or requires your attention.
AI Credits & Feedbacklink
Manage usage, tips, and telemetry:
- Use AI Credits (
useG1Credits): External builds only. When enabled (on), allows the CLI to use your personal AI credits for model calls if your plan's standard quota is exhausted. - Enable Telemetry (
enableTelemetry): Helps Google improve the tool by sending anonymous usage statistics and crash reports. - Show Tips (
showTips): Toggles the display of helpful usage tips while the agent is generating responses. - Show Feedback Survey (
showFeedbackSurvey): Enables periodic brief surveys after task completions to help improve the experience.
Custom status lines & terminal titleslink
For advanced TUI environment integrations, you can toggle active metrics or deploy custom scripts to generate dynamic status bars and modify your terminal window titles:
- Status Line Customization: Learn how to manage the status indicator panel and construct custom formatted status line shell scripts.
- Terminal Title Customization: Learn how to toggle window title outputs and pipe live agent states into your window headers.
Keybindings configurationlink
You can customize almost all keyboard shortcuts in the TUI by mapping keys to specific workspace commands.
Keybindings file locationlink
Custom maps are stored alongside your primary settings profile:
text
~/.gemini/antigravity-cli/keybindings.jsonFormat and customizationlink
The JSON structure maps a single TUI command action to an array of hotkey sequences:
json
{
"cli.clear_screen": [
"ctrl+l"
],
"prompt.insert_newline": [
"shift+enter",
"ctrl+j"
],
"edit.open_editor": [
"ctrl+g"
]
}To completely disable a default hotkey, map its action to an empty array
[]. If your JSON schema is malformed or invalid, the CLI falls back to system defaults for those specific actions and loads the remaining valid mappings.warning
Protected Keys: Crucial navigation shortcuts like
cli.exit (Ctrl+D / Ctrl+C) and cli.enter (Enter) are protected by the system and cannot be disabled.Restoring defaultslink
To revert all keys back to system defaults, delete the keybindings profile:
bash
rm ~/.gemini/antigravity-cli/keybindings.jsonNext stepslink
Now that you have configured your environment, review security controls and extensibility options:
- Permissions & Sandbox: Manage secure execution containment boundaries.
- Plugins & Skills: Create your own custom skills and import legacy plugins.
- CLI Reference: Access quick reference sheets listing all configuration options, commands, and default key maps.
On this Page