Skip to content
Raster
Esc
navigateopen⌘Jpreview
On this page

Raster

A machine is a persistent Linux computer. You create one, it boots, and it keeps its disk until you delete it.

A machine is a persistent Linux computer with a desktop, a shell and a browser. You create one, it boots, and it keeps its disk until you delete it. Everything in these docs is a call the API answers today.

const machine = await client.machines.create({ name: "research", size: "small" });
await machine.waitForDesktop();

await machine.browser.open("https://example.com");
await machine.mouse.click({ at: { x: 640, y: 400 } });
const shot = await machine.screen.screenshot({ format: "png" });

The shape of it

One resource matters: a machine. Everything else is either a way to drive one (the desktop, a terminal, files, the browser), a way to keep one (snapshots, forks and templates), or a way to reach one (published ports, the realtime gateway).

Two SDKs and a CLI sit on the same API, and four integrations map a vendor’s tool vocabulary onto it. None of them can do anything an API key cannot.

Was this page helpful?