Dev.to AI 🤖 Ai 👁 0 📖 1 min read

Learn Claude Code: /sandbox

Run code you don't trust without handing it the keys to your filesystem or network. Description Toggles sandbox mode, which restricts file and network access during the session — block reads of sensitive path

Cover image for Learn Claude Code: /sandbox
Eduardo Aguilera
Eduardo Aguilera

Posted on Jun 17 • Originally published at aguilera.ee

Learn Claude Code: /sandbox

Run code you don't trust without handing it the keys to your filesystem or network.

Description

Toggles sandbox mode, which restricts file and network access during the session — block reads of sensitive paths, pre-approve or block network domains, or route traffic through your own proxy for inspection.

Use case

You're testing a sketchy npm package's install script before trusting it in your real project. You flip on /sandbox so it can't reach the network or touch files outside the project, then watch what it actually tries to do.

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.