OpenSandbox: Self-Hosted Sandbox Runtime for AI Agents
GitHub Repo
Apache-2.0
November 25, 2026 at 01:45 PM
0 views

OpenSandbox: Self-Hosted Sandbox Runtime for AI Agents

@opensandbox-groupProject Author

What OpenSandbox is

OpenSandbox is a self-hosted platform for giving AI agents and AI applications isolated environments in which to run code, execute shell commands, manage files and drive browsers or desktops. The README's one-line pitch is "Run AI agents in sandboxes on your own infrastructure", and the repository description reads "Secure, Fast, and Extensible Sandbox runtime for AI agents". It is licensed under Apache-2.0 and is listed as a project of the Agentic AI Foundation (AAIF). The repository lives at opensandbox-group/OpenSandbox, although many published artefacts still carry an Alibaba namespace (the Java group com.alibaba.opensandbox, the npm scope @alibaba-group, the NuGet package Alibaba.OpenSandbox), which hints at where the code started.

The problem it addresses is familiar to anyone building coding agents, code interpreters or evaluation harnesses: model-generated code has to run somewhere that is not the application server, with resource limits, a filesystem the agent can read and write, a controlled network path and a lifecycle (create, pause, resume, expire, delete) that can be driven from code. Hosted sandbox services solve this as a product; OpenSandbox is the do-it-yourself version. The README describes the path as "Start locally with Docker and deploy on Kubernetes through a unified sandbox API", so the same SDK calls are meant to work against a laptop Docker daemon and against a cluster.

The audience is platform and infrastructure engineers who run agent workloads at some scale, and application developers who want an E2B-style programming model without sending code to a third-party cloud. The documentation names concrete integrations: Claude Code, Codex CLI, Gemini CLI, Qwen Code, Kimi CLI and DeerFlow as coding agents; Playwright and Chrome for browser automation; VS Code Web and VNC desktops for remote development; and Harbor for evaluation runs with one sandbox per trial. The examples/ directory in the file tree has about thirty sub-folders, including LangGraph, Google ADK, Microsoft Agent Framework and a Windows example.

This page draws on the README, the architecture, deployment, execd, egress, Fast Sandbox and benchmark documentation, the CLI README, the E2B shim README, the roadmap and the GitHub release notes. It also covers a hands-on session with the published 1.2.1 Python packages, run on 25 November 2026 against a real Docker daemon. Starting a sandbox was not possible there, for reasons explained below.

Architecture: control plane, runtimes and data plane

The architecture document splits OpenSandbox into six "practical surfaces": a client surface (SDKs, the osb CLI and an MCP server), a protocol surface (OpenAPI contracts under specs/), a lifecycle control plane, runtime backends, a sandbox data plane, and a network and security plane. The stated rule is that SDKs depend on the public contracts, the server owns lifecycle orchestration, runtime providers own platform-specific resource creation, and in-sandbox operations belong to daemons running inside the sandbox.

Lifecycle server

The control plane is a FastAPI application written in Python (server/opensandbox_server), not a Go service, despite GitHub labelling the repository as Go. It handles request validation, API-key authentication, configuration, lifecycle orchestration, endpoint formatting and diagnostics. Its [runtime].type setting is strictly docker or kubernetes. In Docker mode a DockerSandboxService talks to the Docker daemon directly. In Kubernetes mode a CompositeSandboxService sends image- and snapshot-based requests to a Kubernetes service and template-based requests to a Fast Sandbox service, dispatching operations on existing sandboxes by ID prefix (IDs starting with fsb- go to Fast Sandbox). Server-managed records (snapshot metadata and the template catalogue) live in SQLite by default at ~/.opensandbox/opensandbox.db, or in PostgreSQL.

