Skip to main content

Python SDK for VaultRun — self-hosted secure AI agent sandbox runtime (Docker, MCP, audit trail)

Project description

vaultrun-sdk

Python SDK for VaultRun — the self-hosted secure runtime for AI agents.

VaultRun lets AI agents safely execute code, query databases, call cloud APIs, and manage files inside isolated Docker sandboxes running on your own infrastructure. This package is the typed Python client for the VaultRun REST API.

Install

pip install vaultrun-sdk

Quickstart

from sandbox_sdk import Client

client = Client("http://localhost:8080", api_key="vr_...")

session = client.create_session(image="python:3.12-slim", memory_limit_mb=256)
client.upload_file(session.id, "script.py", open("script.py", "rb"))

result = client.run(session.id, command="python", args=["script.py"])
print(result.stdout)

client.delete_session(session.id)

Features

  • Sessions: create, list, get, delete isolated sandbox sessions
  • Runs: execute commands, stream output, fetch run details and logs
  • Files: upload, list, and download workspace files
  • Keys, organizations, audit logs, snapshots, artifacts, images, and session stats

Requirements

  • Python 3.10+
  • A running VaultRun instance and an API key (vr_...)

Links

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vaultrun_sdk-0.2.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vaultrun_sdk-0.2.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file vaultrun_sdk-0.2.1.tar.gz.

File metadata

  • Download URL: vaultrun_sdk-0.2.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vaultrun_sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9aa23be0789202e458bbefbfa93e6c3a01b8bf6ae3435a38a545c4b1468538ce
MD5 fac0a8dce192b49ca4a3b1b46a465346
BLAKE2b-256 93ec3f4d12c66d024d93616b6dc6d448a7564569536c265baabe7285d3e08586

See more details on using hashes here.

Provenance

The following attestation bundles were made for vaultrun_sdk-0.2.1.tar.gz:

Publisher: pypi.yml on nickvd7/vaultrun

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vaultrun_sdk-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: vaultrun_sdk-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vaultrun_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 086d22dcfe354d83fe880c053a6470206018a61988e0077ba089b820cbb8efcd
MD5 0fd63a31ae25322dbfb6155e248777a6
BLAKE2b-256 4adac340a6bb187652a7c37c274bc2a1a3344df0f4a0ce30f1ec9287722dfca6

See more details on using hashes here.

Provenance

The following attestation bundles were made for vaultrun_sdk-0.2.1-py3-none-any.whl:

Publisher: pypi.yml on nickvd7/vaultrun

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page