OpenSandbox provisions isolated environments where agents run commands, edit files, and use browsers or desktops. Start locally with Docker and scale the same API on Kubernetes.
Overview
OpenSandbox is a sandbox runtime aimed at AI agent workloads. It gives agents isolated environments to execute code, run shell commands, manage files, and automate browsers or full desktops while integrators control networking and credentials from outside the sandbox.
Local development uses Docker with a sandbox server and language SDKs for Python, TypeScript, Java, Go, and .NET, plus an osb CLI and MCP server for editor and agent clients. Kubernetes deployment adds a fast runtime built around Firecracker microVMs with documented warm-start timings and pause or resume preserving memory and disk state.
Operational controls include ingress and egress policies per sandbox, a credential vault that injects outbound secrets without exposing them inside workloads, resource pools, and batch creation for evaluation and reinforcement-learning style trials. Examples cover coding agents, code interpreters, Playwright automation, and benchmark harnesses.
The project is part of the Agentic AI Foundation and publishes official container images to multiple registries. Documentation covers architecture, deployment, API contracts, and release verification practices for production pinning.
Key features
- Docker local sandbox server
- Kubernetes Firecracker runtime
- Unified sandbox lifecycle API
- Per-sandbox network egress policies
- Credential vault for outbound calls
- Multi-language SDKs and CLI
- MCP server integration
- Pause and resume sandbox state
Use cases
- Running coding agents safely
- Browser and desktop automation sandboxes
- Parallel agent evaluation trials
- Model-generated code execution
- RL and batch training workloads