⌨️sandbox.allowUnsandboxedCommands
Also known as allowUnsandboxedCommands, strict sandbox mode
The key that says if Claude may run a blocked command with no fence.
Think of it like
It is like a rule that a child stays in the pen. They may not climb out, not even for a ball.
Example
Emma's company wants no command to ever leave the sandbox. IT sets this key to false in managed settings.
Why it matters
Without it, a blocked command can still run with no fence once a person says yes.
Definition
Example code
json
{
"sandbox": {
"enabled": true,
"allowUnsandboxedCommands": false
}
}Common mistake
Key takeaways
- 1Retry outside. On by default.
- 2false is strict. No way out.
- 3Excluded still run outside. By list.