Hanzo
CLISandbox

Sandbox

19 `hanzo` commands for Sandbox, each calling one operation on api.hanzo.ai.

Package sandbox is the ONE compute primitive: a sandbox is a gVisor pod that runs somebody else's code, and every lifetime is the same object.

19 commands · API reference →

CommandCallsWhat it does
hanzo sandboxes exec <id>POST /v1/sandbox/{id}/execRun a command in a sandbox
hanzo sandboxes fs get <id>GET /v1/sandbox/{id}/fsRead a file, or list a directory
hanzo sandboxes fs create <id>POST /v1/sandbox/{id}/fsWrite a file
hanzo sandboxes screen ticket <id>POST /v1/sandbox/{id}/screen/ticketOpen a screen
hanzo sandboxes screen ws <id>GET /v1/sandbox/{id}/screen/wsThe screen, as a socket
hanzo sandboxes screen get <id>GET /v1/sandbox/{id}/screenThe screen, as a page
hanzo sandboxes terminal ticket <id>POST /v1/sandbox/{id}/terminal/ticketOpen a terminal
hanzo sandboxes terminal ws <id>GET /v1/sandbox/{id}/terminal/wsThe terminal, as a socket
hanzo sandboxes terminal get <id>GET /v1/sandbox/{id}/terminalThe terminal, as a page
hanzo sandboxes get <id>GET /v1/sandbox/{id}One sandbox
hanzo sandboxes rm <id>DELETE /v1/sandbox/{id}End a sandbox
hanzo sandboxes endPOST /v1/sandbox/endEnd a sandbox and release it
hanzo sandboxes leasePOST /v1/sandbox/leaseLease a sandbox — a real computer — or resume one you hold
hanzo sandboxes readPOST /v1/sandbox/readRead a file from a sandbox you hold
hanzo sandboxes runPOST /v1/sandbox/runRun a command in a sandbox you hold and read its output
hanzo sandboxes stopPOST /v1/sandbox/stopStop what a sandbox is running, and keep the sandbox
hanzo sandboxes writePOST /v1/sandbox/writeWrite a file into a sandbox you hold
hanzo sandboxes listGET /v1/sandboxThe sandboxes this org holds
hanzo sandboxes createPOST /v1/sandboxLease a sandbox

How is this guide?