Cloud desktops vs. headless browsers
When to use a browser, a full desktop, or both.
A headless browser runs web pages without showing a browser window. A cloud desktop gives an agent a remote operating system: a browser, a terminal, a filesystem and desktop applications. Use browser automation when the task stays inside a website. Use a desktop when it needs native applications or a working environment that persists.
Compare the environments
| Headless browser | Cloud desktop | |
|---|---|---|
| Scope | Web pages, tabs, and browser contexts | Browser, terminal, files, and installed applications |
| Control | Locators, browser APIs, JavaScript, and optionally a model | Mouse, keyboard, screenshots, shell commands, and optionally a model |
| State | Cookies and storage can be saved and restored | Application state and files can remain on the computer |
| Debugging | Screenshots, traces, and browser logs | Live desktop, screenshots, application logs, and shell access |
| Operations | Manage browser processes or use a hosted service | Manage computers or use a hosted desktop service |
The two overlap. Browser automation can save files to the host and run alongside other programs. A desktop can run browser scripts without a model interpreting each click.
Playwright supports Chromium, Firefox and WebKit (Playwright's browser documentation). Hosted browser services may support fewer. When a task depends on a particular feature, check the service and the browser version.
Start with browser automation
For a repeatable web task, use explicit locators where you can. This Playwright example visits a page and reads its heading without a model call.
In a Python virtual environment, install Playwright and its Chromium binary:
python -m pip install playwright
python -m playwright install chromiumOn Linux it may need more system packages; Playwright lists them in its installation guide.
from playwright.sync_api import sync_playwright
with sync_playwright() as playwright:
browser = playwright.chromium.launch(headless=True)
try:
page = browser.new_page()
page.goto("https://example.com", wait_until="domcontentloaded")
print(page.get_by_role("heading", level=1).inner_text())
finally:
browser.close()This runs locally. A hosted service such as Browserbase provides managed browser sessions; use its current quickstart for connection details.
Choose a desktop for work across applications
A desktop fits when an agent has to edit a file in a native application, check the result in a browser, then run a command in a terminal. The applications share one filesystem and one working environment.
Orgo provides that computer remotely. Open it in the dashboard or control it through the API. The Orgo quickstart covers the computer lifecycle; the Claude walkthrough adds an agent loop.
A full desktop also lets a person see the same interface the agent is using, which helps with debugging and with steps a person has to take over.
Measure cost per completed task
Neither is always faster or cheaper. A locator click skips the model work of reading an image, but both still wait on page loads, network requests and application processing.
Count compute, model calls, storage, retries and the time spent on failures. Compare the same tasks at the concurrency you expect. A cheaper session that fails more often can cost more per completed task.
Use current Orgo pricing and your browser provider's pricing for the comparison; both change.
Use both when it helps
Playwright runs inside a cloud computer too. Let the desktop agent handle the parts that need the screen, and use a script for repetitive browser work. The outputs stay on the computer for its other applications.