website/src/content/docs/agent-os/versus-sandbox.mdx
| agentOS VM | Full Sandbox | |
|---|---|---|
| Cost | Very low. Runs in your process. | Pay per second of uptime. |
| Startup | Near-zero cold start (~6 ms). | Seconds to spin up. |
| Backend integration | Direct. Host tools call your functions with zero latency. | Indirect. Requires network calls back to your backend. |
| API keys | Stay on the server via the LLM gateway. | Must be injected into the sandbox environment. |
| Permissions | Granular, deny-by-default. | Coarse-grained (container-level). |
| Infrastructure | npm install | Vendor account + API keys. |
| Best for | Coding, file manipulation, scripting, API calls, orchestration. | Browsers, desktop automation, native compilation, dev servers. |
Use the lightweight VM for most agent workloads:
Spin up a sandbox when the workload needs a real Linux kernel:
Use agentOS with sandbox mounting for workflows that need both: