This guide is compatible with Stagehand v3. If you’re using an earlier version, refer to the Stagehand migration guide.
Prerequisites
- A Notte API key (get one here)
- An LLM API key (e.g., OpenAI)
- Stagehand v3
Adding Notte to existing Stagehand implementations
If you already have a Stagehand v3 implementation, you can switch to using Notte’s cloud browsers by updating your browser configuration.1. Install the SDKs
2. Connect Stagehand to a Notte browser
Create a Notte cloud browser session and pass its CDP URL to Stagehand:stagehand_basic.py
Complete example
A production-ready script using Stagehand’sobserve, act, and extract on a Notte browser:
stagehand_complete.py
.env file:
Benefits of using Notte with Stagehand
- Anti-detection: Notte’s stealth mode keeps your automations undetected
- Captcha solving: Built-in captcha solving handles CAPTCHAs automatically
- Residential proxies: Route traffic through residential proxies in 195+ countries
- Live view: Debug automations in real-time with live view
- Session replay: Record and review runs with session recordings
- No local browser: Run automations without installing or maintaining browsers locally

