Skip to main content

WBX Sandbox – Python SDK

Python SDK for WBX Sandbox: isolated cloud sandboxes for AI agents and code execution. Each sandbox is a Firecracker microVM with its own Linux kernel, disk and network rules. No dependencies – only the Python standard library (Python 3.9+).

Install

pip install wbxsandbox

Configure

Create an API key in the portal (API keys) and set it in the environment:

export WBXSANDBOX_API_KEY=...
# optional, defaults to https://sandbox.wbx.cz
export WBXSANDBOX_URL=https://sandbox.wbx.cz

Both can also be passed as url= and api_key= arguments.

Quick start

from wbxsandbox import Sandbox

with Sandbox.create(template="base", timeout=300) as sb:
    r = sb.run("python3 -c 'print(1 + 1)'")
    print(r.exit_code, r.stdout)          # 0 "2\n"
    sb.files.write("/home/user/data.txt", "hello")
    print(sb.files.read_text("/home/user/data.txt"))
# the sandbox is destroyed when the block ends

Background jobs and batches:

from wbxsandbox import run_job

job = run_job(command="python3 -c 'print(42)'", template="base", timeout_seconds=600)
job.wait()
print(job.summary()["status"])

IPv6 – the sandbox gets its own public IPv6 address ("dual", or "ipv6" for IPv6-only internet):

with Sandbox.create(template="base", ip="dual") as sb:
    print(sb.ipv6)

Interactive terminal in a running sandbox (installed as the wbx command):

wbx connect sb_...

Behind an HTTP proxy, set HTTPS_PROXY – the terminal connects through it.

Documentation: https://sandbox.wbx.cz/docs · Pricing: https://sandbox.wbx.cz/pricing

Versioning

The SDK has its own version. Its major.minor follows the platform release line (SDK 0.15.x works with platform 0.15.x); the patch number is raised only when the SDK itself changes. pyproject.toml and wbxsandbox.__version__ always carry the same version (checked by tests/test_sdk.py).

Tests

cd sdk/python && python3 -m unittest discover -s tests

The tests do not need network access.

License

MIT – see LICENSE.

Metadata

Release files for wbxsandbox 0.15.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wbxsandbox 0.15.4
File Size Uploaded Provenance Actions
wbxsandbox-0.15.4.tar.gz 23.0 kB With provenance Details for wbxsandbox-0.15.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wbxsandbox 0.15.4
File Interpreter ABI Platform Actions
wbxsandbox-0.15.4-py3-none-any.whl Python 3 none any Details for wbxsandbox-0.15.4-py3-none-any.whl

Total release size: 42.4 kB

Release files / wbxsandbox-0.15.4.tar.gz

Download URL wbxsandbox-0.15.4.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b21a8b30f2c125065a4bccc7a72e2cdf26edd62bdc7a87e171a353a0665e291e
BLAKE2b-256 checksum
How to use checksums
bf1a542e88f0d955a0b3dad0f111a568a7deba372aa598d54017d87cdd004b1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / wbxsandbox-0.15.4-py3-none-any.whl

Download URL wbxsandbox-0.15.4-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e978be1736335e5ae6260d31e5a14978da0ff89cdaa870c78ab4d8e58356d1dc
BLAKE2b-256 checksum
How to use checksums
9da2cd68e303fe1e2f1545cf75acc96e7ebd1cc858fc4360c61a214e83bc460b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for wbxsandbox 0.15.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wbxsandbox-0.15.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page