Hanzo OS
Machines
Real computers, leased by the org, for agents and for the software they ship.
Lease a sandbox and run commands in it, launch a metered machine, or publish a function. Each is the org’s own and each is billed to it, so an agent that needs a computer asks for one the same way a person would.
API
Operations on api.hanzo.ai. One key reaches every layer.
| Method | Path | What it does |
|---|---|---|
POST | /v1/sandbox | Leases a sandbox — a real computer — for the org. |
POST | /v1/sandbox/{id}/exec | Runs one command in a sandbox and answers with its exit code, stdout and stderr. |
GET | /v1/compute/sizes | Lists the machine sizes available to launch. |
POST | /v1/compute/machines | Launches a metered machine, or prices one first with dryRun. |
POST | /v1/function | Publishes a serverless function under the org. |
POST | /v1/function/{name}/invoke | Runs a function and records the invocation. |
Try it
curl https://api.hanzo.ai/v1/sandbox \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"class": "exec"}'
curl https://api.hanzo.ai/v1/sandbox/$SANDBOX/exec \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"argv": ["uname", "-a"]}'