Secure, Fast, and Extensible Sandbox runtime for AI agents.
# Add to your Claude Code skills
git clone https://github.com/opensandbox-group/OpenSandboxLast scanned: 11/28/2026
{
"issues": [
{
"file": ".agents/skills/opensandbox-pr-review/SKILL.md",
"line": 84,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl | sh\"",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-11-28T21:08:12.664Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}OpenSandbox is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by opensandbox-group. Secure, Fast, and Extensible Sandbox runtime for AI agents. It has 18,006 GitHub stars.
Yes. OpenSandbox passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/opensandbox-group/OpenSandbox" and add it to your Claude Code skills directory (see the Installation section above).
OpenSandbox is primarily written in Go. It is open-source under opensandbox-group on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh OpenSandbox against similar tools.
No comments yet. Be the first to share your thoughts!
Run AI agents in sandboxes on your own infrastructure.
OpenSandbox gives AI applications isolated environments to execute code, run commands, manage files, and operate browsers or desktops. Start locally with Docker and deploy on Kubernetes through a unified sandbox API.
Website · Quick Start · SDKs · Examples · Kubernetes · Fast Sandbox · Documentation
| Feature | What it enables | Learn more |
|---|---|---|
| Fast Sandbox runtime | Fast, high-density Firecracker + OverlayBD sandboxes on Kubernetes: 65.3 ms P50 (serial) / 70.9 ms P50 (16 concurrent) create (t_api_ack), up to 800 concurrent live MicroVMs per Fastlet, ~10.2 MiB Firecracker PSS (~17.5 MiB host memory delta) per 2 GiB sandbox, and full memory + disk pause/resume. |
Integration · Benchmarks · Pause/resume |
| Multi-tier isolation & hardening | Run workloads in standard containers or VM-isolated runtimes (Kata, confidential PeerPods), with default-on execd init mode, opt-in privilege reduction, and isolated in-sandbox sessions. |
Secure containers · Isolated sessions · Hardening |
| Agent working environments | Execute commands, manage files, and run code with built-in APIs, or host coding agents, browsers, and full desktops inside sandboxes. | Examples |
| Lifecycle, pools, and auto-pause | Start locally with Docker and scale on Kubernetes through one lifecycle API, with warm client pools (including Redis coordination), snapshots, and idle auto-pause with wake-on-access. | Kubernetes · Client Pool · Auto-pause |
| Network access control | Route inbound traffic through a unified ingress gateway and enforce per-sandbox outbound policies or upstream proxy forwarding. | Ingress · Egress · Forward mode |
| Credential Vault | Let agents call external services through outbound TLS credential injection without exposing real credentials to sandbox workloads. | Credential Vault |
| SDKs, CLI, MCP, and Console | Integrate with Python, Java/Kotlin, TypeScript/JavaScript, C#/.NET, or Go SDKs; operate sandboxes from the osb CLI, MCP clients, or the optional Developer Console. |
SDKs · CLI · MCP · Console |
| Extensible sandbox protocol | Build custom runtime integrations against defined OpenAPI contracts for lifecycle, execution, egress, and diagnostics. | API specs |
OpenSandbox separates lifecycle orchestration (FastAPI server + Docker, Kubernetes, or Fast Sandbox backends), direct data-plane execution (execd, workload ports, and optional ingress gateway), and outbound security controls (egress policy enforcement and Credential Vault). See the Architecture Overview for component boundaries and request flows.
Requirements:
uv (for zero-setup uvx / uv run execution)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
Save the script below as quickstart.py:
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)
# 3. Write a script file
await sandbox.files.write_files([
WriteEntry(
path="/tmp/hello.sh",
data="echo \"Hello $1\"\necho '2 + 2 =' $((2 + 2))",
mode=755,
)
])
# 4. Read the file back
content = await sandbox.files.read_file("/tmp/hello.sh")
print(f"Content: {content}")
# 5. Execute the script
execution = await sandbox.commands.run("sh /tmp/hello.sh OpenSandbox")
for log in execution.logs.stdout:
print(log.text)
finally:
# 6. Cleanup the sandbox
await sandbox.destroy()
if __name__ == "__main__":
asyncio.run(main())
Run it directly in an ephemeral environment with uv (no manual virtualenv setup required):
# If server.api_key is configured, export OPEN_SANDBOX_API_KEY=<your-api-key> first
uv run --with opensandbox python quickstart.py
Explore examples by what you want your agent to do. Runnable source code lives in examples/.
| Use case | What you can build | Examples |
|---|---|---|
| Coding agents | Run coding agents and frameworks in isolated environments to edit files, execute commands, and complete development tasks. | Claude Code · Gemini CLI · Codex CLI · LangGraph · DeerFlow |
| Code execution and data analysis | Execute model-generated code and work with results through the Code Interpreter SDK. | Code Interpreter |
| Browser, desktop, and IDEs | Automate web interactions and testing, or give agents and developers access to a browser IDE or desktop environment. | Playwright · Chrome · Desktop · VS Code |
| Agent evaluation | Run evaluations with a separate sandbox for each trial. | Harbor Evaluation |
See the full example catalog for more coding agents, framework integrations, remote development environments, Kubernetes deployment, and storage patterns.
Pick your language:
pip install opensandbox
dependencies {
implementation("com.alibaba.opensandbox:sandbox:{latest_version}")
}
<dependency>
<groupId>com.alibaba.opensandbox</groupId>
<artifactId>sandbox</artifactId>
<version>{latest_version}</version>
</dependency>
npm install @alibaba-group/opensandbox
</det