Google · Coding agent · checked 2026-12-01
Not covered by the sandbox page checked. Sandboxing is a separate, opt-in layer.
Opt-in: flag -s/--sandbox, GEMINI_SANDBOX env var, or tools.sandbox in settings.json. Methods: macOS Seatbelt, Docker or Podman containers, Windows native sandbox, runsc, lxc.
Default macOS Seatbelt profile permissive-open confines writes to the project directory and allows broad reads. A strict-open profile restricts reads and writes.
Default Seatbelt profile allows network. The proxied profiles route network through a proxy.
settings.json: {"tools": {"sandbox": "docker"}}. SEATBELT_PROFILE env var chooses the macOS profile. Custom image via GEMINI_SANDBOX_IMAGE or .gemini/sandbox.Dockerfile.
The Windows native sandbox sets a Low integrity level with icacls, and the docs say those changes persist on files after the session ends.
Facts come from each vendor's public documentation, linked on every row, and were read on 2026-12-01. Docs change often, so check the source before you rely on a setting. This is information, not security advice, and no setting here guarantees safety.