Skip to main content

sandrpod-cli

Note on proxies: when --api-url points at loopback the client ignores the operating system's HTTP proxy (session.trust_env = False). A developer machine often has one set system-wide (Clash, Charles, …); it would otherwise capture calls to 127.0.0.1:8080 and fail with a timeout naming the proxy port, not the server. A remote --api-url still honours the proxy as usual.

Command-line client for SandrPod — open-source, self-hosted execution infrastructure (sandboxes) for AI agents. Run sandboxes on your own substrate (8 clouds incl. Aliyun/Tencent, plain Docker, or a bare machine), drive them over the native REST API, and stay E2B-compatible.

Install

pip install sandrpod-cli
pip install "sandrpod-cli[shell]"   # + interactive PTY shell (websocket-client)

Configure

export SANDRPOD_API_URL=http://your-server:8080
export SANDRPOD_API_TOKEN=your-token          # only if the server runs with auth
# or pass per-command:  sandrpod-cli --api-url http://your-server:8080 <cmd>

Quickstart

sandrpod-cli create mybox --provider local           # create a sandbox
sandrpod-cli execute mybox "echo hi; python3 -V"     # one-shot exec
sandrpod-cli run mybox "import numpy; print(1)"      # stateful code interpreter (Jupyter-style)
sandrpod-cli fs write mybox /workspace/a.txt hello   # filesystem ops
sandrpod-cli fs ls mybox
sandrpod-cli stream mybox "for i in 1 2 3; do echo \$i; sleep 1; done"   # real-time output
sandrpod-cli shell mybox                             # interactive PTY (needs the [shell] extra)
sandrpod-cli preview mybox 8000                      # proxy a web port inside the sandbox
sandrpod-cli stats mybox                             # CPU / memory / disk
sandrpod-cli delete mybox

Charts: sandrpod-cli run captures matplotlib figures, saving the rendered PNG plus structured chart data (E2B-style).

Full command list (cloud providers, snapshots, tokens, contexts, directory watch, …) is in the SandrPod repository.

License

Apache-2.0

Metadata

Release files for sandrpod-cli 0.7.3

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

Source distribution (sdist)

Source distribution for sandrpod-cli 0.7.3
File Size Uploaded Provenance Actions
sandrpod_cli-0.7.3.tar.gz 27.3 kB Without provenance Details for sandrpod_cli-0.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sandrpod-cli 0.7.3
File Interpreter ABI Platform Actions
sandrpod_cli-0.7.3-py3-none-any.whl Python 3 none any Details for sandrpod_cli-0.7.3-py3-none-any.whl

Total release size: 55.6 kB

Release files / sandrpod_cli-0.7.3.tar.gz

Download URL sandrpod_cli-0.7.3.tar.gz
Size 27.3 kB
Tags Source
SHA-256 checksum
How to use checksums
48178aaba25597d75608decf7b094bffd69e2163edc648d9bf66be7a006af89e
BLAKE2b-256 checksum
How to use checksums
e1091fcbe178e0db0c6520c8dd65985a1732ae6f93d789bbc5837f05ee856d98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / sandrpod_cli-0.7.3-py3-none-any.whl

Download URL sandrpod_cli-0.7.3-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52020ca937ff4b2783d50024175978eaeb466c235b351ad7ff24a8bdf34b467a
BLAKE2b-256 checksum
How to use checksums
78a6e6302f1a81d7f7721596ed6912b6a07efe900e140cd81733b626b2d2ae0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for sandrpod-cli 0.7.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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