{"name":"sandbox.autoAllowBashIfSandboxed","slug":"sandbox-autoallowbashifsandboxed","family":"setting","title":"Settings keys","noun":"settings key","description":"Run [sandboxed](https:\/\/code.claude.com\/docs\/en\/sandboxing.md#auto-allow-mode) commands without a permission prompt","description_source":"docs","described_by":{"doc":"claude-code\/settings-reference","title":"All settings"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.330","builds":0,"mined_builds":169,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.324","anchor":"sandboxautoallowbashifsandboxed-default-described-as-false","heading":"Setting description now says sandboxed Bash commands still ask for permission by default","line":"A sandbox setting's description now says `sandbox.autoAllowBashIfSandboxed` defaults to false, where it used to say true","released_at":"2026-11-13 18:42:36","reason":"named in this entry, found in this entry's text"},{"version":"2.1.324","anchor":"sandboxed-bash-auto-allow-default-now-depends-on-a-bot-prote","heading":"Auto-approving sandboxed Bash commands is no longer always on by default","line":"If you never set sandbox.autoAllowBashIfSandboxed, its default now follows a remote switch instead of always being on","released_at":"2026-11-13 18:42:36","reason":"named in this entry, found in this entry's text"}],"entries_total":2,"docs":[{"source":"claude-code","path":"settings-reference","title":"All settings","documented":true},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"permission-modes","title":"Choose a permission mode","documented":false},{"source":"claude-code","path":"permissions","title":"Configure permissions","documented":false},{"source":"claude-code","path":"sandboxing","title":"Configure the sandboxed Bash tool","documented":false},{"source":"claude-docs","path":"third-party\/claude-desktop\/admin-console-claude-code-reference","title":"How Claude Code in the terminal applies your console settings","documented":false},{"source":"claude-docs","path":"third-party\/claude-desktop\/code","title":"Code in Claude Desktop on 3P","documented":false}],"docs_total":7,"gates":[],"related":[{"name":"sandbox","slug":"sandbox","description":"[Isolate Bash commands](https:\/\/code.claude.com\/docs\/en\/sandboxing.md) from your filesystem and network on macOS, Linux, and WSL2"},{"name":"sandbox.allowNestedUserNamespaces","slug":"sandbox-allownestedusernamespaces","description":"Let [sandboxed](https:\/\/code.claude.com\/docs\/en\/sandboxing.md#chromium-or-rootless-podman-fails-inside-the-sandbox-on-linux) commands create user namespaces on Linux and WSL2"},{"name":"sandbox.bwrapPath","slug":"sandbox-bwrappath","description":"Point the [sandbox](https:\/\/code.claude.com\/docs\/en\/sandboxing.md) at a bubblewrap binary outside `PATH`"},{"name":"sandbox.credentials","slug":"sandbox-credentials","description":"Hide or mask credential files and variables inside the [sandbox](https:\/\/code.claude.com\/docs\/en\/sandboxing.md#protect-credentials)"},{"name":"sandbox.credentials.awsPairs","slug":"sandbox-credentials-awspairs","description":"Link custom-named AWS key variables into one credential for [re-signing](https:\/\/code.claude.com\/docs\/en\/sandboxing.md#re-sign-aws-requests)"},{"name":"sandbox.credentials.files","slug":"sandbox-credentials-files","description":"Block or mask reads of a credential file inside the [sandbox](https:\/\/code.claude.com\/docs\/en\/sandboxing.md#mask-credential-files)"},{"name":"sandbox.enabled","slug":"sandbox-enabled","description":"Turn on [Bash sandboxing](https:\/\/code.claude.com\/docs\/en\/sandboxing.md#get-started) on macOS, Linux, and WSL2"},{"name":"sandbox.excludedCommands","slug":"sandbox-excludedcommands","description":"Name commands Claude Code can run outside the [sandbox](https:\/\/code.claude.com\/docs\/en\/sandboxing.md)"},{"name":"sandbox.failIfUnavailable","slug":"sandbox-failifunavailable","description":"Refuse to start when the [sandbox](https:\/\/code.claude.com\/docs\/en\/sandboxing.md) can't, instead of running unsandboxed, except in an Anthropic-hosted environment"},{"name":"sandbox.filesystem","slug":"sandbox-filesystem","description":"Control which paths [sandboxed](https:\/\/code.claude.com\/docs\/en\/sandboxing.md#filesystem-isolation) commands can read and write"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/sandbox-autoallowbashifsandboxed","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}