Claude Code's shell sandbox: what it blocks, and the gaps it leaves open
Claude Code includes an OS-enforced sandbox for shell commands, but it is disabled by default. When enabled, it restricts writes to the working directory and designated temp or added paths, while reads remain broad unless denyRead rules are added. Network access is routed through a local proxy with an allowed-domains list that starts empty, so nothing leaves by default. The sandbox does not cover tools such as Read, Edit, WebFetch, MCP servers, and hooks, which are governed by permission rules instead, and the article recommends testing the configuration rather than assuming it works.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in