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
document bin scripts
Nick Sweetingaad9ba70f9f8
diff --git a/docs/development/local-setup.mdx b/docs/development/local-setup.mdxindex 7b41c471d..559060ee7 100644--- a/docs/development/local-setup.mdx+++ b/docs/development/local-setup.mdx@@ -21,6 +21,21 @@ uv sync --all-extras --devecho "BROWSER_USE_LOGGING_LEVEL=debug" >> .env```+## Helper Scripts++We provide several convenient shell scripts in the `bin/` directory to help with common development tasks:++```bash+# Complete setup script - installs uv, creates a venv, and installs dependencies+./bin/setup.sh++# Run all pre-commit hooks (formatting, linting, type checking)+./bin/lint.sh++# Run the core test suite that's executed in CI+./bin/test.sh+```+## PrerequisitesBrowser Use requires Python 3.11 or higher. We recommend using [uv](https://docs.astral.sh/uv/) for Python environment management.@@ -98,6 +113,8 @@ After setup, you can:```bash# Run the linter on the whole project (must pass for PR to be allowed to merge)uv run pre-commit run --all-files+# or use our convenience script+./bin/lint.sh# Install the linter & formatter pre-commit hooks to run automaticallypre-commit install --install-hooks@@ -109,7 +126,10 @@ uv run type### Tests```bash-# Run tests+# Run all tests that run in CI+./bin/test.sh++# Run specific testsuv run pytest # run everythinguv run pytest tests/test_controller.py # run a specific test fileuv run pytest tests/test_sensitive_data.py tests/test_tab_management.py # run two test files