Agent Sandbox is a Kubernetes-native orchestrator for stateful, singleton sandbox workloads suited to AI agents, code execution, and reinforcement learning loops.
Overview
Agent Sandbox provides a declarative API and controller for managing long-running, isolated container environments on Kubernetes. Each sandbox is modeled as a single stateful pod with stable identity, optional persistent storage, and lifecycle controls such as pausing, resuming, and scheduled deletion.
The core Sandbox custom resource is complemented by extensions including reusable templates, warm pools for fast allocation, and claims that hand out pre-warmed sandboxes. Low-level isolation is delegated to sandbox runtimes such as gVisor or Kata Containers via RuntimeClass, while an optional HTTP reverse proxy can route client and SDK traffic to sandbox pods.
Operators install the controller and CRDs on a cluster meeting stated Kubernetes version requirements, then create sandboxes through YAML or through Go and Python SDKs. Typical motivations include isolated developer environments, untrusted code from LLM agents, RL evaluation sandboxes, persistent notebook-style sessions, and single-instance services that need stable host identity.
The design emphasizes vendor-neutral runtime choice, programmable consumption of the Sandbox API, and characteristics such as strong isolation, hibernation, and efficient persistence described in project documentation.
Key features
- Sandbox custom resource and controller
- Stable hostname and network identity
- Persistent storage across restarts
- Pause and resume lifecycle
- SandboxTemplate and SandboxWarmPool extensions
- SandboxClaim for warm-pool allocation
- Go and Python SDKs
- Optional Sandbox Router HTTP proxy
Use cases
- AI agent code execution
- Reinforcement learning evaluation sandboxes
- Isolated developer environments
- Untrusted code interpreters
- CI/CD isolated testing