Runtime backends

  • Docker is the local and single-host backend. It pulls images (including per-request registry credentials), applies CPU, memory, GPU, capability, AppArmor, seccomp and PID settings, stages the execd binary from a configured image into the container, allocates host ports in non-host network modes and supports host, bridge, none, pasta, slirp4netns and user-defined networks. Snapshots are committed to local images.
  • Kubernetes delegates workload creation to a provider: the default batchsandbox, backed by OpenSandbox's own controller and BatchSandbox, Pool and SandboxSnapshot CRDs, or agent-sandbox, which targets the kubernetes-sigs/agent-sandbox project. Pools keep pre-warmed resources for fast allocation, and BatchSandbox can create many replicas at once for RL and evaluation workloads.
  • Fast Sandbox is an integration with the separate fast-sandbox platform, which provisions template-backed Firecracker microVMs inside pre-warmed "Fastlet" pods. The server talks to its FastPath control plane over gRPC. The docs say this removes "the per-sandbox Kubernetes scheduler, watch propagation, and kubelet path from the creation hot path". It is not a separate runtime type, only a route inside Kubernetes mode.

Data plane: execd, egress and ingress

Inside every sandbox runs execd, a Go daemon built with Gin that serves the execution API on port 44772 by default: shell commands streamed over Server-Sent Events, background commands with status and paged logs, persistent bash sessions, PTY terminals over WebSocket, file and directory operations, Jupyter-backed code contexts, CPU and memory metrics, and a /proxy/{port} reverse proxy. Clients reach execd directly through a resolved endpoint rather than through the lifecycle server. That is a deliberate split: lifecycle calls go to the control plane, while execution traffic goes to the sandbox, optionally through the Kubernetes ingress gateway. An access token can be enforced through the X-EXECD-ACCESS-TOKEN header.

The execd page describes layered security: the isolation runtime chosen at create time (runc, gVisor, Kata or a Firecracker microVM), an optional "hardening floor" that drops capabilities, sets no_new_privs, installs a syscall denylist and confines writes with Landlock, isolated namespace sessions, and an optional eBPF audit build. Each layer reports whether it is active, degraded or unsupported. Execd can also run as the sandbox's init process, reaping orphans and forwarding signals. The 1.3.0-rc.1 release notes say this execd-as-init mode becomes the server default.

Egress is a sidecar (or, for Fast Sandbox, a shared process per Fastlet pod) that enforces outbound policy. In dns mode denied domains fail resolution. In dns+nft mode nftables drops everything not explicitly allowed, with DNS-learned addresses getting bounded leases so that "allowed never silently becomes allowed forever". Operators can set platform overlays (deny.always, allow.always, a TCP port floor) that user policy cannot override, and the sidecar is fail-closed: if enforcement cannot be installed, it exits rather than running as a no-op. The Credential Vault builds on a transparent TLS interception layer that injects credentials into matching outbound requests so the secret never enters the sandbox. The docs call that interception layer "experimental but production-usable". Ingress is a Kubernetes-oriented HTTP/WebSocket reverse proxy that routes by header, URI or wildcard host.

Key features

  • One lifecycle API across runtimes: POST /v1/sandboxes accepts an image, a snapshot ID or a template ID, plus entrypoint, environment, metadata, resource limits (CPU, memory, GPU, writable-layer disk), platform constraints, volumes and a network policy.
  • SDKs in five languages: Python, Java/Kotlin, TypeScript/JavaScript, C#/.NET and Go, plus Code Interpreter SDKs that add Jupyter-style code contexts on top.
  • osb CLI: sandbox, template, snapshot, command, terminal, file, egress, credential-vault and diagnostics command groups, with table, JSON, YAML and raw output, and a plugin mechanism based on Python entry points.
  • MCP server: exposes sandbox creation, command execution and text-file tools to MCP clients such as Claude Code and Cursor, over stdio or streamable HTTP.
  • Bundled agent skills: osb skills install writes OpenSandbox-specific instructions into the config locations of Claude Code, Cursor, Codex, Copilot, Windsurf, Cline and OpenCode.
  • Pause, resume and snapshots: Docker uses container pause; BatchSandbox commits the root filesystem to an OCI image and recreates the workload; Fast Sandbox checkpoints memory and disk.
  • Per-sandbox egress policy and Credential Vault: FQDN, wildcard, IP and CIDR rules, port-scoped rules, runtime patching through the API, and secret injection without exposing the secret to the workload.
  • Pools and batch creation: server-side Pool CRDs and a client-side sandbox pool in the SDK, aimed at evaluation and RL training workloads.
  • Volumes: host bind mounts (with a configurable allow-list), Docker named volumes or Kubernetes PVCs through one pvc model, and Alibaba Cloud OSS through ossfs.
  • Diagnostics and observability: a diagnostics API for logs and events, execd metrics streams and OpenTelemetry export where configured.

