Skip to content

Permissions & YOLO Mode

Raw Markdown Source.md
---
title: Permissions & YOLO Mode
description: Managing tool approval prompts, headless automation, and shell aliases in Antigravity.
sidebar:
  order: 5
---

By default, Antigravity protects your system by pausing and prompting for confirmation before running bash commands or modifying files.

---

## "YOLO" Mode: Auto-Approve Everything

To run without any interactive confirmation prompts:

```bash
agy --dangerously-skip-permissions
```

### Convenient Shell Aliases
Add to your `~/.bashrc` or `~/.zshrc`:

```bash
# Shortcut for full auto-approval
alias yolo="agy --dangerously-skip-permissions"

# Or if you want agy to always auto-approve:
# alias agy="agy --dangerously-skip-permissions"
```
Reload your shell with `source ~/.bashrc`.

---

## Granular Whitelisting in `settings.json`

If you want to auto-approve safe operations while preserving prompts for sensitive actions, define rules in `~/.gemini/antigravity-cli/settings.json`:

```json
{
  "permissions": {
    "allow": [
      "command(git status)",
      "command(git diff)",
      "command(npm test)",
      "read_file(*)"
    ],
    "deny": [
      "command(rm -rf *)",
      "command(drop database*)"
    ]
  }
}
```

* **`allow`**: Runs matching commands immediately without prompting.
* **`deny`**: Hard-blocks matching commands from running.

By default, Antigravity protects your system by pausing and prompting for confirmation before running bash commands or modifying files.


To run without any interactive confirmation prompts:

Terminal window
agy --dangerously-skip-permissions

Add to your ~/.bashrc or ~/.zshrc:

Terminal window
# Shortcut for full auto-approval
alias yolo="agy --dangerously-skip-permissions"
# Or if you want agy to always auto-approve:
# alias agy="agy --dangerously-skip-permissions"

Reload your shell with source ~/.bashrc.


If you want to auto-approve safe operations while preserving prompts for sensitive actions, define rules in ~/.gemini/antigravity-cli/settings.json:

{
"permissions": {
"allow": [
"command(git status)",
"command(git diff)",
"command(npm test)",
"read_file(*)"
],
"deny": [
"command(rm -rf *)",
"command(drop database*)"
]
}
}
  • allow: Runs matching commands immediately without prompting.
  • deny: Hard-blocks matching commands from running.