stagehand.py
Run the Example
1
Set up your virtual environment
2
Prepare Node.js
Install Node.js 20 or later, then verify that
npx is available:3
Install Python dependencies
4
Export API keys
5
Run the agent
Save the code above as
stagehand.py, then run:Available Tools
See Browserbase MCP setup for hosted transport and advanced configuration.