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.

Providers

Switch providers with one line of code. See detailed comparison.

E2B logo - fast sandbox provider with ~300ms cold start for AI agents

E2B

Fast sandbox creation with global availability

Global

AWS Bedrock logo - enterprise code interpreter with SOC2 and HIPAA compliance

AWS Bedrock

Managed code interpreter in 16+ regions

us-east-1, us-west-2, eu-west-1, ...

Volcengine logo - ByteDance cloud sandbox with MCP protocol support

Volcengine

ByteDance cloud with MCP and VNC

cn-beijing

Alibaba Cloud logo - multi-region sandbox for Asia-Pacific developers

Alibaba Cloud

Code interpreter, browser, and AIO with agentrun-sdk

cn-hangzhou, cn-beijing, ap-southeast-1, ...

Sandbox Types

TypeDescriptionProviders
code_interpreterPython code executionE2B, Volcengine, AWS, Alibaba Cloud
browserBrowser automation with WebSocketE2B, Volcengine, Alibaba Cloud
aioAll-in-one with MCP and VNCVolcengine, 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)

Simple, Transparent Pricing

Start building with sandboxes today. Upgrade anytime as your needs grow.

Free

$0/month

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
Get Started

Plus

$3.99/month

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
Get Plus
MOST POPULAR

Pro

$99/month

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
Get Pro
Trusted by 1,247 developers worldwide
99.9% Uptime
Enterprise Security
24/7 Support