Glossary

Agent Sandbox

A fenced area for an agent to act in. Code runs, tools execute and files are written inside a boundary with limited permissions, no unexpected network paths and nothing the agent can reach that it was not given.

General definition

An Agent Sandbox is the containment layer for an agent’s actions. Modern agents do more than generate text: they run shell commands, execute generated code, browse the web, call APIs and read and write files through tool calling. Each of those is an action with side effects, taken by a model that can be wrong or can be manipulated by text it reads. The sandbox limits what those actions can touch, so the worst case is a wasted run rather than a breach.

  • Process isolation: a container, a lightweight virtual machine or a WebAssembly runtime per agent task, discarded afterwards
  • Filesystem scope: a working directory with the files the task needs and nothing else, often read-only outside it
  • Network policy: no outbound access by default, with an allow list for the hosts a tool legitimately needs
  • Credential scoping: short-lived, least-privilege tokens injected per task instead of long-lived keys in the environment
  • Resource limits: CPU, memory, time and output size caps so a loop or a fork bomb cannot take the host down

Two attack paths make this essential. Prompt injection is text in a web page, document or message that instructs the model to do something its operator did not intend, such as reading a secret and posting it somewhere. Data exfiltration is the outcome: data leaving through a tool call, an outbound request or a file. A sandbox cannot stop the model from being fooled, but it can make the fooled action harmless by removing the network path, the credential or the file access that the exfiltration would need. It belongs alongside AI guardrails, which filter inputs and outputs, not instead of them.

Sandboxes are available as hosted code-execution services from model vendors and cloud providers, and as self-hosted stacks built on containers, micro-virtual-machines or WebAssembly. Self-hosting is the norm when the code or the data the agent works on is itself sensitive, because a hosted sandbox means shipping that data to the sandbox provider.

In the Ethora ecosystem

Ethora does not pretend to be a code-execution sandbox, and an agent that needs to run arbitrary code should run it in a dedicated one. What Ethora controls is the boundary around the agent as a participant: an agent in the AI SDK belongs to specific rooms and channels, sees only their transcripts and the knowledge base it was given, and reaches files only through room membership. Tools are enabled by the app owner rather than by the agent itself, and the MCP server exposes a documented set of tools and resources behind authentication, so an MCP client such as Claude works through a defined interface rather than with direct server access.

The surrounding controls make a compromised turn visible and reversible. The Trust and Safety system screens what agents post, can quarantine a message and report it to your systems, and can remove accidentally shared sensitive data immediately or after a delay; the server-side archive and the immutable audit log export record what the agent said and did. On a self-hosted or dedicated deployment the chat server, your sandbox and, with a local model, the inference can all live inside one network with no outbound path to a third party, which is the architecture that makes exfiltration hard rather than merely forbidden.

Get started

Build AI agents on your own stack

Ethora’s AI SDK brings agents, RAG and self-hosted LLMs into your product. Talk to our team.

Start Free
Free tier available Enterprise SLA No vendor lock-in