Quick definition · 2 min Coding term

Sandbox

A sandbox is an isolated, locked-down space where code can run without touching your files, your network, or the rest of your system.

Think of it like

Like a child’s sandbox: build and knock things down freely, and nothing escapes the box.

Example

When ChatGPT runs Python or Claude renders a web app, it executes in a sandbox, so a bad script cannot harm your machine.

Why it matters

It is what makes “let the AI run its own code” safe. Tools that run code in a loop are powerful, but only inside a sandbox.

Where you’ll see it
ChatGPT Code InterpreterClaude ArtifactsCodeSandboxDocker
Next step How to write code with AI → Why tools that run code close the loop: write, run, see the error, fix. ← All terms in the dictionary