Skip to main content

sandrpod-cli

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

Download files

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

Source Distribution

sandrpod_cli-0.2.5.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

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

sandrpod_cli-0.2.5-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file sandrpod_cli-0.2.5.tar.gz.

File metadata

  • Download URL: sandrpod_cli-0.2.5.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for sandrpod_cli-0.2.5.tar.gz
Algorithm Hash digest
SHA256 7105ef463d2e506b59d3da74b9f31e702a5be97d1b9486437dc36082d27e0552
MD5 0d5c7ed37f35dfac0e6392d2789c3aeb
BLAKE2b-256 fcd0447184ae633eb59679d49dd1275ecf22344ce379eaf6ebae273bcb8efca7

See more details on using hashes here.

File details

Details for the file sandrpod_cli-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: sandrpod_cli-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for sandrpod_cli-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9ba37c6ffc748008e1ba432ffe2390459c151a46aed745abfa962b7d5debcd19
MD5 7ce631568f31e14bce849ca4107e96e6
BLAKE2b-256 aff2809b0b0b3336e44272b6b938935f33eacae2338f2505f6d2b552c62b4248

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

Supported by

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