promptgarten 🌱

Command reference Β· Antigravity CLI

agy --sandbox

Forces sandbox isolation for terminal commands, including in print mode.

agy --sandbox confines every local execution command the agent launches to OS-level containment: nsjail (Linux, kernel namespaces/cgroups), sandbox-exec (macOS, policy profiles), or AppContainer (Windows). Since 1.0.6 the flag is also correctly enforced in non-interactive print mode (-p/--print), not just interactively. The same setting can be persisted via enableTerminalSandbox in settings.json (default: false).

πŸ”„ THE SAME TASK (β€œTOGGLE SANDBOX MODE”) ON OTHER PLATFORMS

Compare all 28 tasks β†’

βœ… WHEN TO USE IT?

Run untrusted or generated code in isolation

Launch agy --sandbox in a new or unfamiliar repo

Force sandbox isolation in scripts/CI as well

agy --sandbox -p "<prompt>"

β›” WHEN NOT TO?

The agent needs full access to system resources outside the workspace

The sandbox deliberately restricts filesystem visibility and network access for terminal commands.

Better: Start agy without --sandbox, or confirm 'run without sandbox restrictions' per command

SOURCES

MORE COMMANDS Β· Antigravity CLI

agy --mode <default|accept-edits|plan>agy --dangerously-skip-permissionsagy plugin listagy plugin install <path>agy plugin enable <name>agy plugin disable <name>agy plugin uninstall <name>agy plugin import geminiinstall.sh --skip-aliasesinstall.sh --skip-path@<path>!<shell-command>

All commands Β· Antigravity CLI β†’

Share:𝕏inπŸ’¬