Skip to content
AgentEnv Framework

Supported Computer Drivers

The computer drivers that are supported out-of-the-box by AgentEnv

A driver runs inside the computer: it captures the screen, sends input and serves both to agents as MCP tools. Every computer env names one in driver.

Supported drivers

A driver that doesn't support the env's base is refused when the env is written. Swap one in for a run with --set envs/<name>.driver=<driver>.

Clips 1 and 2 of 5

The computer tools

Every driver serves AgentEnv's computer_* tools, with the same names, parameters and results on every computer:

GroupToolsWhat they do
the sevencomputer_screenshot, computer_click, computer_drag, computer_scroll, computer_type, computer_key, computer_waitCapture the screen; click, drag or scroll at a point; type; press a key chord; wait
pointercomputer_pointer_move, computer_pointer_down, computer_pointer_up, computer_pointer_position, computer_pointer_listHover, press and release buttons, read the pointer
keyboardcomputer_keyboard_down, computer_keyboard_upHold keys down and release them

A screenshot returns a frame with a frame_id, and tools that act at a point take it in a frame:

ParameterDefaultMeaning
frame_idyour latest frameThe frame the point refers to
spaceframeframe for the image's pixels, norm for 0 to norm_scale
norm_scale1000The norm grid's size
buttonthe primaryThe button to press
modifiersnoneW3C key names held for the action, such as ["Shift"]
screenshotfalseReturn a fresh frame after acting

Keys are W3C key values, such as ["Control", "s"]. An error names its code and a hint: invalid_argument: 'Return' is not a W3C key value (did you mean Enter?).

computer_* input is always foreground: it moves the one pointer and goes to what has focus. Background input comes only from a driver's own tools, as each tab below shows.

Drivercomputer_* toolsGroupsRecording, at most
cua-driver7the seven15 fps, captured
aside14the seven, pointer, keyboard15 fps, captured
agent-desktop14the seven, pointer, keyboard30 fps on Linux, streamed; else 15, captured
codex-computer-use14the seven, pointer, keyboard15 fps, captured
macos-harness14the seven, pointer, keyboard15 fps, captured
reference14the seven, pointer, keyboard30 fps, streamed from x11grab

What an agent sees

The env's tools key decides which tools agents get:

toolsThe agent gets
both (default)The computer_* tools and the driver's own
standardThe computer_* tools alone
driverThe driver's own tools alone

cua-driver on ubuntu-24.04 gives 73 tools with both, 7 with standard and 66 with driver. tools sets the default role's access at each deploy and reset; a task's tool-access changes apply over it, and --set changes it for one run:

Terminal
agent-env run desktop --task probe --set envs/desktop.tools=all --dry-run
Output
Dry run: nothing is written or run.
Error: envs/desktop: env.toml: tools is 'standard', 'driver' or 'both', not 'all'

The drivers

An add_skills step with env_ids gives the agent the computer's skill, led by the vendor's where one ships.

cua-driver

envs/desktop/env.toml
type = "computer"
computer = "ubuntu-24.04"
driver = "cua-driver"
apps = [
    { env = "libreoffice", settings = { open = "figures.csv" } },
    { env = "chromium", settings = { start_urls = ["https://www.agentenvframework.com/docs"] } },
]

To try it on the shipped desktop example:

Terminal
agent-env run desktop --task agent --set envs/desktop.driver=cua-driver

trycua's computer-use driver, run as a daemon with approvals, telemetry and update checks off. Agents get its own MCP server's instructions, tools and skill pack, at the pinned version.

Basecua-driverFromIts tools
ubuntu-24.04 (amd64, arm64)0.38.0the cua-driver wheel on PyPI66, in mcp.json
omarchy-4.5 (amd64)0.47.4the cua-driver-rs release's Linux tarball66, in mcp-hyprland.json
macos-26 (arm64)0.47.10CuaDriver.app, from the cua-driver-rs release62, in mcp-macos.json
windows-11 (amd64)0.38.0the cua-driver-rs release's zip63, in mcp-windows.json

Its tools read a window's accessibility tree as element tokens (get_window_state), act by element or pixel, drive browser pages and run scripts (run_script). They default to background input, which never raises the window.

Its computer_* tools are the seven alone. On Omarchy, Super shortcuts go to Hyprland. The probe records its known failures, P6 and P7 on macOS and P4 on Windows, without failing the build. The cua-driver folder covers the rest.

aside

envs/mac/env.toml
type = "computer"
computer = "macos-26"
driver = "aside"
tasks/mac.json (the env step)
{"id": "env", "type": "deploy_env", "env_id": "mac", "env_params": {"driver_settings": {"allowed_apps": ["TextEdit"]}}}

