Files
wehub-resource-sync e0e362d700
SDK Tests / changes (push) Successful in 2m29s
Real E2E Tests / changes (push) Successful in 2m29s
Deploy Docs Pages / build (push) Has been cancelled
Deploy Docs Pages / deploy (push) Has been cancelled
Real E2E Tests / JavaScript E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Python E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Java E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / C# E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Go E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Real E2E CI (push) Has been cancelled
SDK Tests / SDK CI (push) Has been cancelled
SDK Tests / CLI Tests (push) Has been cancelled
SDK Tests / Python SDK Quality (code-interpreter) (push) Has been cancelled
SDK Tests / Python SDK Quality (sandbox) (push) Has been cancelled
SDK Tests / Python SDK Tests (code-interpreter) (push) Has been cancelled
SDK Tests / JavaScript SDK Quality And Tests (code-interpreter) (push) Has been cancelled
SDK Tests / JavaScript SDK Quality And Tests (sandbox) (push) Has been cancelled
SDK Tests / Python SDK Tests (sandbox) (push) Has been cancelled
SDK Tests / CLI Quality (push) Has been cancelled
SDK Tests / Kotlin SDK Quality And Tests (sandbox) (push) Has been cancelled
SDK Tests / Kotlin SDK Quality And Tests (code-interpreter) (push) Has been cancelled
SDK Tests / C# SDK Quality And Tests (code-interpreter) (push) Has been cancelled
SDK Tests / C# SDK Quality And Tests (sandbox) (push) Has been cancelled
SDK Tests / Go SDK Quality And Tests (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:39:33 +08:00

2.0 KiB

title, description
title description
SDKs Overview of OpenSandbox multi-language SDKs for sandbox lifecycle management and code interpretation.

SDKs

OpenSandbox provides SDKs in five languages covering sandbox lifecycle management, command execution, file operations, and code interpretation.

Sandbox SDKs

The core SDKs for creating and managing sandboxes.

Language Package Install
Python opensandbox pip install opensandbox
JavaScript/TypeScript @alibaba-group/opensandbox npm install @alibaba-group/opensandbox
Kotlin/Java com.alibaba.opensandbox:sandbox Gradle/Maven
Go github.com/alibaba/OpenSandbox/sdks/sandbox/go go get
C#/.NET Alibaba.OpenSandbox dotnet add package

Code Interpreter SDKs

Higher-level SDKs for multi-language code execution inside sandboxes. Built on top of the sandbox SDKs.

Language Package Install
Python opensandbox-code-interpreter pip install opensandbox-code-interpreter
JavaScript/TypeScript @alibaba-group/opensandbox-code-interpreter npm install @alibaba-group/opensandbox-code-interpreter
Kotlin/Java com.alibaba.opensandbox:code-interpreter Gradle/Maven
C#/.NET Alibaba.OpenSandbox.CodeInterpreter dotnet add package

MCP Server

The MCP server exposes sandbox operations to MCP-capable clients like Claude Code and Cursor.

pip install opensandbox-mcp

Common Patterns

All SDKs follow consistent patterns:

  1. Connection — Configure server address, protocol, and API key
  2. Sandbox creation — Specify image, entrypoint, timeout, environment, and resource limits
  3. Operations — Execute commands, manage files, run code
  4. Cleanup — Kill or let sandboxes expire via TTL