prime-sandboxes
Prime Intellect Sandboxes SDK - Manage remote code execution environments
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries no security vulnerabilities, and offers a clean API for remote sandbox management. Install it if you need to run code on Prime Intellect infrastructure or want a type-safe SDK for remote execution. The MIT license and broad Python version support (3.10–3.14) make it safe for production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Prime Intellect API key (via parameter, PRIME_API_KEY environment variable, or ~/.prime/config.json).
- Low friction: pure Python wheel with no compiled dependencies.
- Active maintenance—released 2 days ago with 286 repository stars.
License · maintenance · safety
MIT (permissive) — MIT permissive license allows commercial and private use without restriction, making it suitable for proprietary projects.
last release 2026-08-12 (2 days) · last repo commit 2026-08-14 · 286 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 511,525 downloads/mo, #6,260 on PyPI
Alternatives
Verify before relying
from prime_sandboxes import APIClient, SandboxClient, CreateSandboxRequest
client = APIClient(api_key="your-api-key")
sandbox_client = SandboxClient(client)
request = CreateSandboxRequest(name="my-sandbox", docker_image="python:3.11-slim", cpu_cores=2, memory_gb=4)
sandbox = sandbox_client.create(request)
result = sandbox_client.execute_command(sandbox.id, "python --version")
sandbox_client.delete(sandbox.id)- Whether the SDK enforces rate limits or request quotas on sandbox creation or command execution.
- Specific network or firewall requirements for connecting to Prime Intellect infrastructure.
- Whether long-running jobs (timeout_minutes up to 1440) are guaranteed to persist across network interruptions.
What it is and what it does
Prime Sandboxes is a lightweight Python SDK for provisioning and managing remote code execution environments hosted on Prime Intellect infrastructure. It provides both synchronous and asynchronous clients to create Docker-based sandboxes, execute commands, upload and download files, and manage sandbox lifecycle—all with type-safe Pydantic models and automatic token caching. The SDK handles authentication via API key (direct, environment variable, or config file) and supports bulk operations, labels, filtering, and long-running background jobs with polling.
Typical use cases include running isolated workloads without local infrastructure, executing untrusted code safely, training models on remote hardware, or orchestrating multiple parallel jobs. The SDK is pure Python (~50KB installed) with no CLI dependencies, making it easy to embed in applications or scripts. It depends on aiofiles, certifi, httpx, protobuf, pydantic, pyqwest, tenacity, and connect-python for HTTP, async I/O, and resilience.
Use it for
- Run isolated Python scripts or ML training jobs on remote hardware without provisioning local infrastructure.
- Execute untrusted or user-submitted code in a secure, containerized sandbox with resource limits.
- Bulk-create and manage multiple sandboxes for parallel batch processing or experiment sweeps.
- Upload data, run long-running background tasks (up to 24 hours), and download results asynchronously.
- Integrate remote code execution into a larger application via sync or async Python APIs.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries no security vulnerabilities, and offers a clean API for remote sandbox management. Install it if you need to run code on Prime Intellect infrastructure or want a type-safe SDK for remote execution. The MIT license and broad Python version support (3.10–3.14) make it safe for production use.
Install
prime-sandboxes on PyPI
Before you install
Low friction: pure Python wheel with no compiled dependencies. Active maintenance—released 2 days ago with 286 repository stars. Supports Python 3.10 through 3.14.
Requires a valid Prime Intellect API key (via parameter, PRIME_API_KEY environment variable, or ~/.prime/config.json).
License in practice
MIT permissive license allows commercial and private use without restriction, making it suitable for proprietary projects.
Quickstart
from prime_sandboxes import APIClient, SandboxClient, CreateSandboxRequest
client = APIClient(api_key="your-api-key")
sandbox_client = SandboxClient(client)
request = CreateSandboxRequest(name="my-sandbox", docker_image="python:3.11-slim", cpu_cores=2, memory_gb=4)
sandbox = sandbox_client.create(request)
result = sandbox_client.execute_command(sandbox.id, "python --version")
sandbox_client.delete(sandbox.id)
Verify before relying
- Whether the SDK enforces rate limits or request quotas on sandbox creation or command execution.
- Specific network or firewall requirements for connecting to Prime Intellect infrastructure.
- Whether long-running jobs (timeout_minutes up to 1440) are guaranteed to persist across network interruptions.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 8 packagesaiofilescertificonnect-pythonhttpxprotobufpydanticpyqwesttenacity |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 511,525 / month, #6,260 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules |
Evidence: prime_sandboxes-0.2.36-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 › “remote code execution sdk”
- prime-sandboxesPython SDK for creating, managing, and executing code in remote Prime…
- daytonaDaytona is a Python SDK for managing and interacting with sandboxed…
- opensandboxOpenSandbox SDK provides low-level Python bindings to create, manage,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also blaxel · koyeb-sdk · prime · k8s-agent-sandbox · prime-tunnel · cwsandbox · daytona · e2b · opensandbox · lightning-sdk