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.2.tar.gz (20.8 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.2-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sandrpod_cli-0.2.2.tar.gz
  • Upload date:
  • Size: 20.8 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.2.tar.gz
Algorithm Hash digest
SHA256 16177d54fd49122595dfaf04bae8d2843de094b1c890c3c868203b0ccb3b3521
MD5 dd014ad03a83f9a493888575c8390fa1
BLAKE2b-256 9603970c634635826e1482f519be47a0aa2b9a8d2fb32cb81a37778d58df7eed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sandrpod_cli-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 21.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff65ea6dab273b0cd704ae04a9fd858cc4404317eed1b6de1453073000ef3ddd
MD5 ad52ff9392be6c6574b285cb77925477
BLAKE2b-256 ecbe408f5d7b489bd75f32fdefbf513294fa6319d7ed9f5ed38cbb0c81a197ea

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