Home › Rules › Antigravity permissions

Antigravity permissions and the terminal sandbox: presets, allow and deny rules, skipping prompts, and fixes

From Google's Antigravity docs (agent permissions, terminal sandbox, agent settings, CLI settings, execution modes, the /permissions command) and the Antigravity changelog, checked Nov 23, 2026. Sources below.

Short answer: Antigravity decides what the agent may do in two layers. First a preset (in the App) or a mode (in the CLI) sets the baseline: ask about everything, run commands in the terminal sandbox, let Antigravity judge risky commands itself, or never ask. Then your own rules, written as action(target) like command(git) or write_​file(.env), sit on top in three lists: Deny, Ask and Allow. Deny beats Ask, and Ask beats Allow. The sandbox is what makes the middle presets safe: commands inside it can only touch your project and temp folders and can't reach the network unless you allowed a domain.

This page covers which settings screen you actually have, the four App presets and the CLI modes, how rules match, where they're saved, how to stop the prompts (and what still asks after you do), how the sandbox works on each system, what happens when it can't run, and fixes with version numbers.

First: which permission system you have

Google's docs describe two versions, and the menus are different:

If the screen you see doesn't match a guide, this split is usually why. App 2.30.0 (Nov 9, 2026) also moved business accounts without admin controls onto the updated system.

The four App presets

PresetSandboxTerminal commandsFilesMCP tools and web
Request ReviewOffEvery one asksWorkspace onlyAsk
Default (the default)OnRun in the sandbox; leaving it asksWorkspace and temp foldersAsk
AutoOnRun in the sandbox; outside it, Antigravity checks each one and only risky or irreversible ones askWorkspace and temp foldersAsk
TurboOffAll run, no limitsWhole filesystemAllowed

