Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
chore: replace playwright with patchright
lynn192b42ff7977
diff --git a/README.md b/README.mdindex c4b9d4c07..1d8b0d96b 100644--- a/README.md+++ b/README.md@@ -34,9 +34,9 @@ For memory functionality (requires Python<3.13 due to PyTorch compatibility):pip install "browser-use[memory]"```-Install Playwright:+Install Patchright:```bash-playwright install chromium+patchright install chromium```Spin up your agent:diff --git a/docs/quickstart.mdx b/docs/quickstart.mdxindex aea07056a..d5eb0a5a9 100644--- a/docs/quickstart.mdx+++ b/docs/quickstart.mdx@@ -32,10 +32,10 @@ Install the dependencies:uv pip install browser-use```-Then install playwright:+Then install patchright:```bash-uv run playwright install+uv run patchright install```## Create an agentdiff --git a/examples/custom-functions/action_filters.py b/examples/custom-functions/action_filters.pyindex ef7c60280..c233ea8b1 100644--- a/examples/custom-functions/action_filters.py+++ b/examples/custom-functions/action_filters.py@@ -20,7 +20,7 @@ During each step, the agent recalculates the actions available specifically forimport asynciofrom langchain_openai import ChatOpenAI-from playwright.async_api import Page+from patchright.async_api import Pagefrom browser_use.agent.service import Agent, Browser, BrowserContext, Controllerdiff --git a/pyproject.toml b/pyproject.tomlindex 0bbdc9e7c..a99e00aee 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -18,7 +18,6 @@ dependencies = ["requests>=2.32.3","posthog>=3.7.0","patchright>=1.51.0",- "playwright>=1.51.0","markdownify==1.1.0","langchain-core==0.3.49","langchain-openai==0.3.11",diff --git a/tests/test_action_filters.py b/tests/test_action_filters.pyindex 4b8d12a90..d3f8b9e2f 100644--- a/tests/test_action_filters.py+++ b/tests/test_action_filters.py@@ -1,7 +1,7 @@from unittest.mock import MagicMockimport pytest-from playwright.async_api import Page+from patchright.async_api import Pagefrom pydantic import BaseModelfrom browser_use.controller.registry.service import Registry