Skip to main content
A live environment is a sandbox you start and drive yourself, instead of one a workflow execution starts for you. Use it to test a page or an app by hand, or to drive a browser from your own code.

Start one

Start a live environment with environmentStart (MCP) or POST /environments (API). Pass your organizationId, and optionally an agentId to bind it to an agent. The response carries a connection.cdpUrl, a websocket URL at wss://cdp.asteroid.ai. Point any Chrome DevTools Protocol (CDP) client at it, such as Playwright’s connectOverCDP.

Read and stop it

Read it again with environmentGet, and stop it with environmentStop when you are done. An environment you do not stop still ends on its own, at its session timeout.

How it differs from a workflow’s environment

A workflow’s environment is Browser, Linux, or Windows, and it starts and stops with the execution that uses it. A live environment is the same underlying sandbox, but it stands on its own. Nothing runs inside it unless you drive it yourself. It stays up until you stop it or it times out. See the API reference for the full request and response shape.