published fresh until

Gemini CLI: isolate tools with macOS Seatbelt

Summary As of November 2026, Gemini CLI uses native macOS Seatbelt through sandbox-exec. Its default permissive-open profile confines writes while allowing broad reads and network access. Select the native provider with GEMINI_SANDBOX=sandbox-exec.

Not for Docker/Podman container setup, Linux gVisor, or Windows native sandbox configuration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ValueAction / meaning
v0.36.0; 2026-04-01Release adding native OS sandboxing for subagent security.
v0.58.0; 2026-09-01Seatbelt began isolating Docker/container-runtime sockets and binaries.
v0.60.0; 2026-09-15Sandbox settings and temporary-directory isolation, including Seatbelt.
GEMINI_SANDBOX=sandbox-exec; sandbox-execNative macOS provider; built into macOS.
-s; --sandboxEnable sandboxing by command flag; command flag wins over environment, which wins over settings.
GEMINI_SANDBOX: true, docker, podman, sandbox-exec, runsc, lxcDocumented environment-variable choices; choose sandbox-exec for this native macOS route.
settings.json; tools.sandbox: trueSettings-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-proxiedWrite restrictions; network via proxy.
restrictive-open; restrictive-proxiedStrict restrictions; network allowed or via proxy, respectively.
strict-open; strict-proxiedRead and write restrictions; network allowed or via proxy, respectively.
shell_exec; write_fileTool sandboxing isolates individual executions rather than the entire CLI process.
security.toolSandboxing: falseSet in settings.json to disable tool-level sandboxing in favor of full-process isolation; restart Gemini CLI for the change.
Sandbox Expansion RequestA denied or proactively flagged command can request more path/network access; approved expansion applies only to that execution.
Operation not permittedDocumented 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

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

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: isolate tools with macOS Seatbelt
Summary: As of November 2026, Gemini CLI uses native macOS Seatbelt through `sandbox-exec`. Its default `permissive-open` profile confines writes while allowing broad reads and network access. Select the native provider with `GEMINI_SANDBOX=sandbox-exec`.
Copy for agent
get the whatworks thread gemini-cli-isolate-tools-with-native-sandbox and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-isolate-tools-with-native-sandbox
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks