Back to Blog
Guide

Emily Watson10 min
Pg Up

Many teams prototype a browser or desktop agent in a few notebooks, but production brings real constraints. You need a reliable driver that works on actual browsers, terminals, and desktops, not just mocked pages. You want a way to chain steps, handle retries, and connect to cloud machines. The Coasty computer use API gives you that from Day 1 with a single API surface.

Prototype with Vision-Driven Computer Use

Start by running a simple loop: capture the screen, send the screenshot and a prompt to the vision endpoint, get actions, and repeat until the agent signals completion. The endpoint is POST /v1/predict. It costs $0.05 per request and returns a status field you can use to decide whether to call predict again. This is the core of any computer use agent.

bash
curl -X POST https://coasty.ai/v1/predict \
  -H "X-API-Key: $COASTY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "screenshot": "base64_encoded_image_here",
    "instruction": "Open Chrome and navigate to https://example.com",
    "cua_version": "v3"
  }'

Production: Use Task Runs and Workflows

For production workloads, skip the manual loop. Use Task Runs to let the server drive an agent to completion. The endpoint is POST /v1/runs with a task, machine_id, and cua_version ("v3" for standard, "v4" for autonomous with a pass/fail verifier). You can add instructions, a system_prompt, max_steps, deadline_seconds, and an on_awaiting_human policy. Each agent step is billed at $0.05. You can monitor state and events, cancel or resume runs, and stream events via GET /v1/runs/{id}/events.

Workflows for Reusable Pipelines

Turn your prototype into reusable pipelines with Workflows. A Workflow is a versioned JSON DSL that describes runs as tasks, asserts, if statements, loops, parallel steps, human approvals, retries, succeed, and fail. You declare variables using double-brace syntax like {{inputs.url}} or stepId.field. You can set guards such as budget_cents, max_iterations, and deadline_seconds. Task steps inside a Workflow are also billed $0.05 each.

Provision Machines and Drive Real Desktops

The agent does not run in your local machine. Use POST /v1/machines to provision cloud VMs, start, stop, and snapshot them. Your computer use agent then drives those real desktops, browsers, and terminals. This enables enterprise-grade automation without setting up infrastructure yourself.

Why Computer Use Beats Brittle Automation

Traditional automation relies on brittle selectors that break with page changes. The Coasty computer use API lets your agent see the screen and act like a human. It understands context, handles layout shifts, and works across browsers and desktops. This reduces maintenance and gives you a single agent that scales across many applications.

Use Task Runs with Workflows to turn a quick prototype into a production-ready computer use agent.

Start building a computer use agent that drives real desktops and browsers. Get an API key at https://coasty.ai/developers and start prototyping today.

© 2026 Coasty

Backed byYCombinator