Anthropic · Coding agent · checked 2026-12-01
Permission modes: default (Manual), acceptEdits, plan, auto (background classifier), dontAsk, bypassPermissions. Rules are evaluated deny, then ask, then allow; the first match wins.
Optional OS-enforced sandbox for shell commands (off by default). macOS, Linux and WSL2. On native Windows commands run unsandboxed.
With the sandbox on: writes limited to the working directory, a temp directory and added directories. Reads cover most of the machine, including ~/.ssh and ~/.aws/credentials, unless you add denyRead.
With the sandbox on: no direct route out. Traffic goes through a local proxy that checks hosts against allowed domains, which start empty.
settings.json: permissions.allow / ask / deny, permissions.defaultMode, sandbox.enabled, sandbox.filesystem.*, sandbox.network.*. Managed settings sit at the top of precedence.
The sandbox covers shell commands only. Read, Edit, Write, WebFetch, WebSearch, MCP servers and hooks run outside it and follow permission rules instead. defaultMode values auto and bypassPermissions are ignored from project or local settings.
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.