# Repository Briefing: opensandbox-group/OpenSandbox
> Source: https://repoforai.com/repo/opensandbox-group/OpenSandbox (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/opensandbox-group/OpenSandbox
- **Official Docs / Website**: https://open-sandbox.ai
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Go
- **License**: Apache-2.0
- **Engineering Health**: A+ (97/100 · Maintenance 35/35 · Adoption 22/25 · Releases 20/20 · License 20/20)
- **Latest Release**: release-1.3.0 (2026-11-30) — https://github.com/opensandbox-group/OpenSandbox/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI, API
- **Momentum**: 18,151 ★ total (+19 24h / +191 7d) · 1,775 forks
- **Topics**: `aaif`, `ai`, `ai-agent`, `ai-infra`, `kubernetes`, `sandbox`
- **When to Use**: Best for: Teams building coding agents, browser automation, or evaluation systems that need isolated execution on their own infrastructure and a common API from local Docker to Kubernetes. Skip if: A trusted internal job only needs a disposable container, or your team wants a managed service without owning runtime upgrades, network controls, and artifact verification.

## Overview
```text
### Architecture & Core Mechanics
OpenSandbox is an execution substrate for agents, not an agent framework or model server. A Python FastAPI control plane exposes a common lifecycle API over Docker, Kubernetes, and Fast Sandbox backends. Execution is separate: `execd` provides in-sandbox operations, while workload ports and an optional ingress gateway expose services running inside a sandbox. Egress enforcement and Credential Vault handle outbound policy and credential injection separately from lifecycle orchestration.

The repository layout reflects those boundaries: `server/`, `components/`, `kubernetes/`, and `manifests/` cover the runtime and deployment, while `specs/`, `sdks/`, and `cli/` cover contracts and client access. Applications can use SDKs in Python, Java/Kotlin, JavaScript/TypeScript, C#/.NET, or Go, or operate through the `osb` CLI. The MCP adapter exposes a narrower set of creation, command, and text-file operations. The optional developer console provides a web UI and a backend for that UI.

### Key Capabilities & Differentiators
A sandbox provides command execution, file operations, and an environment for running code. Examples cover coding agents, code interpretation, Playwright and Chrome, desktops, and per-trial agent evaluation. The platform supports warm client pools with optional Redis coordination, snapshots, and idle auto-pause with wake-on-access. Runtime options include standard containers, Kata, and confidential PeerPods; `execd` init mode is on by default, but privilege reduction is opt-in.

On Kubernetes, Fast Sandbox combines Firecracker with OverlayBD and supports full memory-and-disk pause and resume. Its published benchmark reports median create API acknowledgment (`t_api_ack`) of 65.3 ms serial and 70.9 ms at 16-way concurrency, up to 800 live MicroVMs per Fastlet, and about 10.2 MiB of Firecracker PSS and 17.5 MiB in host memory delta per 2 GiB sandbox. API acknowledgment is not workload readiness, and the density result should not be used as a capacity guarantee for a different workload.

### Trade-offs & Limitations
The common API is most valuable when more than one application needs the same execution and lifecycle contract. For a single trusted internal runner, direct Docker has fewer moving parts if the application already owns timeouts and cleanup. For a cluster-only batch workload that needs no interactive command or file API, native Kubernetes resources may suffice. A managed sandbox service is worth comparing when operating nodes and runtime upgrades is not part of the team's remit; self-hosting gives the team control over placement and policy but leaves it responsible for both.

A common API does not make container and VM isolation equivalent or give every backend the same performance and lifecycle behavior. Before a multi-tenant rollout, test the required isolation boundary, verify egress restrictions and credential handling, and measure readiness, pause/resume, and failures under actual load. The code is Apache-2.0; documentation licensing is handled separately in `CONTRIBUTING.md`, and redistributed workload images warrant their own license review.

### Hardware & Deployment Guide
For a local deployment, start with Docker, Python 3.10+, and `uv`. Generate the Docker example configuration with `uvx opensandbox-server init-config ~/.sandbox.toml --example docker`, then run `uvx opensandbox-server`. If `server.apikey` is configured, set `OPENSANDBOXAPIKEY` for SDK calls or `connection.apikey` for `osb`. The local CLI example connects to `localhost:8080` over HTTP, creates a sandbox, executes a command, and explicitly deletes the sandbox. No model service or GPU is listed as a prerequisite for this path.

For Kubernetes, validate the selected runtime on the target nodes before committing to a rollout. Load-test CPU, memory, and storage with representative images and workloads, and verify ingress and egress policy from a running sandbox. Release `1.3.0` aligns the server, CLI, and all five SDK packages at `1.3.0` after four release candidates that published images but held package releases. Official images are available from Docker Hub, GHCR, and Alibaba Cloud Container Registry. Pin production images by digest and verify signing and provenance coverage separately: current umbrella releases have a tracked verification gap (issue `#2463`) compared with legacy per-component releases.
```

## Key Capabilities
```text
- Control and execution planes: FastAPI manages sandbox lifecycle; `execd` handles in-sandbox operations, with an optional ingress gateway for workload traffic.
- Fast Sandbox benchmarks: Firecracker and OverlayBD on Kubernetes report 65.3 ms serial and 70.9 ms at 16-way concurrency for median create API acknowledgment, with up to 800 live MicroVMs per Fastlet.
- Isolation choices: Standard containers, Kata, and confidential PeerPods; `execd` init mode is enabled by default, while privilege reduction is opt-in.
- Lifecycle controls: Redis-coordinated warm client pools, idle auto-pause with wake-on-access, and full memory-and-disk checkpoints on Fast Sandbox.
- Network controls: Per-sandbox egress policy, upstream proxy forwarding, and outbound credential injection via Credential Vault.
- Client interfaces: Five language SDKs, the `osb` CLI, and an MCP adapter for sandbox, command, and text-file operations.
```

## Quick Start / Clone
```bash
uvx opensandbox-server init-config ~/.sandbox.toml --example docker

# Start the local server. Because example.config.toml leaves server.api_key unset,
# type YES at the startup prompt (or pass OPENSANDBOX_INSECURE_SERVER=YES in
# non-interactive shells; if you set server.api_key in ~/.sandbox.toml, also
# export OPEN_SANDBOX_API_KEY=<your-api-key> for client calls).
uvx opensandbox-server

# Show help
# uvx opensandbox-server -h
```
