Skip to main content

runcloud

Python SDK for run.cloud.

pip install runcloud-sdk
runcloud login
from runcloud import Client

cloud = Client()
box = cloud.create(image="runcloud/agent-base", cpu=2, memory=4096)
try:
    result = box.exec("python -V")
    print(result.stdout)
finally:
    box.destroy()

Commands started through the Modal compatibility adapter stream output while they are running:

from runcloud.compat import modal

app = modal.App.lookup("my-app")
box = modal.Sandbox.create(app=app)
try:
    process = box.exec(
        "bash",
        "-c",
        "for i in {1..5}; do date +%T; sleep 0.5; done",
    )
    for line in process.stdout:
        print(line, end="")
    process.wait()
finally:
    box.terminate()

Client() automatically uses the credential saved by runcloud login. For automation, set RUN_CLOUD_API_KEY and optionally RUN_CLOUD_API_URL, or pass api_key and api_url directly.

Compatibility adapters

The same distribution includes migration adapters:

Provider Import
Modal from runcloud.compat import modal
E2B from runcloud.compat.e2b import Sandbox
Daytona from runcloud.compat.daytona import Daytona
Vercel Sandbox from runcloud.compat.vercel import Sandbox
Blaxel async from runcloud.compat.blaxel import SandboxInstance
Blaxel sync from runcloud.compat.blaxel import SyncSandboxInstance
Fly Sprites from runcloud.compat.sprites import SpritesClient

Adapters cover creation, command execution, lookup/listing, and destruction where the upstream SDK exposes them. Blaxel's current SandboxInstance API is async; SyncSandboxInstance preserves its synchronous API. Unsupported provider-specific features raise UnsupportedCompatibilityFeatureError with a migration hint. They do not silently pretend that run.cloud implements a provider-specific feature.

Metadata

Release files for runcloud-sdk 0.8.1

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

Source distribution (sdist)

Source distribution for runcloud-sdk 0.8.1
File Size Uploaded Provenance Actions
runcloud_sdk-0.8.1.tar.gz 14.9 kB With provenance Details for runcloud_sdk-0.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runcloud-sdk 0.8.1
File Interpreter ABI Platform Actions
runcloud_sdk-0.8.1-py3-none-any.whl Python 3 none any Details for runcloud_sdk-0.8.1-py3-none-any.whl

Total release size: 28.9 kB

Release files / runcloud_sdk-0.8.1.tar.gz

Download URL runcloud_sdk-0.8.1.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
640767f543d5b0916a535d2174c7916afbfdccee78ed442ca58ee627a0b6db5a
BLAKE2b-256 checksum
How to use checksums
5f4eb381ebbfcbebdf83e2c48b8bb7e153b0fd8aa1d29566ba14ea2fd3831855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 28, 2026.

Transparency log

Release files / runcloud_sdk-0.8.1-py3-none-any.whl

Download URL runcloud_sdk-0.8.1-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f76976902eed67e6250236435a7f94a43087fdeeeaf926237fd8a7bcd685310
BLAKE2b-256 checksum
How to use checksums
6c54149f9cad341b020e7b96c6a311120d784e1b583037e650483e67e1ec4845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 28, 2026.

Transparency log

Security for runcloud-sdk 0.8.1

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 runcloud_sdk-0.8.1.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 Jul 28, 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