Skip to main content

Where the agent acts

Your browser

Chrome on your machine, with your logins. web on user_device.

Your desktop

Your screen, mouse, and keyboard by sight, or commands, files, and apps by code in shell mode. desktop.

Cloud browser

A browser H hosts per session. The default. web on cloud.

How it works

The agent works one step at a time: look at the screen, reason, act. Each environment gives the agent a fixed set of actions plus guidance on using them. The browser, for example, adds navigate, click, type, scroll, and read. A desktop in shell mode adds running a command and reading, writing, and editing a file. To shape how the agent uses them, set the agent’s instructions or attach skills. To add your own functions, use custom tools.

Pre-built environments

H ships browsers in the h/ catalog. List them with GET /api/v2/environments.

Create your own

Most agents define their environment inline, in the agent itself:
When several agents share one, create it in your catalog and reference it by id: "environments": ["wide-browser"]. The Cloud browser page lists every browser field.

Pin a revision

Every write to a catalog environment creates a numbered revision: create makes revision 1, and each update or patch adds the next one. Pass id:N in an agent’s environments. "environments": ["wide-browser:2"] keeps using revision 2 after later edits. A bare id uses the latest. References resolve when the agent is written and again when a session is created. An older id that contains : still matches itself first. A session reports the revisions it ran in dependency_revisions. Retrieve an environment reads a revision, List environment revisions lists them, and Restore an environment revision rolls back. Update an environment guards concurrent edits with ETag and If-Match.