AI agent sandbox: what it is, and what it doesn't protect
· Avi Agola, The Seattle Compute Company
"Sandbox" is one of those words that sounds like a safety guarantee and mostly isn't one. It describes where an agent runs. It says very little about what the agent is allowed to do once it's there. This page explains what an AI agent sandbox is, what it protects against, and what it leaves wide open.
What a sandbox is
An AI agent sandbox is a walled-off environment for one agent. Inside it the agent has its own files, its own processes and, if it uses a browser, its own browser profile. Outside it, nothing of yours is in reach.
Think of giving each new hire their own desk and their own laptop instead of letting everyone share one login. If one of them spills coffee, it stays on their desk.
For agents that use a screen, the sandbox is usually a whole computer: a desktop with a real browser the agent drives the way a person would. That is the setup behind a computer use agent. Smith works this way, giving each agent its own isolated computer with a real browser, alongside its own Slack handle and email address.
What a sandbox does protect
- Your machine. The agent isn't running on your laptop or your servers, so a bad command can't delete your files.
- Other agents. One agent's files, browser sessions and cookies are invisible to another. That is what people mean by AI agent isolation.
- Blast radius. If an agent gets confused or tricked by a hostile web page, the mess stays inside its box.
- Clean starts. You can stop or rebuild one agent's environment without touching anyone else's.
What a sandbox does not protect
This is the half vendors skip.
- Actions with a real account. If the agent is signed into your CRM, the sandbox won't stop it from editing the wrong record. The wall is around the computer, not around the account.
- Bad instructions. An agent that was told to do the wrong thing, or was fooled by a message pretending to be you, will do it neatly inside its box.
- Leaked credentials. If a password is sitting in the agent's environment, anything that environment can read, the agent can read.
- Accountability. A sandbox doesn't record who did what. That takes a separate log.
That's why the sandbox is one control out of several. Our fuller checklist is in keeping AI agents safe.
What goes around the sandbox
Three things turn a walled-off computer into something you can actually trust with work.
Credentials kept in a vault. Logins shouldn't live inside the agent's environment. A vault holds them, and the agent uses them without carrying them around.
A clear identity. Either the agent works under a delegated login that belongs to a person, or it has an account of its own. Which one you pick changes what your logs can tell you. We compare them in delegated vs agent-owned identity.
A record per action. Every action traced to the agent that took it. Without that, an agent running under an employee's login looks exactly like the employee, which is the problem described in shadow AI agents.
Smith combines these: an isolated computer per agent, credentials in a vault, delegated or agent-owned accounts, and an audit of each action.
Questions to ask a vendor
| Question | What a good answer sounds like | Red flag |
|---|---|---|
| Where does each agent run? | Its own separate environment | "Shared workers" or a pool |
| Can one agent see another's files or sessions? | No, and they can explain why | Vague or "it shouldn't" |
| Where are the logins stored? | In a vault, not in the agent's environment | Pasted into prompts or config |
| Whose account is the agent using? | A named delegation or its own account | "Your login, same as you" |
| Can I see what it did? | A record of each action, per agent | A chat transcript only |
| Can I stop it, and take over? | Yes, mid-task | Only after the current job ends |
| What happens at a 2FA prompt? | It asks a person or clears one it owns | It fails silently or loops |
None of these need a security degree to check. If a vendor can't answer them plainly, the sandbox is a marketing word.
Choosing how much isolation you need
Match the wall to the work. An agent that only drafts text needs little. An agent that logs into portals, sends email and handles other people's data needs its own environment, its own identity and a record you can read later. See AI agents for small teams for how this plays out day to day, and what an AI employee is for the bigger picture.
FAQ
What is an AI agent sandbox?
A separate environment, usually its own virtual machine or container, where one agent runs. Its files, browser profile and processes are kept apart from other agents and from your laptop.
Does a sandbox make an agent safe?
No. It limits where a mistake can spread. It does not stop an agent from doing something wrong with an account it is allowed to use. You still need scoped access and a record of what it did.
Is a sandbox the same as AI agent isolation?
They are close. A sandbox is the walled environment itself. Isolation is the wider goal: one agent's files, sessions and credentials never visible to another.
Can a sandboxed agent still use real accounts?
Yes, and for most useful work it has to. The question is how: through a delegated login or its own account, with credentials held in a vault rather than pasted into the agent's environment.
Email acme@agents.seattlecompute.com and an agent writes back.