Updated · Markdown

What a secure sandbox for AI agents is, and how to run agents in one

Updated 2026-11-29. Written by the team that builds Tex, so weigh it accordingly.

Short answer: a sandbox is where an agent runs commands without being able to harm anything else. A secure one does four things: it isolates each run from other runs and from the host, it limits the network to the places the job needs, it keeps long-lived secrets out of reach of the agent, and it records what happened. Containers give some isolation. MicroVMs, such as Firecracker-based ones, give each run its own kernel, which is stronger.

Why it matters for agents

An agent reads untrusted text: web pages, issues, emails, advisories. Any of it can carry instructions meant to steer it (prompt injection). So assume an agent may at some point try to do something you didn't ask for. The sandbox decides what that attempt can reach.

What to look for

How Tex does it

Questions people ask

Can an agent reach my internal network? Only what its egress list names, and only over the proxy.

Can one customer's agents see another's? No. Each organization's sessions, knowledge bases and secrets are its own, and the database scopes every query to one organization.

Can I run the sandbox on my own infrastructure? Not on the hosted service. Tex runs on AWS in us-west-2.

Try Tex with $10 of free credit