Features / Desktop and computer use

A desktop your agent can see and use.

Every sandbox runs a 1920×1080 desktop with Google Chrome. Agents take screenshots, click, type and scroll through the CLI, the API or MCP. Playwright and Puppeteer connect to the same Chrome, and you can watch it all in your browser.

€10 of usage for 30 days · No credit card

curl -fsSL https://pols.so/install.sh | sh
1920 × 1080
Screenshot of the whole desktop
345 ms
Each click, type, key or scroll action
90–160 ms
Playwright connected to Chrome
1.8 s

Measured on 30 September 2026 against our sandbox host. Playwright ran on a machine outside the data centre.

A gantry over the screen

The desktop lies on the bench, and the machine works it like a person would. The camera on the mast takes the screenshot. The gantry carries the finger probe to a pixel and presses it, the solenoids type and press keys, and the plug on the side connects Playwright to Chrome over CDP.

  1. Screenshot cameraA PNG of the whole desktop, mouse pointer included, in 345 ms. Take one after every action: an action returns once it is sent and does not wait for the screen to change.
  2. Finger probeClicks, double-clicks and drags at pixels counted from the top left, x 0 to 1919 and y 0 to 1079. Each action took 90 to 160 ms.
  3. GantryTakes the finger anywhere on the screen. Mouse and keyboard work for any application: native programs, file dialogs, browser extensions.
  4. Key bankTypes text at about 80 characters a second, up to 10,000 at a time, and presses X key names and chords such as Return or ctrl+l.
  5. CDP plugpols browser cdp returns a WebSocket URL for Playwright or Puppeteer, valid for 5 minutes and only for this sandbox. Chrome's debugging port stays inside the VM; pols relays the connection.
  6. The desktop1920×1080 with Google Chrome, in every running sandbox. What CDP does shows on it too, so you can mix both.
  7. The sandboxEverything here works one sandbox. Open the same desktop in your browser with pols desktop to watch, or take over the mouse.

Three ways in

  1. Pixels

    pols computer takes a screenshot and sends clicks, drags, typing, key chords and scrolling, at pixel coordinates from the top left. It works for any application, file dialogs included.

  2. Chrome over CDP

    pols browser cdp returns a WebSocket URL for Playwright or Puppeteer, valid for 5 minutes and only for that sandbox. Chrome's debugging port listens only inside the VM; pols relays the connection.

  3. Your own eyes

    pols desktop prints a link to the desktop in your browser. Watch an agent work, or take over the mouse. The link lasts 12 hours and ends when the sandbox stops.

From the CLI or from code

An agent loop is a screenshot, an action and another screenshot to check the result. Over MCP, the same actions are the tools computer_screenshot, computer_click, computer_type and so on, andbrowser_cdp for the browser.

For web pages, CDP is faster and more reliable: selectors instead of coordinates.

pols CLI
$ pols computer screenshot web -o before.png
$ pols computer click web 960 540
$ pols computer type web 'hello world'
$ pols computer key web Return
$ pols computer screenshot web -o after.png
TypeScript
import { createPolsClient } from "@peweo/pols";
import { chromium } from "playwright";

const pols = createPolsClient({
  apiKey: process.env.POLS_API_KEY!,
});
const { websocket_url } = await pols.browser.cdp("web");

const browser = await chromium.connectOverCDP(websocket_url);
const [context] = browser.contexts();
const page = await context.newPage();
await page.goto("https://example.com");

€10 of usage for 30 days · No credit card

Questions

Can several agents use one sandbox's desktop at the same time?

Give each agent its own Linux user with pols users add, and pass --user to pols computer, pols browser cdp and pols desktop. Each user gets a desktop of its own with its own Chrome, so agents do not click into each other's windows. This keeps homes and screens apart, not security: use separate sandboxes for agents that must not reach each other.

What happens if I take over the mouse while an agent works?

While you hold control, the agent's desktop actions fail with desktop_controlled, naming you. Control ends when you hand it back, leave the page, or after 2 minutes without pointing, clicking or typing.

Can I record what happens on the desktop?

Yes. Run pols-record start and pols-record stop inside the sandbox; it writes an MP4 at 30 frames a second to ~/recordings/. With content capture on, the timeline also keeps a thumbnail of each screenshot for 7 days.

Does the desktop cost extra?

No. It runs inside the sandbox, so what it uses is billed as the sandbox's CPU and RAM, like any other program.

Does an action wait for the screen to change?

No. An action returns once it has been sent. Typing runs at about 80 characters a second, up to 10,000 characters per action, so take a screenshot afterwards to check the result.

Does an open CDP connection drop when its URL expires?

No. Connect within 5 minutes of getting the URL; a connection that is already open stays open. Revoking the API key that created it ends it.

Start with one machine.

Install the CLI, sign up, and give your agent somewhere to work.

curl -fsSL https://pols.so/install.sh | sh

€10 of usage for 30 days · No credit card

Start my free trial

€10 of usage for 30 days · No credit card