pip install universal-sandbox
One SDK for every
sandbox provider
Stop rewriting code when you switch sandbox providers.
Switching cloud providers shouldn't mean rewriting your sandbox integration. Universal Sandbox gives you one API that works everywhere—E2B, AWS, Volcengine, and Alibaba Cloud. Same interface, any provider.
from universal_sandbox import Sandbox
client = Sandbox()
sbx = client.code_interpreter.create()
result = client.code_interpreter.execute(sbx.id, command="print('Hello')")
print(result.stdout)Node.js SDK and Go SDK are also available.
Features
Unified Interface
Same API across all providers. Switch with a single parameter.
Three Sandbox Types
Code interpreter, browser automation, and all-in-one environments.
Context Managers
Automatic resource cleanup with Python's with statement.
Type Hints
Full type annotations for better IDE support and code safety.
VNC & MCP Support
Remote desktop access and Model Context Protocol integration.
Multi-Region
Deploy to 16+ AWS regions, global E2B, Volcengine cn-beijing, or Alibaba Cloud cn-hangzhou.
Providers
Switch providers with one line of code. See detailed comparison.
E2B
Fast sandbox creation with global availability
Global
AWS Bedrock
Managed code interpreter in 16+ regions
us-east-1, us-west-2, eu-west-1, ...
Volcengine
ByteDance cloud with MCP and VNC
cn-beijing
Alibaba Cloud
Code interpreter, browser, and AIO with agentrun-sdk
cn-hangzhou, cn-beijing, ap-southeast-1, ...
Sandbox Types
| Type | Description | Providers |
|---|---|---|
| code_interpreter | Python code execution | E2B, Volcengine, AWS, Alibaba Cloud |
| browser | Browser automation with WebSocket | E2B, Volcengine, Alibaba Cloud |
| aio | All-in-one with MCP and VNC | Volcengine, Alibaba Cloud |
Examples
from universal_sandbox import Sandbox
client = Sandbox()
sbx = client.code_interpreter.create()
result = client.code_interpreter.execute(sbx.id, command="print('Hello World!')")
print(result.stdout)
# Use AWS Bedrock
sbx_aws = client.code_interpreter.create(provider="aws")
result_aws = client.code_interpreter.execute(sbx_aws.id, command="import math; print(math.pi)")
print(result_aws.stdout)Showcase
See what developers are building with Universal Sandbox.

Broken Links Checker
A Python-based tool that crawls websites to identify broken links using the Universal Sandbox browser environment.

Broken Links Checker (Node.js)
A Node.js-based tool that crawls websites to identify broken links using the Universal Sandbox browser environment.

AI Pulse
Your comprehensive directory for latest AI news, influencers, resources, tools, and learning materials.
Simple, Transparent Pricing
Start building with sandboxes today. Upgrade anytime as your needs grow.
Free
Get started with sandboxes for free. Perfect for trying out the platform and exploring all sandbox types.
- 3 sandboxes total
- All sandbox types (Code, Browser, AIO)
- Community support
Plus
Perfect for individual developers and small projects getting started with sandboxes.
- 50 sandbox hours/month
- All 4 providers (E2B, AWS, Volcengine, Alibaba)
- All sandbox types (Code, Browser, AIO)
- Email support
Pro
For teams and production workloads requiring full access to all providers and features.
- Unlimited sandbox hours
- All 4 providers (E2B, AWS, Volcengine, Alibaba)
- All sandbox types (Code, Browser, AIO)
- VNC & MCP support
- Priority support