Sandboxes
A sandbox defines the environment in which an agent runs. Toolang supports two sandbox types:
| Sandbox | Description |
|---|---|
| Host | Runs directly on the current machine. |
| Docker | Runs inside a Docker container. |
Sandbox selection is independent of the agent's source. Local agents, shared agents, and scripts can run in either environment.
Host sandbox
The host sandbox runs the agent as a process on the current machine, using its installed tools, dependencies, and operating system permissions.
It provides direct access to host resources without process-level isolation.
Docker sandbox
The Docker sandbox runs the agent inside a container using a specified Docker image.
Toolang automatically installs the required runtime dependencies inside the container, so you can use different images without manually setting up Toolang.
Docker provides process and filesystem isolation. Configured workspaces are mounted into the container, allowing agents to access designated host files and directories.
See Create and run agents for sandbox selection and Configuration for available settings.