About

What Is Claude Code Sandbox Mode? File and Network Isolation

Claude Code

Turn it on with /sandbox and see fewer permission prompts

Claude Code's open-source sandbox runtime isolates the file system and network to enhance safety while reducing permission prompts. It runs on your local machine and prevents code from modifying unexpected files or making network requests.

How to Use

1

Activate sandbox mode with /sandbox command

2

File isolation: Blocks access outside the project directory

3

Network isolation: Only allowed hosts are accessible

4

Permission prompts are significantly reduced within the sandbox

Tags

#sandbox #security #isolation #file #network

Source

Boris Cherny (@bcherny)

← Pre-Approving Permissions in Claude Code with /permissions Customizing the Claude Code Status Line with /statusline →