Skip to main content

Command-line client for SandrPod — self-hosted, multi-cloud sandbox infrastructure for AI agents

Project description

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

MIT

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

sandrpod_cli-0.2.1.tar.gz (18.5 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.1-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sandrpod_cli-0.2.1.tar.gz
  • Upload date:
  • Size: 18.5 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.1.tar.gz
Algorithm Hash digest
SHA256 69385fb664bbcf1a039b73ce39a5687215e18ee27f9da11499ae6640fe666994
MD5 1a4b2d52dfb910ff30300872eb00c29f
BLAKE2b-256 503b8c0bb4d2508dc90253c9d1fb85a135dd771f1106349f0b087137b2f7780f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sandrpod_cli-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4ff3d824a458f9cb13d3cc4701e4f151f865dc13257621724f4859b601fbb75
MD5 b8d642c53b6cf54023a0bf7137950e53
BLAKE2b-256 ebc273a9e33f931647985cdfa6affed59dc98112c493382e59ceef4311ff169f

See more details on using hashes here.

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