Computer use
A Computer is a durable cloud desktop: a full Linux GUI streamed live from a MIOSA microVM. Computer use is the perception-action loop that lets software operate that desktop the way a person would: look at the screen, decide, take one action, look again.
Use it when the task depends on pixels, a logged-in browser session, desktop apps, the accessibility tree, or a human taking over the same machine an agent was using. For code execution and builds, use a Sandbox instead. If you only need a browser, Browser use runs inside a sandbox without a full desktop.
What a Computer gives you
A persistent Linux desktop with Chromium/Firefox, custom tenant templates, and durable storage streamed at up to 60fps via Voxl.
Fast JPEG screenshots (?format=jpeg&quality=80), atomic batched actions (POST /act/batch), AT-SPI accessibility tree, official loopback Chrome CDP (http://127.0.0.1:9222) for Playwright, plus shell and files.
Embed the 60fps desktop stream in your own app with strict per-tenant CSP frame-ancestors and server-enforced view_only: true watch-only vs interactive take-over.
Agent harnesses, Playwright, and MCP clients drive the same desktop through the same control APIs and the same live viewer.
Control surfaces
Computer use is reachable from the Python SDK, TypeScript SDK, CLI, MCP tools, REST API, and the live viewer. Pick the surface that matches the caller.
| Caller | Use | Example |
|---|---|---|
| Python agent | Python SDK | computer.screenshot() |
| Node app | TypeScript SDK | await computer.leftClick(500, 500) |
| Terminal operator | CLI | miosa api GET /computers/cmp_123/desktop/screenshot > screen.png |
| MCP agent | MCP tools | computer_screenshot, then computer_click |
| Custom backend | REST API | POST /api/v1/computers/{id}/act/batch or GET .../desktop/screenshot?format=jpeg&quality=80 |
| Browser automation | Playwright / CDP | chromium.connectOverCDP("http://127.0.0.1:9222") inside the Computer |
| Human operator | White-label Voxl viewer | Watch with view_only: true or mint an interactive token to take over |
The perception-action loop
Perceive, decide, act once, perceive again. Every action is a synchronous, authenticated request against a running Computer.
Live viewer
A Computer desktop is also a live pixel stream that a browser can render. The platform workspace shows it behind a desktop button; your own app can embed the same stream with a short-lived URL minted on your backend.
- Platform desktop button: signed-in MIOSA users, normal session permissions.
- Embedded stream URL: your backend mints a short-lived desktop URL with the MIOSA API key.
- Raw external desktop link: direct viewer access, gated by a viewer password.
The operator sees the same machine the agent was using, can watch, and can take over input. See Embedding & streaming for the iframe and token flow.
Agent harness usage
An agent harness drives a Computer the same way any other client does: it calls the control APIs in a loop, and it can run headless or behind the live viewer.
| Harness entry point | What it does |
|---|---|
| MCP tools | computer_screenshot, computer_click, computer_type, computer_key, computer_scroll, and the rest of the desktop tools, in one model loop. |
| CLI | miosa computer covers create, start, screenshot, click, type, key, a11y tree, and exec. |
| SDK with a computer-use toolset | The Python and TypeScript SDKs ship a computer-use toolset that maps a model’s actions onto the desktop methods. |
| In-VM agent (OSA) | Optional, disabled by default; activate it to run multi-step desktop tasks inside the Computer itself. |
Because the viewer and the harness share one machine, an operator can open the live desktop mid-run, observe, and take over without moving any state.
Access model
| Access path | Who uses it | Authentication |
|---|---|---|
| Platform desktop button | Signed-in MIOSA users | Normal MIOSA session and workspace permissions |
| Embedded stream URL | Your app backend and frontend | Your backend mints a short-lived URL with the MIOSA API key |
| Raw external desktop link | Emergency or direct viewer access | Viewer password gate |
Authenticated platform links and stream URLs do not need the raw viewer password.
Use viewer_password() / rotate_viewer_password() only for raw external viewer links.
Related
Create a Computer, run the first perceive-act loop, and watch it live. Open
Every desktop endpoint with its real path, method, and fields. Open
Python and TypeScript method names with runnable examples. Open
Latency, coordinate space, sizing, and rate limits. Open