Skip to content
Language: English (United States)

Machines

Real computers, leased by the org, for agents and for the software they ship.

api.hanzo.ai

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"]}'

API

Operations on api.hanzo.ai. One key reaches every layer.

MethodPathWhat it does
POST/v1/sandboxLeases a sandbox — a real computer — for the org.
POST/v1/sandbox/{id}/execRuns one command in a sandbox and answers with its exit code, stdout and stderr.
GET/v1/compute/sizesLists the machine sizes available to launch.
POST/v1/compute/machinesLaunches a metered machine, or prices one first with dryRun.
POST/v1/functionPublishes a serverless function under the org.
POST/v1/function/{name}/invokeRuns a function and records the invocation.

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.

Machines

Real computers, leased by the org, for agents and for the software they ship.