blaxel
Blaxel - AI development platform SDK
What it is and what it does
Blaxel is a Python SDK for interacting with Blaxel's perpetual sandbox platform—a managed compute service that keeps secure sandboxes on standby for near-instant launch. The SDK lets you programmatically create sandboxes, execute processes, manage filesystems, attach persistent volumes, and generate preview URLs for web services running inside them. It supports both async and sync APIs and handles pagination for list operations.
The platform is designed for AI agent development and deployment, with co-hosted agent logic to reduce network latency. Authentication is automatic when using the Blaxel CLI or can be configured via environment variables or a config file. The default sandbox image is Alpine Linux with Node.js 22 and git; Python must be explicitly installed or a Python-specific image selected.
Use it for:
- Deploy and manage AI agents in isolated, auto-scaling sandbox environments with minimal startup overhead.
- Execute long-running or batch processes (builds, data pipelines) in ephemeral containers that scale to zero after inactivity.
- Generate temporary public or private preview URLs to test web services or APIs running inside sandboxes.
- Persist application state and data across sandbox restarts using attached volumes.
- Programmatically manage sandbox lifecycle (create, monitor, delete) as part of a larger orchestration workflow.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for creating, managing, and executing workloads in Blaxel's perpetual sandbox platform, with support for process execution, filesystem operations, volumes, and preview URLs.
Yes, if you are building on the Blaxel platform or need a Python interface to its sandbox infrastructure. The SDK is actively maintained, has low install friction, and covers core sandbox operations. However, verify the license terms first—they are not declared in the package metadata—and ensure your use case aligns with Blaxel's pricing and authentication model.
Install
blaxel on PyPI
pip
pip install blaxeluv
uv add blaxelpoetry
poetry add blaxelInstalling blaxel
Before you install
Low install friction with a pure-Python wheel. Active maintenance with recent releases; last commit 2026-08-14. Requires Python 3.10–3.14 and 11 runtime dependencies including httpx, pydantic, and websockets.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before using in proprietary or commercial projects.
Quickstart
pip install blaxel
import asyncio
from blaxel.core import SandboxInstance
async def main():
sandbox = await SandboxInstance.create_if_not_exists({
"name": "my-sandbox",
"image": "blaxel/base-image:latest",
"memory": 4096
})
await sandbox.delete()
asyncio.run(main())
Requires Blaxel workspace authentication via Blaxel CLI login, environment variables (BL_WORKSPACE, BL_API_KEY), or config file (~/.blaxel/config.yaml).
Verify before relying
- Whether the default base image includes Python or requires explicit installation for Python workloads.
- Exact behavior and latency guarantees for sandbox startup and resumption times.
- Rate limits or quotas on sandbox creation, process execution, or API calls.
- Data retention and cleanup policies for volumes and sandbox state.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — attrs, dockerfile-parse, httpx, mcp, pydantic, pyjwt, python-dateutil, pyyaml, requests, tomli, websockets |
| Maintenance | actively maintained — 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 162,387/month — #10,607 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: blaxel-0.4.1-py3-none-any.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
prime-sandboxesPython SDK for creating, managing, and…
permissive · top 15,000 on PyPI
tensorlakeTensorlake provides a Python SDK for building…
unclear · top 15,000 on PyPI
koyeb-sdkOfficial Python SDK for Koyeb that provides…
permissive · top 15,000 on PyPI
lightning-sdkPython SDK to create, manage, and automate…
permissive · top 15,000 on PyPI
shuffle-sdkShuffle SDK provides a framework for building,…
permissive · top 15,000 on PyPI
e2bE2B provides a Python SDK to create and control…
permissive · top 5,000 on PyPI
k8s-agent-sandboxA Python client library for creating and…
permissive · top 15,000 on PyPI
opensandboxOpenSandbox SDK provides low-level Python…
permissive · top 15,000 on PyPI
hyperbrowserPython SDK for controlling remote browser…
permissive · top 15,000 on PyPI
primeCLI and Python SDK for managing GPU compute,…
permissive · top 15,000 on PyPI