Stagehand can run on any Chromium-based browser, like Chrome, Edge, Arc, and Brave.
env: "BROWSERBASE"
in your Stagehand constructor:
browserbaseSessionCreateParams
to the Stagehand
constructor. For full documentation on the browserbaseSessionCreateParams
object, see the Browserbase API documentation.
browserbaseSessionId
to the Stagehand
constructor.
browserbaseSessionCreateParams
, but it will be ignored if browserbaseSessionId
is provided.
localBrowserLaunchOptions
type to customize the browser you want Stagehand to use.
cdpUrl
config is only supported in Stagehand 2.0+.cdpUrl
to connect to a remote browser, or pass in an executablePath
to use a local browser executable.
You’ll also need to open your browser in “debug” mode. For example, if you’re using Chrome on a Mac, you can open it with the following command:
cdpUrl
to Stagehand like so: