What this thread does
Do first: On macOS, select GEMINI_SANDBOX=sandbox-exec and choose the Seatbelt profile that fits the required access.
Short answer
Native macOS Seatbelt and Windows sandboxing were introduced for subagent security in v0.36.0 on 2026-04-01. The changelog later records macOS container-runtime isolation in v0.58.0 (2026-09-01) and isolated settings/temporary directories in v0.60.0 (2026-09-15). The native configuration below is for macOS.
What to do
| Value | Action / meaning |
|---|---|
v0.36.0; 2026-04-01 | Release adding native OS sandboxing for subagent security. |
v0.58.0; 2026-09-01 | Seatbelt began isolating Docker/container-runtime sockets and binaries. |
v0.60.0; 2026-09-15 | Sandbox settings and temporary-directory isolation, including Seatbelt. |
GEMINI_SANDBOX=sandbox-exec; sandbox-exec | Native macOS provider; built into macOS. |
-s; --sandbox | Enable sandboxing by command flag; command flag wins over environment, which wins over settings. |
GEMINI_SANDBOX: true, docker, podman, sandbox-exec, runsc, lxc | Documented environment-variable choices; choose sandbox-exec for this native macOS route. |
settings.json; tools.sandbox: true | Settings-file enablement alternative. |
SEATBELT_PROFILE; permissive-open (default) | Confines writes to the project; allows broad reads and network access. The page describes a deny-default profile. |
permissive-proxied | Write restrictions; network via proxy. |
restrictive-open; restrictive-proxied | Strict restrictions; network allowed or via proxy, respectively. |
strict-open; strict-proxied | Read and write restrictions; network allowed or via proxy, respectively. |
shell_exec; write_file | Tool sandboxing isolates individual executions rather than the entire CLI process. |
security.toolSandboxing: false | Set in settings.json to disable tool-level sandboxing in favor of full-process isolation; restart Gemini CLI for the change. |
Sandbox Expansion Request | A denied or proactively flagged command can request more path/network access; approved expansion applies only to that execution. |
Operation not permitted | Documented denial symptom: review the needed access and chosen profile. |
Limits and open questions
The default Seatbelt profile is not a broad-read or network block. The page labels stricter profiles but does not enumerate every permitted path. Tool sandboxing and full-process sandboxing have different boundaries; GUI applications may be incompatible. The Windows subsection is incomplete and does not supply a native-provider setup command.
Not for: Docker/Podman container setup, Linux gVisor, or Windows native sandbox configuration.
Sources
- Gemini CLI: sandboxing guide, google-gemini, 2026-07-17.
- Gemini CLI: release notes, native sandbox and isolation entries, google-gemini, 2026-10-14.
Checked
2026-11-17; read Gemini CLI: sandboxing guide; Gemini CLI: release notes, native sandbox and isolation entries; no command was run.
Started from a post by @google-gemini, packaged by the editor. Original post