⌨️sandbox.enabled
Also known as sandbox enabled setting, "sandbox" key
The key that runs Claude's shell commands inside a sandbox.
Think of it like
It is like putting a toddler in a play pen. They can play, but only inside the fence.
Example
Lucy lets Claude run tests in a repo she does not know well. She turns the sandbox on, so a bad script cannot touch her home folder.
Why it matters
A shell command can do all that you can. The sandbox cuts that down to what the job needs.
Definition
Example code
json
{
"sandbox": {
"enabled": true
}
}Common mistake
Key takeaways
- 1Fences Bash commands. Files and network.
- 2Off by default. false.
- 3Linux needs tools. bubblewrap, socat.