Command reference ยท Claude Code
/sandbox
Toggles Sandbox mode.
Only available on supported platforms.
โ WHEN TO USE IT?
Test risky commands in isolation
Before running unfamiliar, generated code, enable /sandbox to run it in isolation (on supported platforms).
Turn sandbox back off after the task
After finishing the risky step, call /sandbox again to switch back to normal mode.
โ WHEN NOT TO?
Unsupported platform
Per the docs, sandbox mode is only available on supported platforms.
Better: Check the sandboxing docs for whether your platform is supported before expecting the command to work.
SOURCES
- Claude Code Doku (offiziell) โ code.claude.com