Skip to content
ITG Now
Follow

Home › AI glossary › Sandbox

What is a sandbox in software?

Short answer

A sandbox is a safe, fenced-off space where code can run without being able to harm the rest of your computer.

  • Category Building with AI
  • Also called sandboxed, sandboxing
  • Updated 20 Oct 2026
Share

Sandbox, explained simply

Think of a child's sandbox. Kids can play and make a mess, but the mess stays inside the box.

In software, a sandbox limits what a program can touch. It can't easily read your files or change your settings.

This matters for AI tools that run code for you. A sandbox keeps a mistake from spreading to your real files.

For example, a coding assistant can test a script inside a sandbox first.

On ITG Now, our free tool guides and news stories mention sandboxes when an AI tool runs code or acts on your computer.

ContainerVirtual machineAI agentAI coding agentGuardrails

Where you'll see it on ITG Now

Questions people ask about Sandbox

Is a sandbox completely safe?

No. It lowers the risk a lot, but bugs in the sandbox itself can sometimes let code escape.

Sandbox vs virtual machine: what is the difference?

A virtual machine is one way to build a sandbox. A sandbox is the wider idea of fencing code in.

Why do AI agents use a sandbox?

Agents can run commands on their own. A sandbox limits the damage if they make a mistake.

Sources

Last updated

Share

Browse all 200 AI terms