# Machines: Real computers, leased by the org, for agents and for the software they ship — Hanzo AI

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

[Try Hanzo](https://hanzo.ai/signup)[Sandbox API](https://docs.hanzo.ai/docs/openapi/sandbox)

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

```
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/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.

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.

## Hanzo OS

## Docs

- [Sandbox API](https://docs.hanzo.ai/docs/openapi/sandbox)
- [Visor API](https://docs.hanzo.ai/docs/openapi/visor)
- [Functions API](https://docs.hanzo.ai/docs/openapi/functions)

## On this site

- [Machines](https://hanzo.ai/machines)
- [Visor](https://hanzo.ai/visor)
- [Functions](https://hanzo.ai/functions)
- [Edge](https://hanzo.ai/edge)
- [Registry](https://hanzo.ai/registry)
- [Operator](https://hanzo.ai/operator)
- [Ingress](https://hanzo.ai/ingress)
- [DNS](https://hanzo.ai/dns)
- [Tunnel](https://hanzo.ai/tunnel)
- [ZAP](https://hanzo.ai/zap)
- [PubSub](https://hanzo.ai/pubsub)
- [Stream](https://hanzo.ai/stream)
- [MQ](https://hanzo.ai/mq)

## Machines

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

[Try Hanzo](https://hanzo.ai/signup)[Sandbox API](https://docs.hanzo.ai/docs/openapi/sandbox)
