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.4.tar.gz (21.7 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.4-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sandrpod_cli-0.2.4.tar.gz
  • Upload date:
  • Size: 21.7 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.4.tar.gz
Algorithm Hash digest
SHA256 e25f350b4bcc0a1068d47be365dc73fd4dac6ba3899e27b1154c9dc4559487a2
MD5 4a6b0324f068bd8c4f43dd5935e84c88
BLAKE2b-256 af68d53cf452bfab68bdf48b5fd1fae5c6a2707a1bcedff141877b7e2c456fdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sandrpod_cli-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 22.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6e69e5ed300d5521faced99ba97d2c5944ebc4c70992884ff56d0c85e4118b4d
MD5 828adad6edd84f5a9e03f738be80c119
BLAKE2b-256 5476a0800b197fedaf55627b5303661ef6d2ee3a2f21a4a8db77900cfe075fbc

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