At Inc.'s Aside Computer Use, for macos-26 alone. The driver pins Aside's daemon and CLI at 1.26.1111.1046, checked by sha256, and needs no Aside sign-in. Each agent session gets its own aside mcp --computer-use server, with one tool, repl.

repl runs the agent's JavaScript in a QuickJS sandbox with no file system, network or shell. Its one API, the computer global, acts on apps' accessibility trees in the background; start with await computer.getApp('<app name>'). allowed_apps limits the apps it opens. Its computer_* tools are agent-desktop's, from MacOSDriver. The aside folder covers the rest.

agent-desktop

To try it on the shipped desktop example:

Terminal
agent-env run desktop --task probe --set envs/desktop.driver=agent-desktop
A deploy_env step with agent-desktop's driver_settings
{"id": "env", "type": "deploy_env", "env_id": "desktop", "env_params": {"driver_settings": {"headed": true}}}

Vercel's desktop automation tool, pinned at 1.2.0 on every OS. Agents get 67 desktop_* tools, which read apps' accessibility trees and act on what they find.

With headed off, the default, it acts through the accessibility API alone and refuses double clicks, hovers and drags. On, it prefers physical input, moving the pointer and focus. Its computer_* tools are the protocol's OS drivers': X11Driver, MacOSDriver or WindowsDriver. The agent-desktop folder covers the rest.

codex-computer-use

envs/mac/env.toml
type = "computer"
computer = "macos-26"
driver = "codex-computer-use"
tasks/mac.json (the env step)
{"id": "env", "type": "deploy_env", "env_id": "mac", "env_params": {"driver_settings": {"allowed_apps": ["TextEdit"]}}}

OpenAI's Codex Computer Use: the ChatGPT app's plugin, whose MCP server runs the agent's JavaScript against OpenAI's cua API. It acts in the background on macOS and in the foreground on Windows. The driver pins ChatGPT 26.930.51102 on macOS and 26.1103.7773.0 on Windows, unpacked and never run, so no sign-in is needed.

Agents get js and js_reset. The driver approves the apps allowed_apps names, or every app when unset. js_sandbox holds the JavaScript in Codex's sandbox, on by default on macOS and off on Windows. Its computer_* tools are agent-desktop's.

Warning: js can read files and run commands

Even sandboxed, the JavaScript can read the computer's files and run commands. On Windows, the pin breaks once OpenAI ships a newer MSIX, since it serves only its latest.

The codex-computer-use folder covers the rest.

macos-harness

envs/mac/env.toml
type = "computer"
computer = "macos-26"
driver = "macos-harness"

browser-use's macOS harness, pinned at 0.2.1, for macos-26 alone. It reads an app as numbered text and acts on a number or a pixel in the background. Agents get one tool, macos_harness, which runs 1 to 20 command lines in order, such as [["get_app_state", "--app", "TextEdit"]], and stops at the first that fails. Its computer_* tools are agent-desktop's. The macos-harness folder covers the rest.

reference

AgentEnv's own driver for an X11 desktop on Linux, and the shipped desktop example's. It is the protocol's X11Driver: mss captures the screen and XTEST sends input, foreground only. It has no tools of its own, so tools = "driver" leaves its agents none. The reference folder covers the rest.

Driver settings

A task gives driver settings in its deploy_env step's env_params.driver_settings; an env.toml has no key for them. A key the driver doesn't take is refused before anything boots:

A deploy_env step with driver_settings
{"id": "env", "type": "deploy_env", "env_id": "desktop", "env_params": {"driver_settings": {"default_space": "norm"}}}
FieldDefaultMeaning
default_spaceframeThe coordinate space when a call names none
default_norm_scale1000The norm grid's size when a call names none
queue_wait_s30How long input waits for earlier input before input_busy
tap_hold_ms50How long a key is held; not on cua-driver or page
type_delay_ms10The pause between typed characters; not on cua-driver or page
max_hold_ms10000The longest hold_ms of computer_keyboard_down
layoutusThe keyboard layout; every shipped driver types in us alone
drag_duration_ms500A computer_drag's duration when the call gives none
exec_output_bytes1048576The most output a command run inside the computer returns
exec_timeout_s60Such a command's timeout when it gives none
FieldDefaultMeaning
headed (agent-desktop)falseAllow physical input and prefer it
allowed_apps (codex-computer-use)every appThe apps whose approvals the driver gives Codex
js_sandbox (codex-computer-use)on for macOS, off for WindowsWhether Codex's sandbox holds the JavaScript
allowed_apps (aside)every appThe apps computer.getApp may open; never an empty list

Last updated on

Ask a question · Report an issue

On this page