Getting started

The README's local path needs Docker and Python 3.10 or newer. The server is a Python package, so the quick start runs it through uvx, generating a Docker-flavoured configuration first:

uvx opensandbox-server init-config ~/.sandbox.toml --example docker

uvx opensandbox-server

Then install the SDK and create a sandbox. This is the start of the README's Python example; the full version also writes, reads and executes a script before destroying the sandbox:

uv pip install opensandbox
import asyncio

from opensandbox import Sandbox
from opensandbox.models import WriteEntry

async def main() -> None:
    # 1. Create a sandbox from the alpine image
    sandbox = await Sandbox.create("alpine")

    try:
        # 2. Execute a shell command
        execution = await sandbox.commands.run("echo 'Hello OpenSandbox!'")
        print(execution.logs.stdout[0].text)

Note that the generated configuration leaves api_key commented out, and the server then refuses to start non-interactively unless OPENSANDBOX_INSECURE_SERVER=YES is set (see the hands-on section). For anything beyond a throwaway test, uncomment and set a key. The SDK reads it from OPEN_SANDBOX_API_KEY.

The CLI is a separate package. Its quick start configures a connection and then creates a sandbox and runs a command inside it:

pip install opensandbox-cli
osb config init
osb config set connection.domain localhost:8080
osb config set connection.protocol http
osb config set connection.api_key <your-api-key>
osb sandbox create --image python:3.12 --timeout 30m -o json
osb command run <sandbox-id> -o raw -- python -c "print(1 + 1)"

For agents that speak MCP, the README gives a one-line install and a minimal stdio configuration:

pip install opensandbox-mcp
opensandbox-mcp --domain localhost:8080 --protocol http
{
  "mcpServers": {
    "opensandbox": {
      "command": "opensandbox-mcp",
      "args": ["--domain", "localhost:8080", "--protocol", "http"]
    }
  }
}

Requests can also be described as files. The CLI accepts the public CreateSandboxRequest format with osb sandbox create -f, which makes it easy to keep resource limits and a default-deny network policy under version control:

{
  "image": "python:3.12",
  "timeout": 1800,
  "resourceLimits": { "cpu": "1", "memory": "2Gi" },
  "entrypoint": ["python", "-m", "http.server"],
  "networkPolicy": {
    "defaultAction": "deny",
    "egress": [{ "action": "allow", "target": "pypi.org" }]
  }
}

Kubernetes

The deployment guide requires Kubernetes 1.22+, Helm 3 and kubectl. Charts are installed from a checkout of a release tag ("standalone chart packages are not published"). The recommended route is an umbrella chart, with the ingress gateway enabled because sandbox Pods are ClusterIP-only:

helm install opensandbox opensandbox \
  --namespace opensandbox-system \
  --create-namespace \
  --set ingress-gateway.enabled=true

Order matters if components are installed separately: base (CRDs) first, then the controller, optionally fast-sandbox, the ingress gateway, and finally the server. The guide also points out that the server refuses to start without an API key in a non-interactive container, and shows how to supply one through a Kubernetes Secret.

Hands-on, 25 November 2026

Environment: a cloud Linux VM with Python 3.13.18, uv 0.11.32 and a working Docker Engine 29.9.3 daemon. Outbound access to container registries was blocked by the VM's egress proxy. Pulls from docker.io, from the GHCR mirror (ghcr.io/opensandbox-group/opensandbox/…) and from the Alibaba Cloud registry were all refused, so no sandbox container could be started, and no command, file, pause or snapshot operation could be exercised end to end. There was no Kubernetes cluster and no KVM/Firecracker host, so the Helm charts, BatchSandbox, the ingress gateway and Fast Sandbox were not tested. An attempt to build execd from source at the release-1.2.1 tag also failed, because the Go module proxy was unreachable and the module requires Go 1.25. Everything below comes from the PyPI packages at version 1.2.1, the latest stable release.

