OpenSandbox

Active
GitHub Python Apache-2.0

Description

OpenSandbox is a multi-tenant sandbox execution environment for AI agents, providing secure isolated runtimes for arbitrary code and tool calls.

Key Features

  • General-purpose sandbox platform with multi-language SDKs for AI applications
  • Unified sandbox API hiding the differences between Docker and Kubernetes
  • Supports coding agents, GUI agents, agent evaluation, and AI code execution
  • CNCF Landscape project recognized by the industry
  • Multi-language SDKs including Python, Node.js, and Go

Use Cases

💡 Provide reproducible code execution environments for coding agents
💡 Safely run browser and desktop operations inside GUI agents
💡 Build a unified sandbox for agent evaluation and RL training
💡 Self-host a multi-tenant sandbox service inside the enterprise

Quick Start

# Install the Python SDK
pip install opensandbox

# Start a sandbox
from opensandbox import Sandbox
sb = Sandbox.create()
result = sb.exec("python -c 'print(1+1)'")
print(result.stdout)  # "2"
sb.close()

# Start a GUI sandbox
gui = Sandbox.create(type="gui", image="chrome")
gui.screenshot()

Related Projects