Skip to main content
Browser Use runs autonomous agents on a Chromium it controls. Pass it a Driver session’s cdpUrl and it drives real Chrome on an ISP network instead.
Python
ChatBrowserUse takes a Browser Use Cloud model key (BROWSER_USE_API_KEY). Any LangChain-style chat model works in its place.

Notes

  • Agents take many steps. Set duration to cover the task (up to 3600 seconds) and stop the session in finally.
  • Browser Use talks CDP directly, not through Playwright, so Patchright doesn’t apply. The fingerprint problem is the same, and an agent framework issues more CDP commands than a plain script. Expect challenges on protected sites.
  • Pin the browser-use version you tested with. The Browser and Agent constructors have changed between releases. Passing cdp_url is what stops it from launching or downloading its own browser.
  • Watch the agent through the session’s live view. It’s the fastest way to see where it goes wrong.