Home › Rules › Antigravity permissions
Antigravity permissions and the terminal sandbox: presets, allow and deny rules, skipping prompts, and fixes
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:
- Updated permission settings are what personal accounts get. In the App you pick a Permission Preset (Request Review, Default, Auto or Turbo). In the CLI you pick a mode (
default,accept-edits,auto,plan). - Previous permission settings are what business and enterprise accounts use, including Antigravity in Gemini Enterprise. The App shows Terminal Command Auto Execution (Require Review, Proceed in Sandbox, Always Proceed), a separate Enable Sandbox Mode switch and a Security Preset dropdown (Default, Full machine, Turbo mode). Auto isn't offered on these accounts.
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
| Preset | Sandbox | Terminal commands | Files | MCP tools and web |
|---|---|---|---|---|
| Request Review | Off | Every one asks | Workspace only | Ask |
| Default (the default) | On | Run in the sandbox; leaving it asks | Workspace and temp folders | Ask |
| Auto | On | Run in the sandbox; outside it, Antigravity checks each one and only risky or irreversible ones ask | Workspace and temp folders | Ask |
| Turbo | Off | All run, no limits | Whole filesystem | Allowed |
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.
| Setting | File edits | Shell commands |
|---|---|---|
auto mode | Approved in the workspace | Run 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 mode | Approved in the workspace | Follow toolPermission |
default mode (set agentMode to "") | You review a diff first | Follow toolPermission |
plan mode | Starts 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(*).
| Action | What it covers | If no rule matches |
|---|---|---|
read_file | A path and everything under it (absolute, or relative to the workspace) | Allowed in the workspace, otherwise Ask |
write_file | Same paths; also grants reading that path | Allowed in the workspace, otherwise Ask |
read_url | A domain and its subdomains, when the agent reads a page | Ask |
execute_url | The browser subagent opening a page on a domain | Ask |
download_url | The App's browser agent downloading files (App only) | Ask |
command | A shell command by word prefix, or a pattern with regex: | Depends on the preset or mode |
mcp | server/tool, or server/* for every tool on a server | Ask |
unsandboxed | Business and enterprise accounts only: lets a command run outside the sandbox | Ask |
How matching works
- Commands match word by word.
command(git)coversgit statusandgit log. Withregex:, each space-separated piece is a full-match pattern, socommand(regex:npm run (build.*))coversnpm run build:prod. - Some commands need an exact match. If a command uses
$(...), backticks,<(...),$((...)), brace expansion like{a,b}, network redirects, or tool flags that run other programs (git -c core.pager=...,tar --to-command), prefix matching is turned off for the whole line. Withcommand(git)allowed,git status && git logstill runs without asking, butgit log $(whoami)asks. - Pipes and chains are fine.
|,&&,||,;, quotes, plain$VAR, simple file redirects and wrappers liketimeout,nohup,niceandenvkeep normal matching. - URLs match by domain, not path.
read_url(google.com)also coversmail.google.com.execute_urlis stricter:localhost:3000andlocalhost:8080are separate, and sensitive Google hosts likemail.google.com,docs.google.comanddrive.google.comneed their own rule. Aread_urlgrant never lets the browser open a page. - Two built-in shortcuts. Allowing writes to a path allows reading it. Denying reads on a path blocks writes there too.
- Windows paths. Drive letters are dropped and backslashes become forward slashes before rules are checked, so one rule works on every system. In PowerShell or Command Prompt, use
command(regex:git .*)to cover a command and its subcommands.
Where the rules are saved
- App: Settings > General > Global Permissions for every conversation, and each project's settings for that project. Permission requests you approve while working can be added to the project's rules.
- CLI: the
permissionskey in~/.gemini/antigravity-cli/settings.jsonis the Global scope./permissionsopens a manager with three scopes: Project (this project only), Shared (used by every Antigravity product) and Global. The CLI combines all three, and the changelog says project files live in~/.gemini/config/projects/and win over the global file (CLI 1.0.12). The CLI skips rules it can't parse. - From a prompt: when a command asks, the CLI offers yes once, yes for this conversation for commands starting the same way, yes always (saved to
settings.json), or no. For file, URL and MCP prompts you can widen the target before you click Allow, like changing/project/file.txtto/project; that wider grant lasts for the rest of the turn. Command prompts can't be widened this way.
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.
{
"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/)"
]
}
}
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.
Free. No spam. Unsubscribe anytime. See our privacy note.
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.
# 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:
# 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:
- App: the Turbo preset. All commands run without prompting, the sandbox is off and the agent can read and write your whole filesystem. MCP tools and web reads are allowed too.
- CLI:
--dangerously-skip-permissions, which istoolPermissionalways-proceedfor that session. It overridesautomode.
Even then, some things still stop:
- Your own Ask and Deny rules still apply (
always-proceedskips prompts "except actions that match an ask or deny rule"). - Commands on Antigravity's built-in protected list go through the usual checks (CLI 1.5.2, Nov 6, 2026). The list itself isn't published in the docs.
- Plans in
/planmode wait for you again (CLI 1.3.2, Oct 8, 2026). To let plans go through too, set Artifact Review (artifactReviewPolicy) toalways-proceed. - On a Gemini Enterprise account, anything your admin requires a review for is still reviewed, and headless runs deny it instead (CLI 1.5.2).
- In the browser, every file upload needs a one-time approval even in Turbo, and a Deny rule for a site still beats an Allow rule under Turbo.
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:
| System | What it uses | Needs |
|---|---|---|
| Linux | Kernel namespaces: separate filesystem view, host processes hidden, networking cut off | Unprivileged user namespaces allowed (some hosts and containers block them) |
| macOS | sandbox-exec with Seatbelt profiles (SBPL) | Nothing extra |
| Windows | An AppContainer inside a process security environment | Windows 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:
- In the CLI (1.4.4+),
enableTerminalSandboxand--sandboxdo nothing,proceed-in-sandboxacts likerequest-review,autoisn't offered, and/confighides all three. Your saved settings stay as they are and start working once the sandbox does. - In the App, Default isn't the starting preset (you start on Request Review), Auto isn't offered, and since App 2.32.0 (Nov 13, 2026) the permission menu says why Default and Auto are hidden.
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.
| Date | Release | Change |
|---|---|---|
| Jan 23, 2026 | IDE 1.15.6 | Sandboxed terminal commands on macOS |
| Mar 25, 2026 | IDE 1.21.6 | Sandbox on Linux |
| Aug 26, 2026 | App 2.11.0 | Fix: old command allow and deny rules ignored after moving to the updated permission system |
| Sep 19, 2026 | App 2.15.1 | File and network sandboxing on Windows |
| Oct 12, 2026 | App 2.23.0 | Permissions picker in the message box; Auto on macOS and Linux |
| Oct 14, 2026 | CLI 1.3.5 | Auto mode added; commands leaving the sandbox are reviewed by a separate agent first |
| Oct 20 / 21, 2026 | CLI 1.4.3, 1.4.4 | Options that need the sandbox hidden where it can't run (1.4.3); Auto mode on Windows 11 24H2+ (1.4.4) |
| Nov 6, 2026 | CLI 1.5.2 | --dangerously-skip-permissions no longer auto-approves protected commands or admin-required reviews |
| Nov 9, 2026 | App 2.30.0 | Auto no longer Preview; the message-box preset applies to that conversation only |
| Nov 12, 2026 | CLI 1.5.7 | CLI starts in Auto where it's offered, including headless -p runs |
| Nov 13, 2026 | App 2.32.0, CLI 1.5.8 | Menus explain hidden presets; a sandbox network-proxy hole with encoded slashes closed |
| Nov 17, 2026 | CLI 1.5.10 | Sandbox blocks ~/.config and ~/.git-credentials by default |
Fixes for prompts and sandbox problems
- It still asks after you allowed a command. Check for an Ask rule that also matches: Ask beats Allow, so
command(*)in Ask makescommand(git)in Allow pointless. Then check the command for$(...), backticks or similar, which need a full-line match. - 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/permissionsscopes, not just Global. unsandboxed(...)rules do nothing. On personal accounts they're ignored with a warning. Change them tocommand(...), which covers a command inside or outside the sandbox.npm installorcurlfails in the sandbox. There's no network inside by default. Add the domain underread_url, or let that one command run outside with acommandallow rule.- A tool can't find its settings or login inside the sandbox. Since CLI 1.5.10,
~/.configis blocked except for common developer tools. Allow the path you need with aread_filerule. - 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.
- Every sandboxed command fails with "Access is denied" on Windows. App 2.24.0 fixed this for PowerShell installed from the Microsoft Store.
- 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.
- 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
/permissionsedits that could make the App migrate project rules again and dropcommand(...)allow rules. - 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
- Is the sandbox on by default, and where? The terminal sandbox page says it's on by default and covers Windows. The sandboxing section at the bottom of the settings page still says it's off by default and supported on macOS and Linux only.
- What the message-box picker changes. The permissions, sandbox and agent settings pages say it changes your global preset (or the project's). The App 2.30.0 changelog says it now applies only to that conversation.
- Auto for business accounts. The docs say Auto isn't available for business or enterprise accounts. App 2.30.0 says business accounts without admin controls now get Auto and the updated system.
- What
strictasks about. The settings page says every tool action, including file reads. The agent settings page says all non-read tool calls. - What
--dangerously-skip-permissionsapproves. The CLI reference says it approves all permission requests. The settings page says ask and deny rules still apply, and the 1.5.2 changelog adds the protected-command list. - Wildcards inside a command rule. The sandbox page's example uses
command(sudo *), and its older exampleunsandboxed(docker compose .*)has noregex:. The permissions page only defines*as the whole target and says patterns needregex:. Our examples usecommand(sudo), which the permissions page shows. - What the Linux sandbox uses. The sandbox page says kernel namespaces. The Gemini Enterprise page names
bubblewrapon Linux and--sandbox=true.
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
- Antigravity hooks (hooks.json, six events, PreToolUse decisions, fixes)
- Google Antigravity subagents (custom agents, agents folder, examples)
- Google Antigravity MCP (mcp_config.json location, MCP Store, Figma, GitHub, fixes)
- Antigravity CLI vs Gemini CLI (who uses which, commands, settings, how to switch)
- Antigravity Agent Manager (now the Antigravity App) (where it went in 2.0, shortcuts, plans, fixes)
- Google Antigravity limits and AI credits (free tier, quotas, AI credits)
- Vibe coding security checklist (12 checks before you launch)
- Free rules file generator
Sources
- Google Antigravity docs: Agent permissions
- Google Antigravity docs: Terminal sandbox
- Google Antigravity docs: Agent settings
- Google Antigravity docs: Settings
- Google Antigravity docs: Choose an execution mode (CLI)
- Google Antigravity docs: Permissions command (/permissions)
- Google Antigravity docs: CLI command reference
- Google Antigravity docs: Browser allowlist and denylist
- Google Antigravity docs: Antigravity in Gemini Enterprise
- Google Antigravity changelog
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.