# Spaceyard > Spaceyard gives an AI agent a computer of its own: a Linux or Windows cloud desktop it starts with one API call, runs commands on and uses like a person through computer use (screenshots, clicks, typing). Sandboxes are billed by the minute, in euros. The API is at https://api.spaceyard.dev/v1: JSON in and out, with an API key as a bearer token. Every error is {"error": {"code", "message"}}. ## Command line Agents with a shell can use the `spaceyard` CLI instead of calling the API: `curl -fsSL https://spaceyard.dev/install.sh | sh` on macOS and Linux, `irm https://spaceyard.dev/install.ps1 | iex` in Windows PowerShell. Then `spaceyard login` (or set SPACEYARD_API_KEY) and `spaceyard help`. Covers lifecycle (`create`, `run`, `list`, `get`, `start`, `stop`, `destroy`, `fork`), commands and files (`exec`, `cp`, `stream`, `desktop`, `logs --follow`), computer use (`screenshot`, `click`, `type`, `key`, `scroll`, `move`, `drag`, `open`, `windows`, `focus`, `read-screen`, `wait`, `computer`), snapshots and warm pools (`snapshots`, `warm-pools`). See [CLI docs](https://spaceyard.dev/docs#cli). ## Docs - [API docs as Markdown](https://spaceyard.dev/docs.md): the whole reference in one file: quickstart, authentication, errors, rate limits, lifecycle, environment variables, billing and every endpoint with examples. - [OpenAPI spec](https://spaceyard.dev/openapi.json): the API as OpenAPI 3.1, for code generators and tool calling. - [Docs](https://spaceyard.dev/docs): the same, as a web page. ## API reference - [List images](https://spaceyard.dev/docs#list-images): `GET /v1/sandboxes/images` - [Create a sandbox](https://spaceyard.dev/docs#create-sandbox): `POST /v1/sandboxes` - [List sandboxes](https://spaceyard.dev/docs#list-sandboxes): `GET /v1/sandboxes` - [Get a sandbox](https://spaceyard.dev/docs#get-sandbox): `GET /v1/sandboxes/{uuid}` - [Start a sandbox](https://spaceyard.dev/docs#start-sandbox): `POST /v1/sandboxes/{uuid}/start` - [Stop a sandbox](https://spaceyard.dev/docs#stop-sandbox): `POST /v1/sandboxes/{uuid}/stop` - [Destroy a sandbox](https://spaceyard.dev/docs#destroy-sandbox): `DELETE /v1/sandboxes/{uuid}` - [Run a command](https://spaceyard.dev/docs#run-command): `POST /v1/sandboxes/{uuid}/exec` - [Computer use](https://spaceyard.dev/docs#computer-use): `POST /v1/sandboxes/{uuid}/computer` - [Stream the screen](https://spaceyard.dev/docs#stream-sandbox): `POST /v1/sandboxes/{uuid}/stream` - [Logs](https://spaceyard.dev/docs#logs): `GET /v1/sandboxes/{uuid}/logs` - [List snapshots](https://spaceyard.dev/docs#list-snapshots): `GET /v1/sandboxes/snapshots` - [Create a custom snapshot](https://spaceyard.dev/docs#create-snapshot): `POST /v1/sandboxes/snapshots` - [Capture a snapshot](https://spaceyard.dev/docs#capture-snapshot): `POST /v1/sandboxes/{uuid}/snapshots` - [Edit a custom snapshot](https://spaceyard.dev/docs#edit-snapshot): `PATCH /v1/sandboxes/snapshots/{id}` - [Deploy a snapshot](https://spaceyard.dev/docs#deploy-snapshot): `POST /v1/sandboxes/snapshots/{id}/deploy` - [Delete a snapshot](https://spaceyard.dev/docs#delete-snapshot): `DELETE /v1/sandboxes/snapshots/{id}` - [List warm pools](https://spaceyard.dev/docs#list-warm-pools): `GET /v1/sandboxes/warm-pools` - [Set a warm pool](https://spaceyard.dev/docs#upsert-warm-pool): `PUT /v1/sandboxes/warm-pools` - [Delete a warm pool](https://spaceyard.dev/docs#delete-warm-pool): `DELETE /v1/sandboxes/warm-pools/{id}` ## Account - [Console](https://console.spaceyard.dev/auth/login): sign in or sign up. - [API key](https://console.spaceyard.dev/api-key): make the key the API needs. - [Billing](https://console.spaceyard.dev/billing): add credit; sandboxes are paid from it by the minute. ## Optional - [Pricing](https://spaceyard.dev/pricing): prices per hour for each desktop. - [Full text](https://spaceyard.dev/llms-full.txt): the docs in one plain-text file.