StepWhat happened
Download and verifypip download of opensandbox, opensandbox-server, opensandbox-cli, opensandbox-mcp and opensandbox-code-interpreter 1.2.1 (all uploaded 13 November 2026). The SHA-256 of every wheel matched the digest PyPI publishes, for example 67c9210a06cc… for the SDK and 25c6f8fc733d… for the server.
Install footprintThe five packages pulled in about 88 distributions and produced a 212 MB virtualenv. The server package brings the full kubernetes (37.0.3) and docker (7.2.0) clients, grpcio, psycopg, redis and OpenTelemetry even for Docker-only use. The SDK itself is light: httpx, pydantic, attrs and the OpenTelemetry API.
Entry pointsFour commands appear: osb, opensandbox (the same CLI under a second name, which shares the SDK package's name), opensandbox-server and opensandbox-mcp. osb --version reports 1.2.1.
init-config --example dockerWrote a 119-line TOML file: server on 127.0.0.1:8080, a 24-hour maximum sandbox timeout, Docker runtime with bridge networking and a 40000–60000 host-port range, nine dropped capabilities (including NET_ADMIN, SYS_ADMIN, SYS_PTRACE), no_new_privileges = true, pids_limit = 4096, SQLite store, egress in dns mode. The images it references are opensandbox/execd:v1.1.0 and opensandbox/egress:v1.1.7, both older tags than the 1.2.1 package. Re-running without --force refused to overwrite (exit 1). Without --example it rendered a 283-line skeleton with 15 sections.
Start without API keyStartup was aborted: "server.api_key is empty in non-interactive mode. Set OPENSANDBOX_INSECURE_SERVER=YES to acknowledge the risk." With that variable set, the server started and logged a warning.
Start with API keyUp within a few seconds. GET /health returned {"status":"healthy"}; /version returned 1.2.1. GET /v1/sandboxes without a key returned 401 MISSING_API_KEY; with the OPEN-SANDBOX-API-KEY header it returned an empty, paginated list.
OpenAPI surface/openapi.json is titled "OpenSandbox Lifecycle API", version 0.1.0, with 101 operations. 50 sit under /v1 (sandboxes, snapshots, pools, templates, diagnostics, endpoints, network policy, Credential Vault, the proxy, metrics events), and every /v1 route except /v1/metrics/events is also served without the prefix.
osb sandbox create --image python:3.12Failed after about 0.9 s with DOCKER::SANDBOX_IMAGE_PULL_FAILED. The error carried the Docker daemon's message and a request ID, and the server log showed an inspect-then-pull sequence. osb sandbox list afterwards was empty, so no half-created record was left behind. The pull failure came back synchronously as an HTTP 500 on the create call.
README Python exampleWithout a key it raised SandboxApiException (MISSING_API_KEY) in 0.05 s. With a key it raised SandboxApiException carrying the pull error. With no server listening it raised SandboxConnectionException after about 2.4 s; the default retry policy allows three retries with backoff.
SDK API surfaceSandbox exposes 32 public members, including create_from_template, create_snapshot, pause/resume/renew, get_egress_policy/patch_egress_rules, credential_vault, isolation, get_signed_endpoint and the diagnostics calls. Sandbox.create defaults to a 600 s sandbox timeout, a 30 s readiness timeout and 200 ms health polling. Pool classes (SandboxPool, AsyncSandboxPool, a Redis-backed extra) ship in the same package.
SDK request headersThe SDK sends an OPEN-SANDBOX-CLIENT-IP header containing the host's own interface address, read with getifaddrs according to the module docstring. It goes only to the configured server, but is worth knowing for multi-tenant or audited setups.
MCP serverOver stdio, opensandbox-mcp listed 21 tools: eight sandbox_* lifecycle tools, four command_* tools, eight file_* tools and sandbox_get_endpoint. Calling sandbox_create returned the same image-pull error as tool text, not as a protocol failure.
CLI config validationosb config set connection.protocol ftp and osb config set connection.bogus 1 both succeeded. The mistake only surfaced on the next command, as a pydantic ValidationError. The CLI README on main says config set validates keys and values, so that behaviour is evidently newer than 1.2.1.
Agent skillsosb skills list showed six bundled skills (the README lists five; credential-vault is the extra) and seven targets. Installing sandbox-lifecycle for Claude Code at project scope wrote a 371-line .claude/skills/sandbox-lifecycle/SKILL.md.
Deprecated commandsThe 1.2.1 CLI still ships osb devops, marked experimental with deprecated subcommands. The CLI README on main says it was removed, which the 1.3.0-rc.1 notes confirm for the next line.

The packaging and the control plane behave sensibly: hashes verify, the insecure-mode guard works, authentication is on when a key is set, and failures come back as structured, coded errors with request IDs. What could not be judged here is everything that happens after an image is pulled: execd behaviour, egress enforcement, pause/resume and the performance claims. A machine that can reach Docker Hub or GHCR is needed for that, plus a Kubernetes cluster for the BatchSandbox and Fast Sandbox paths. The npm package @alibaba-group/opensandbox was also checked on the registry (version 1.2.1, modified 13 November 2026) but not installed.

Performance claims, read carefully

The README's headline numbers are "Firecracker creation: 64 ms P50 (serial) / 125.4 ms P99 (10 concurrent)". These come from the Fast Sandbox performance page, which is unusually candid about what was measured and what was not. The measurements were taken on 8 October 2026 on a two-node ACK (Alibaba Cloud Kubernetes) cluster with 192-CPU AMD EPYC nodes and a pool of five Fastlets with four slots each, running server, controller and runtime agent release-1.1.1-rc.1. Template artefacts were already cached ("warm creates"), and the client polled readiness every 10 ms instead of the SDK default of 200 ms.

Measurement (docs)Successp50p99
SDK create, initial serial baseline100/10064.0 ms108.3 ms
SDK create, concurrency 10100/100102.7 ms125.4 ms
SDK create, concurrency 2051/100136.7 ms197.0 ms
commands.run('echo ack-perf')100/100202.8 ms207.1 ms
Same-node resume to guest ready (3 samples)3/362.66 s median58.29–65.16 s range

Three caveats stand out, all stated in the docs themselves. At concurrency 20, 48 of 100 creates failed with rate-limit or capacity rejections, and the page says the run "does not establish reliable 20-way admission or a sustainable requests-per-second rate". A simple command takes about 200 ms end to end because execd has a default 200 ms stream-close grace period. And while restoring the VM itself takes tens of milliseconds, a usable resume took about a minute in that deployment, and the cause was not isolated. The README's "pause/resume with memory and disk state preserved" is accurate, but the pause and resume path is slow today. None of this applies to the Docker runtime, which has no published numbers. A Go benchmark harness, opensandbox-bench, lives under benchmark/ for teams that want to measure their own clusters.

Use cases

  • Coding agents on private infrastructure: run Claude Code, Codex CLI, Gemini CLI or OpenCode inside a disposable container with a default-deny egress policy that allows only the package registries and model endpoint the agent needs. The Claude Code example installs the CLI inside the code-interpreter image and drives it in headless mode with session resume.
  • Code interpreter back ends: the Code Interpreter SDK and image (Python, Java, Node.js and Go runtimes with Jupyter kernels) cover the "execute model-generated code and return output" pattern behind chat-style data analysis.
  • Browser and desktop automation: Playwright, Chrome and VNC desktop examples expose the browser or desktop through sandbox endpoints.
  • Evaluation and RL rollouts: BatchSandbox, pools and client-side pools target workloads that need hundreds of short-lived, identical environments, such as one sandbox per evaluation trial.
  • Agents calling paid APIs: Credential Vault lets an agent use an API token through the egress sidecar without the token ever appearing in the sandbox's environment or filesystem, which limits the blast radius of a prompt-injected agent.
  • MCP tool for existing assistants: point an MCP-capable client at opensandbox-mcp to give it a sandbox for command and file work instead of the developer's own machine.

How it compares

Agent sandboxes are a crowded category. The table is a hedged orientation, based on OpenSandbox's own docs and the general positioning of the alternatives; it is not a feature-by-feature audit, and the alternatives' details should be checked on their own pages.

ProjectShapeRelationship to OpenSandbox
OpenSandboxSelf-hosted lifecycle server (Python), Go in-sandbox daemons, Docker or Kubernetes runtimes, optional Firecracker via fast-sandbox; SDKs in five languagesReference point
E2BBest known as a hosted sandbox service for AI code execution, with open-source SDKs and an in-sandbox daemon (envd)The closest programming model. OpenSandbox has a proposal (OSEP-0027) and a components/e2b-shim scaffold for E2B API compatibility, but the shim currently implements no E2B operation (see below). For teams that want E2B's API on their own hardware, that compatibility is not here yet.
OpenShellPositioned as a policy-enforced sandbox runtime for AI agentsOverlaps on policy-controlled agent execution. OpenSandbox puts more weight on a multi-tenant lifecycle API, pools and Kubernetes scale-out.
Agent SubstratePositioned as zero-trust agent sandboxes on KubernetesBoth target Kubernetes. Compare the isolation model and the API surface before choosing.
kubernetes-sigs/agent-sandboxA Kubernetes SIG project for agent sandbox workloadsComplementary rather than competing: OpenSandbox can use it as a workload provider (workload_provider = "agent-sandbox") instead of its own BatchSandbox controller.

For lighter-weight needs, such as running untrusted Python in-process or on a single workstation, projects like Monty or MXC occupy a different point in the design space; OpenSandbox is a platform with a server, a database and container infrastructure behind it. Its distinguishing traits, on the evidence of its docs, are the breadth of the client surface (five SDKs, CLI, MCP, skills), fail-closed egress with credential injection, and a path from a single Docker host to pooled Kubernetes and Firecracker capacity under one API.

The E2B shim, specifically

Because "E2B compatible" is the question many evaluators will ask, the shim's README deserves a direct quote: "Scaffold only. Gate 0 of OSEP-0027 is pending." The binary has adapter and router subcommands that validate configuration and serve /healthz; "every other path returns 404", and "no E2B SDK, envd, or Fast Sandbox combination has been tested". It is built and run like this:

make build
./bin/e2b-shim --help
./bin/e2b-shim adapter --config ./e2b-shim.json

Its configuration already names a pinned candidate (e2b==2.62.1, envd 0.8.0) and maps E2B template IDs to native template IDs, which shows the intended design. As of this release, though, existing E2B client code cannot be pointed at OpenSandbox.

Limits and trade-offs before adopting

  • Stable vs pre-release: the latest stable release is release-1.2.1 (13 November 2026). Three release-1.3.0-rc.N pre-releases followed (16, 19 and 23 November). The release notes say "rc releases publish images but hold packages", so PyPI and npm stay at 1.2.1 until 1.3.0 ships, while documentation on main already describes some 1.3 behaviour.
  • Young project, fast churn: the repository was created on 17 December 2025. Release notes cover data-loss races fixed in rc.2 (a renewal racing an expiration on Docker, a stale informer copy deleting a just-renewed sandbox on Kubernetes), an unknown-field change that now rejects previously accepted requests, and a removed CLI surface. The roadmap explicitly does not plan "declaring a stable v1 API" yet, and the OpenAPI document reports version 0.1.0.
  • Release verification gap: the README says current umbrella releases have "a tracked signing and provenance gap" and "must not be assumed to provide the same verification evidence" as the older per-component releases, which supported Cosign signatures. Pin images by digest.
  • Insecure defaults are opt-out, not absent: the generated Docker config has no API key and an empty bind-mount allow-list, which the file itself calls "not recommended for production". The server does refuse to start without a key unless explicitly acknowledged. The CLI stores the API key in plain text in ~/.opensandbox/config.toml (masked in osb config show).
  • Isolation depends on the runtime chosen: plain Docker with runc shares the host kernel. Stronger isolation needs gVisor, Kata or Firecracker. The egress docs note that gVisor does not support the nftables features the egress sidecar needs, so "Kata is the supported secure runtime" there, and transparent service-mesh sidecars conflict with egress by design.
  • Kubernetes requires several moving parts: CRDs, controller, ingress gateway (mandatory on Kubernetes) and server, installed in order from a git checkout, plus fast-sandbox for microVMs. High availability is currently scoped to PostgreSQL-backed snapshot coordination; a multi-replica lifecycle server is a roadmap item.
  • Fast Sandbox restrictions: the adapter rejects volume mounts and the credentialProxy.enabled flag, template mode fixes the workload shape (no per-request image, env or entrypoint), and the documented resume latency is about a minute.
  • Alibaba Cloud flavour: the default image registry in the examples is in cn-zhangjiakou, OSS is the only cloud object store with a built-in volume type, and the benchmarks ran on ACK. Docker Hub and GHCR mirrors exist for images.
  • Telemetry: the server logged that OpenTelemetry export is disabled by default ("Server and SDK metrics are noops"). No call home to a vendor endpoint was seen in this test, but the SDK does report the client host's IP to your server in a custom header.

Source discrepancies found

  • GitHub reports the primary language as Go, and Go files are indeed the most numerous (1,149 .go vs 1,039 .py files in the tree). But the lifecycle server, CLI, MCP server and the most complete SDK are Python; Go covers execd, egress, ingress, the node agent, the controller and the Go SDK.
  • The GitHub release release-1.2.1-rc.2 is not flagged as a pre-release, although its tag and notes describe a release candidate.
  • The README's Go SDK install path is github.com/alibaba/OpenSandbox/sdks/sandbox/go, while the repository is now opensandbox-group/OpenSandbox; the execd module at the 1.2.1 tag is still named github.com/alibaba/opensandbox/execd.
  • The deployment guide's checkout example uses release-1.1.0, and the 1.2.1 server's example configs reference execd v1.1.0 and egress v1.1.7 images, so check which image tags match the server version deployed.
  • The CLI README describes config set validation and the removal of osb devops; the published 1.2.1 CLI has neither change, and it bundles six skills where the README lists five.

Project activity

Checked 25 November 2026: latest release release-1.3.0-rc.3 (23 November 2026), 17,912 stars, licence Apache-2.0. That tag is a pre-release; the latest stable release is release-1.2.1 (13 November 2026). The GitHub API also reports 1,731 forks, 220 open issues and a last push on 25 November 2026. The repository is not archived and not a fork. Its topics include ai-agent, ai-infra, kubernetes and sandbox. Design work goes through numbered enhancement proposals (OSEPs), and the tree contains OSEPs up to 0033 (MCP-native OAuth). Release notes are detailed and link individual pull requests. Governance, charter and maintainer files are present, and the README links an OpenSSF Best Practices badge.

The repository is a monorepo of about 3,550 files: SDKs (about 1,070 files, half of them Python), components (execd, egress, ingress, node agent, e2b-shim), the Kubernetes controller, the Python server, a developer console, Helm charts under manifests/charts and the VitePress docs. The homepage is open-sandbox.ai. Packages are published as opensandbox on PyPI (plus opensandbox-server, opensandbox-cli, opensandbox-mcp and opensandbox-code-interpreter), @alibaba-group/opensandbox on npm, com.alibaba.opensandbox:sandbox on Maven and Alibaba.OpenSandbox on NuGet.

Teams running agents on Kubernetes may also want to look at Helm for the chart workflow, Podman (the Docker config mentions pasta/slirp4netns networking for rootless Podman), and the agents OpenSandbox is commonly used to host, such as Codex CLI and Gemini CLI.

Enjoying this project?

Discover more amazing open-source projects on TechLogHub. We curate the best developer tools and projects.

Project
opensandbox
Created
November 25
Last Updated
November 25, 2026 at 01:45 PM

Maintain OpenSandbox: Self-Hosted Sandbox Runtime for AI Agents? Add the badge to your README

Show that the project is featured on TechLogHub and send readers to this write-up.

Featured on TechLogHub
[![Featured on TechLogHub](https://techloghub.com/badge-neutral.svg)](https://techloghub.com/open-source/opensandbox?utm_source=techloghub_badge&utm_medium=referral&utm_campaign=readme)

Find more projects like this

One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.