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.3.tar.gz (21.0 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.3-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sandrpod_cli-0.2.3.tar.gz
  • Upload date:
  • Size: 21.0 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.3.tar.gz
Algorithm Hash digest
SHA256 f7cacd8d3ad549467320bd0e32bc74c71c75f87ffe2878b2492e2299148a52b2
MD5 cdd5460523b8a1b6188381bc9216c641
BLAKE2b-256 df5f1cb216514fba7c29ba48f8e5779b329e433f16978103a7a55600fb65de46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sandrpod_cli-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 21.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 29328e4aededbcf86f73c5b1b4f8c8696793b7e6d1173558b4b413ffbc6c7ea5
MD5 79c7846565a6f7235048d870202da23c
BLAKE2b-256 317391b4228415c2c2802b2123f0139c4612ede2a659c512db4c5220be9b0733

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