# The sandbox

> Where the agent's commands run, and what they cannot reach.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://agent.docs.sypnia.com/safety/sandbox/

For agents: Every command runs in a sandbox: local (a container or microVM via the runner; Linux namespaces/seccomp, macOS and Windows through a lightweight VM) or hosted (one isolated task per agent task on AWS, destroyed afterwards). Properties: the workspace is a copy (the agent's branch), no inbound network, egress through a proxy with an allowlist (package registries, the project's own preview hosts, Sypnia APIs), no access to the person's home, keychain, SSH keys or cloud credentials; CPU/memory/time limits; every command and network request logged.

The agent never runs commands directly on your machine or with your access. Every command runs in a **sandbox**.

|                  | In your terminal                                                       | In Sypnia Cloud                                      |
| ---------------- | ---------------------------------------------------------------------- | ---------------------------------------------------- |
| Where            | a container or a light virtual machine started by the runner           | an isolated machine per task, destroyed when it ends |
| The files        | a copy of the project, on the agent's branch                           | a clone of the repository, on the agent's branch     |
| Network in       | none                                                                   | none                                                 |
| Network out      | through a proxy, only to allowed addresses                             | the same                                             |
| Your credentials | not reachable: no home folder, keychain, SSH keys or cloud credentials | never present                                        |
| Limits           | CPU, memory and time per command                                       | the same, per task                                   |

## The allowed addresses

By default: package registries (npm, PyPI, crates.io and the like), the project's own preview addresses, and the Sypnia APIs the task needs. Anything else is in **ask once per task** ([permissions](https://agent.docs.sypnia.com/safety/permissions)).

## Everything is logged

Every command, its exit code and output, and every network request (address and size, not content) is in the task's log, which you can read during and after the task.
