Creates a new browser session with the specified configuration. Returns a session ID used for all subsequent operations.
Documentation Index
Fetch the complete documentation index at: https://stagehand-shrey-check-v3-metrics-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Browserbase API key for authentication
Browserbase project ID
API key for the AI model provider (OpenAI, Anthropic, etc.)
Whether to stream the response via SSE
true, false "true"
Model name to use for AI operations. Always use the format 'provider/model-name' (e.g., 'openai/gpt-4o', 'anthropic/claude-sonnet-4-5-20250929', 'google/gemini-2.0-flash')
"openai/gpt-4o"
Timeout in ms to wait for DOM to settle
5000
Logging verbosity level (0=quiet, 1=normal, 2=debug)
0, 1, 2 1
Custom system prompt for AI operations
Enable self-healing for failed actions
true
Existing Browserbase session ID to resume
Wait for captcha solves (deprecated, v2 only)
Timeout in ms for act operations (deprecated, v2 only)