Skip to main content

Environment shape

An environment is the surface an agent acts on. Create, retrieve, list, update, patch, and restore return it. An agent can also define one inline, in environments. kind decides the shape: Other kinds in the schema are in preview: using one returns 403 with environment_not_public.

Browser

A browser H runs in the cloud for each session.
Browser
string
Catalog identifier, with an optional single org/ namespace prefix. Can’t contain :, which pins a revision. Immutable. h/ IDs are H’s reserved, read-only environments.
string
web.
string
cloud: H runs the browser.
string | null
Initial URL to open, an absolute http or https URL. Defaults to https://www.bing.com.
boolean
Whether the browser runs without a visible window. Defaults to false.
string | null
An existing browser session to attach to instead of starting a new one.
object
How the agent perceives and drives the browser, one of the modes, keyed by type.
string
visual (default): acts on screenshots by viewport coordinates. text: reads paginated markdown, no screenshots.
integer
visual only. Viewport width in pixels. Defaults to 1200.
integer
visual only. Viewport height in pixels. Defaults to 1200.
boolean
visual only. Also include the viewport’s text as markdown with each screenshot. Defaults to false.
integer
text only. Characters of page text per chunk. Defaults to 20000.
boolean
Start the browser on the agent’s first browser action instead of when the session starts, skipping the initial observation. Defaults to false.
number
Seconds the agent waits after each action, so the next observation shows the settled page. 0 to 10, default 1.0.
string | null
A vault the agent signs in to sites with. Must belong to your organization.
string | null
A browser profile loaded at start, restoring saved cookies and storage. Must belong to your organization.
boolean
Load your default browser profile instead of naming one, creating an empty one on first use. Can’t be combined with browser_profile_id.
boolean
Save the session’s final browser state back into the loaded profile when it ends. Requires browser_profile_id or use_default_browser_profile. Best-effort: if another session is already persisting the profile, the session starts read-only.
object | null
Proxy settings for a newly provisioned browser. Ignored when session_id attaches to an existing one. Holds one of:
object | null
A proxy H provisions: pool (residential, the default, or datacenter), country (two-letter ISO code), and sticky (keep one exit IP for the session, default true). Credentials never appear in your requests.
string | null
Your own HTTP, HTTPS, or SOCKS proxy URL, credentials inline, for example http://user:pass@host:port. Reads back as *** on a session.

Desktop

Your own computer, reached through the Python SDK or holo (Your desktop).
Desktop
string
Catalog identifier, as on a browser.
string
desktop.
object
How the agent perceives and drives the machine, keyed by type.
string
visual (default): screen, mouse, and keyboard, with a screenshot after each step. shell: commands and files, with the screen and browser through CLIs.
number
visual only. Seconds to wait after each mouse or keyboard action. 0 to 10, default 0.5.
string
shell only. not_required (default), or required to hold each command for your approval unless it starts with one of allowed_commands.
string[]
shell only. Commands that run without approval, each with any arguments, such as git status.
string
shell only. if_available (default) confines commands on a machine that has the sandbox and runs them as you on one that does not. required runs no command on a machine that cannot confine them.
string[]
shell only. Hosts confined commands may reach besides the Python and npm registries, such as github.com or *.example.com.
string[]
shell only. Folders confined commands may write besides the session’s own, absolute or under ~/, such as ~/Projects/app.
string | null
The desktop’s command channel. The Python SDK and holo set it. Set it yourself only to connect from another client.
boolean
Connect on the agent’s first desktop action instead of when the session starts, skipping the first screenshot. Defaults to false.
integer | null
Maximum screenshot width, 1 to 1920 pixels. null uses 1920. Screenshots are only shrunk, never enlarged.
Your machine’s own settings can override the shell fields: see Settings.