Where to change it: Settings > General > Global Permissions > Permission Preset for every project (it's under Permissions > This Computer if you have remote agents), Settings > Projects to override one project (new projects start on Inherit Global), or the permissions picker in the message box (App 2.23.0+). Choose Use Global Settings in the picker to drop a project override.

Two limits from the docs: Default is only the starting choice when the sandbox works on your machine (otherwise you start on Request Review), and Auto needs App 2.23.0+ on macOS and Linux or 2.26.0+ on Windows, plus a working sandbox. Auto lost its "Preview" label in 2.30.0.

CLI modes and toolPermission

The CLI (agy) has two settings that work together. agentMode (or --mode, or Shift + Tab during a session) picks how edits and commands are handled. toolPermission decides what happens to commands outside auto mode.

SettingFile editsShell commands
auto modeApproved in the workspaceRun in the sandbox; ones that need to leave it are reviewed and only risky ones ask. The default since CLI 1.5.7 where it's offered
accept-edits modeApproved in the workspaceFollow toolPermission
default mode (set agentMode to "")You review a diff firstFollow toolPermission
plan modeStarts with /plan, so the agent outlines the work before editing
request-review-The default value: write, shell, web and MCP tools ask unless a rule allows them
proceed-in-sandbox-Sandboxed commands run; anything outside the sandbox asks
strict-Asks before every tool action, even with a matching allow rule; overrides auto
always-proceed-No prompts except ask and deny rules; overrides auto. Same as --dangerously-skip-permissions

Auto mode needs CLI 1.3.5+ on macOS and Linux or 1.4.4+ on Windows, a working sandbox and a personal account. When it's on, the bottom-right status bar says auto. Shift + Tab cycles default → accept-edits → auto → plan, skipping auto where it isn't offered. Deny rules block an action in every mode.

Allow, ask and deny rules

Each rule is an action with a target in brackets, with no space before the bracket. A bare * as the target matches everything for that action, like command(*).

ActionWhat it coversIf no rule matches
read_​fileA path and everything under it (absolute, or relative to the workspace)Allowed in the workspace, otherwise Ask
write_​fileSame paths; also grants reading that pathAllowed in the workspace, otherwise Ask
read_​urlA domain and its subdomains, when the agent reads a pageAsk
execute_​urlThe browser subagent opening a page on a domainAsk
download_​urlThe App's browser agent downloading files (App only)Ask
commandA shell command by word prefix, or a pattern with regex:Depends on the preset or mode
mcpserver/​tool, or server/* for every tool on a serverAsk
unsandboxedBusiness and enterprise accounts only: lets a command run outside the sandboxAsk

How matching works

Where the rules are saved

Rules you can copy

These are our examples for a Node project, using only the rule formats and keys in Google's docs. The CLI version goes in ~/.gemini/​antigravity-cli/​settings.​json. Allowing registry.​npmjs.​org under read_​url also opens that one domain to sandboxed commands, so npm install can reach it.

Our example (VibeKits): ~/.gemini/antigravity-cli/settings.json
{
  "agentMode": "auto",
  "permissions": {
    "allow": [
      "command(git status)",
      "command(git diff)",
      "command(regex:npm run (build|lint|test))",
      "read_url(registry.npmjs.org)"
    ],
    "ask": [
      "command(git push)"
    ],
    "deny": [
      "command(rm -rf)",
      "command(sudo)",
      "write_file(.env)",
      "write_file(.git/)"
    ]
  }
}

In the App, add the same rules one per line in the Allow, Ask and Deny lists under Global Permissions (or a project's permissions). The command(rm) Ask rule shows how an explicit rule wins over the preset: Google's docs say it prompts even when the command would otherwise run without asking inside the sandbox.

Our example (VibeKits): App Allow / Ask / Deny lists
# Allow (runs without a prompt)
command(git status)
command(git diff)
command(regex:npm run (build|lint|test))
read_url(registry.npmjs.org)

# Ask (always stops for you, even inside the sandbox)
command(git push)
command(rm)

# Deny (never runs)
command(sudo)
write_file(.env)
write_file(.git/)

And the CLI flags, for one session at a time:

Our example (VibeKits): agy flags for sandbox and permissions
# one session with the sandbox forced on
agy --sandbox

# auto mode: sandboxed commands run, risky ones outside it still ask
agy --mode=auto

# edits go through, every shell command still asks
agy --mode=accept-edits

# no prompts at all (same as toolPermission "always-proceed")
agy --dangerously-skip-permissions

# inside a session: edit allow / ask / deny rules
/permissions

Allow all, skip permissions, and what still asks

People search for "allow all", "skip permissions" and "YOLO mode". Google's docs never say YOLO; the two switches are:

Even then, some things still stop:

If what you really want is fewer prompts rather than none, the docs give gentler options: Auto (or --mode=auto), accept-edits for edits only, or a few command(...) allow rules for the commands you run all day.

How the terminal sandbox works

The sandbox uses what's already in your operating system, so there's no virtual machine or Docker image to set up:

SystemWhat it usesNeeds
LinuxKernel namespaces: separate filesystem view, host processes hidden, networking cut offUnprivileged user namespaces allowed (some hosts and containers block them)
macOSsandbox-exec with Seatbelt profiles (SBPL)Nothing extra
WindowsAn AppContainer inside a process security environmentWindows 11 24H2 or later with the August 2026 update or later

Inside it, commands can write to your project folders, temp folders and common build caches, and read system folders like /usr and /etc so your tools still work. ~/.ssh and .env are blocked. Since CLI 1.5.10 (Nov 17, 2026), ~/.config (and AppData\Roaming on Windows) is blocked too, except the settings of common tools like Git, Go, npm and Python, and ~/.git-credentials is blocked. On macOS and Linux, anything not mounted is invisible. The CLI section adds that on Windows, folders outside your user profile stay readable but not writable.

Your rules shape the sandbox: read_​file paths are mounted read-only, write_​file paths read-write, and read_​url domains go on its outbound allowlist. Everything else has no network. When a command can't work inside (Docker, things that talk to system services, many network calls), the agent can ask to run it outside, where it runs on your machine with full access. In Default that always asks unless a command rule covers it; in Auto, Antigravity decides. In the App, sandboxed commands show a shield badge in the command header (App 2.13.0).

In the CLI, auto mode turns the sandbox on for you. In other modes, set "enableTerminalSandbox": true (default false) with "toolPermission": "proceed-in-sandbox", flip it in /config, or start with agy --sandbox.

When the sandbox isn't available

Google names three cases: Windows 10 or Windows 11 before 24H2, Linux hosts that block unprivileged user namespaces, and some containers. Then:

Two error messages people search for aren't quoted anywhere in Google's docs: "sandboxing is not supported on Windows" and "sandbox-exec: command not found". What the docs do say: sandbox-exec is only the macOS method (Linux uses namespaces, Windows uses an AppContainer), and the Windows sandbox needs 24H2 with the August 2026 update. CLI 1.4.1 (Oct 17, 2026) fixed commands failing to start on Windows builds without the sandbox; the CLI now turns it off and asks before each command instead. So check your Windows version and update Antigravity before changing settings.

Permission and sandbox changes over time

All rows come from Google's release notes. If something on your machine acts differently from this page, check your version first.

DateReleaseChange
Jan 23, 2026IDE 1.15.6Sandboxed terminal commands on macOS
Mar 25, 2026IDE 1.21.6Sandbox on Linux
Aug 26, 2026App 2.11.0Fix: old command allow and deny rules ignored after moving to the updated permission system
Sep 19, 2026App 2.15.1File and network sandboxing on Windows
Oct 12, 2026App 2.23.0Permissions picker in the message box; Auto on macOS and Linux
Oct 14, 2026CLI 1.3.5Auto mode added; commands leaving the sandbox are reviewed by a separate agent first
Oct 20 / 21, 2026CLI 1.4.3, 1.4.4Options that need the sandbox hidden where it can't run (1.4.3); Auto mode on Windows 11 24H2+ (1.4.4)
Nov 6, 2026CLI 1.5.2--dangerously-skip-permissions no longer auto-approves protected commands or admin-required reviews
Nov 9, 2026App 2.30.0Auto no longer Preview; the message-box preset applies to that conversation only
Nov 12, 2026CLI 1.5.7CLI starts in Auto where it's offered, including headless -p runs
Nov 13, 2026App 2.32.0, CLI 1.5.8Menus explain hidden presets; a sandbox network-proxy hole with encoded slashes closed
Nov 17, 2026CLI 1.5.10Sandbox blocks ~/.config and ~/.git-credentials by default

Fixes for prompts and sandbox problems

  1. It still asks after you allowed a command. Check for an Ask rule that also matches: Ask beats Allow, so command(*) in Ask makes command(git) in Allow pointless. Then check the command for $(...), backticks or similar, which need a full-line match.
  2. A rule seems to be ignored in the CLI. Rules need the action(target) form with no space before the bracket, and the CLI skips ones it can't parse. Look in all three /permissions scopes, not just Global.
  3. unsandboxed(...) rules do nothing. On personal accounts they're ignored with a warning. Change them to command(...), which covers a command inside or outside the sandbox.
  4. npm install or curl fails in the sandbox. There's no network inside by default. Add the domain under read_​url, or let that one command run outside with a command allow rule.
  5. A tool can't find its settings or login inside the sandbox. Since CLI 1.5.10, ~/.config is blocked except for common developer tools. Allow the path you need with a read_​file rule.
  6. Auto or Default is missing. The sandbox isn't available on that machine (see above), or you're on a business or enterprise account, which doesn't get Auto.
  7. Every sandboxed command fails with "Access is denied" on Windows. App 2.24.0 fixed this for PowerShell installed from the Microsoft Store.
  8. Subagents ask about every command in Auto. App 2.27.0 fixed subagents and custom agents asking for every command outside the sandbox instead of only risky ones.
  9. Your old allow and deny rules stopped working after an update. App 2.11.0 fixed rules ignored after the move to the updated system, and CLI 1.5.6 fixed /permissions edits that could make the App migrate project rules again and drop command(...) allow rules.
  10. A rule you removed in Remote Control still applied. Fixed in CLI 1.3.4; those approvals are now saved only to the shared config.​json.

Where the docs disagree

FAQ

How do I change permissions in Google Antigravity?

In the Antigravity App, open Settings > General > Global Permissions > Permission Preset and pick Request Review, Default, Auto or Turbo. You can override it per project under Settings > Projects, or switch from the permissions picker in the message box. Your own allow, ask and deny rules sit on top of the preset. In the Antigravity CLI, type /permissions to edit rules, or put them under permissions in ~/.gemini/antigravity-cli/settings.json.

How do I allow all commands in Antigravity?

In the App, choose the Turbo preset: commands run without prompting, with no sandbox and full file access. In the CLI, start agy with --dangerously-skip-permissions or set toolPermission to always-proceed. Both are the highest-risk choices. A narrower option is a command allow rule, such as command(git) or command(regex:npm run (build|lint|test)), which only covers the commands you name.

Is there a skip permissions or YOLO mode in Antigravity?

Google's docs don't use the word YOLO. The CLI flag is --dangerously-skip-permissions, which sets toolPermission to always-proceed for that session. Since CLI 1.5.2 it no longer auto-approves commands on Antigravity's built-in protected list, and since CLI 1.3.2 it no longer approves plans in /plan mode. On managed accounts it can't skip a review your Gemini Enterprise admin requires.

What is the Antigravity terminal sandbox?

It runs the agent's shell commands inside an operating system boundary: kernel namespaces on Linux, sandbox-exec (Seatbelt) on macOS, and an AppContainer on Windows 11 24H2 or later with the August 2026 update. Commands can write to your project, temp folders and build caches, can't see files like ~/.ssh and .env, and have no network except domains you allowed with read_url.

Why does Antigravity say sandboxing is not supported on Windows?

Google's docs don't quote that message, but they do say the sandbox needs Windows 11 version 24H2 or later with the August 2026 update or later. On Windows 10 or older Windows 11 builds, CLI 1.4.4 and later turn the sandbox options off, a saved proceed-in-sandbox acts like request-review, and Auto isn't offered. In the App, Default falls back to Request Review when the sandbox isn't available.

Do allow rules work inside and outside the sandbox?

Yes, for most accounts. A command(...) allow rule lets a matching command run without prompting whether it runs inside or outside the sandbox. Business and enterprise accounts are the exception: they use unsandboxed(...) rules to let a command leave the sandbox. Other accounts ignore unsandboxed rules and get a warning.

Related setups

A PreToolUse hook can also allow, deny or ask about a tool call before these rules run, which is covered in Antigravity hooks. Subagents inherit the parent's permission and sandbox settings (Google Antigravity subagents), and MCP tools follow the mcp(...) rules above (Google Antigravity MCP). If you're coming from Gemini CLI, Antigravity CLI vs Gemini CLI covers moving your settings.

Next step for Antigravity: Agent Skills

Skills are folders your AI coding agent loads only when the job comes up, and Claude Code, Cursor and OpenAI Codex all read the same SKILL.md format. The Vibe Coder Skills Pack ($9) is 6 ready-to-copy SKILL.md skills (fix-one-bug, stop-the-loop, leak-check, ship-check, explain-project, builder-handoff) for Claude Code, Cursor and OpenAI Codex. Also included in the 6-kit bundle.

Get the Skills Pack for $9 on Gumroad → See what's inside

One .zip of skill folders plus one markdown file. 7-day refund, no questions asked.

Best value

All 6 kits for $29 — or $20.30 with code WELCOME30 (through Nov 30)

Permissions decide what the agent is allowed to touch. The kits tell it what to build, step by step: a small game, a Discord bot, an email-triage agent, an MVP, or a cleanup of messy code.

Get all 6 kits for $29 → See what's in each kit

$29 instead of $48 for the six kits bought separately; WELCOME30 takes 30% off that at checkout ($20.30). Instant download from Gumroad. 7-day refund, no questions asked.

Related

Sources

Every setting name, rule format, path, version number and date here was checked Nov 23, 2026 on Google's own Antigravity docs and changelog. Permissions and the sandbox change almost every week, so check the linked pages if a menu name or default doesn't match what you see.

Free rules starter pack for Cursor, Claude Code, Codex and Antigravity

One shared AGENTS.md that works across Cursor, Claude Code, Codex, Copilot and Antigravity, plus database and test rules in each tool's format. Unzip it into your project and fill in two sections. I'll email you the link.

After that, an occasional email when I publish a new guide or rules file.

Free. No spam. Unsubscribe anytime. See our privacy note.