opensandbox
OpenSandbox Python SDK - Secure, isolated execution environments
Decision gist · record as of 2026-08-14
Yes, if you have access to an OpenSandbox service and need a Python client for sandbox lifecycle and command execution. The package is actively maintained, has low install friction, and covers both async and sync use cases. However, note the alpha status (Development Status :: 3 - Alpha) and verify API stability guarantees before adopting in production; also confirm that the optional Redis pool backend meets your deployment model.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an active OpenSandbox service endpoint (domain and API key); the SDK is a client library and does not run sandboxes locally.
- Low install friction with four lightweight runtime dependencies (attrs, httpx, pydantic, python-dateutil).
- Active maintenance with recent releases and a healthy repository signal (12930 stars, last commit 2026-08-14).
License · maintenance · safety
permissive license (permissive) — Apache License 2.0 is permissive; you may use, modify, and distribute this package freely in commercial and open-source projects, provided you include the license text and document any changes.
last release 2026-07-24 (21 days) · last repo commit 2026-08-14 · 12,930 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 185,249 downloads/mo, #10,014 on PyPI
Alternatives
Verify before relying
import asyncio
from opensandbox.sandbox import Sandbox
from opensandbox.config import ConnectionConfig
async def main():
config = ConnectionConfig(domain="api.opensandbox.io", api_key="your-api-key")
sandbox = await Sandbox.create("ubuntu", connection_config=config)
try:
execution = await sandbox.commands.run("echo 'Hello Sandbox!'")
print(execution.logs.stdout[0].text)
finally:
await sandbox.destroy()
asyncio.run(main())- Whether the optional Redis pool backend (opensandbox[pool-redis]) is production-ready or still alpha-stage.
- Performance characteristics and latency of sandbox creation and command execution under load.
- API stability guarantees given the Development Status :: 3 - Alpha classifier.
What it is and what it does
OpenSandbox is a Python SDK for interacting with remote secure sandbox environments hosted by an OpenSandbox service. It abstracts the HTTP API (via httpx) and provides both async and synchronous interfaces to create sandboxes, execute shell commands, manage files, and monitor resource usage. The package includes lifecycle management (pause, resume, renew), context managers for resource cleanup, and a sandbox pool abstraction to reduce acquisition latency by maintaining a buffer of ready environments.
The SDK targets developers who need to execute untrusted or isolated code safely—such as code evaluation platforms, CI/CD systems, or security research tools. It depends on attrs, pydantic, and python-dateutil for configuration and data modeling. Optional Redis support (via opensandbox[pool-redis]) enables distributed pool state management for multi-process or multi-pod deployments, though the core SDK works with in-memory state stores for development and single-process use.
Use it for
- Execute untrusted user code safely in isolated environments for code evaluation or sandbox-as-a-service platforms.
- Manage a pool of pre-warmed sandboxes to reduce latency in high-throughput code execution workloads.
- Automate testing or security analysis workflows that require isolated file systems and process isolation.
- Build CI/CD pipelines that need to run build steps or tests in ephemeral, secure containers.
- Implement distributed sandbox orchestration across multiple processes or Kubernetes pods using Redis-backed pool state.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have access to an OpenSandbox service and need a Python client for sandbox lifecycle and command execution.
The package is actively maintained, has low install friction, and covers both async and sync use cases. However, note the alpha status (Development Status :: 3 - Alpha) and verify API stability guarantees before adopting in production; also confirm that the optional Redis pool backend meets your deployment model.
Install
opensandbox on PyPI
Before you install
Low install friction with four lightweight runtime dependencies (attrs, httpx, pydantic, python-dateutil). Active maintenance with recent releases and a healthy repository signal (12930 stars, last commit 2026-08-14). Supports Python 3.10–3.13.
Requires an active OpenSandbox service endpoint (domain and API key); the SDK is a client library and does not run sandboxes locally.
License in practice
Apache License 2.0 is permissive; you may use, modify, and distribute this package freely in commercial and open-source projects, provided you include the license text and document any changes.
Quickstart
import asyncio
from opensandbox.sandbox import Sandbox
from opensandbox.config import ConnectionConfig
async def main():
config = ConnectionConfig(domain="api.opensandbox.io", api_key="your-api-key")
sandbox = await Sandbox.create("ubuntu", connection_config=config)
try:
execution = await sandbox.commands.run("echo 'Hello Sandbox!'")
print(execution.logs.stdout[0].text)
finally:
await sandbox.destroy()
asyncio.run(main())
Verify before relying
- Whether the optional Redis pool backend (opensandbox[pool-redis]) is production-ready or still alpha-stage.
- Performance characteristics and latency of sandbox creation and command execution under load.
- API stability guarantees given the Development Status :: 3 - Alpha classifier.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesattrshttpxpydanticpython-dateutil |
| Maintenance | Actively maintained 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 185,249 / month, #10,014 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: LibrariesTyping :: Typed |
Evidence: opensandbox-0.1.15-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “docker sandbox management”
- opensandboxOpenSandbox SDK provides low-level Python bindings to create, manage,…
- prime-sandboxesPython SDK for creating, managing, and executing code in remote Prime…
- pydantic-ai-backendProvides sandboxed execution and file management tools for Pydantic…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also k8s-agent-sandbox · e2b · koyeb-sdk · e2b-desktop · prime-sandboxes · cwsandbox · e2b-code-interpreter · hyperlight-sandbox · daytona · cloudshell-shell-core