Skip to content
ML2
Multi-Step Agent SetupsTool#Open sourcebrowser automationPython

browser-use

Added Updated

Published Last verified Released

Our verdict

The most direct way to let a model operate websites that have no API. Version 1.0 is a small design: the model writes Python cells in a persistent session and drives Chrome through the DevTools Protocol. The library is MIT-licensed and free, but the defaults point at the paid Browser Use gateway and cloud browsers, so set a local browser and your own model if you want it to cost nothing beyond inference. Pin the exact version: the project says releases can break things.

Who it's for
Python builders automating web tasks
Leverage
Automate sites without APIs
Effort
Medium
Date added

What browser-use does

browser-use is an open-source library for A.I. browser agents. In 1.0, built on Pydantic AI, you give an Agent a task and the model writes Python in one persistent REPL, using browser-harness helpers and raw Chrome DevTools Protocol (CDP) calls, until it reaches a result. It can drive a fresh local Chromium, the Chrome you already have open with your logins, a copy of a Chrome profile, or a Browser Use Cloud browser. It works with OpenAI, Anthropic and Google models built in, or any Pydantic AI model string. There is also a CLI that gives Claude Code, Codex or Cursor browser access, and a hosted Cloud API that runs the agent for you.

How builders use browser-use

  • Pull structured data from a site with no API: pass output_model_schema with a Pydantic model and read result.structured_output instead of parsing text.
  • Run a task behind your own login with Browser('chrome'), which drives the Chrome you have open, or keep a separate login with a user_data_dir profile.
  • Give your coding agent a browser: install the CLI with uv tool install, run browser-use skill install, and let Claude Code or Codex use it for checks on a live site.
  • Upload and download files: put inputs in the agent's workspace and name them in the task; downloads land in workspace/downloads and are listed in result.downloads.

Which browser the agent drives

SettingWhat it means
Browser()A Browser Use Cloud browser, the default, billed to your Browser Use key
Browser('chromium')A fresh local Chrome or Chromium with a temporary profile, deleted afterwards; headless when there's no display
Browser('chrome')The Chrome you have open, with your logins (turn on remote debugging once)
Browser('chrome', profile='Work')A new Chrome on a temporary copy of that profile, with sync off

Guardrails, and what they don't cover

  • sensitive_data lets the model type a password with type_secret, and the value is redacted from output, checkpoints and results. Model-written Python can still read it, and screenshots or page JavaScript can expose it.
  • allowed_domains and prohibited_domains block navigation to other sites, but requests a page makes to other hosts aren't filtered. The project calls it a guard for an aligned model, not a sandbox, and says to run untrusted tasks in a container or VM.
  • CAPTCHA solving and stealth are features of the cloud browsers, with no guarantee for every site.

browser-use: limits and gotchas

  • Releases move fast and can break code; pin browser-use==1.0.2 (or whatever you tested) and upgrade on purpose. Code written for 0.x needs the migration guide.
  • The default model and browser are paid Browser Use services. Free use means a local browser plus your own model key or a local model.
  • Each step is a model call, so long tasks are slower and costlier than a recorded script; for a stable flow, a plain Playwright script is cheaper.
  • Automating a site still has to respect that site's terms, and logins you don't own are off limits.

browser-use compared with other tools here

  • Stagehand: TypeScript and Browserbase: you write normal code and call A.I. only for the steps that change, which is easier to make repeatable.
  • Playwright MCP: gives a coding agent a browser through MCP for testing your own app, without writing an agent loop.
  • Crawl4AI: for reading and extracting pages at scale; it crawls rather than clicking through tasks.

When to pick browser-use

  • Pick browser-use if you work in Python and the task needs clicking, typing and judgment on sites with no API.
  • Pick Stagehand if your stack is TypeScript or you want most steps as deterministic code.
  • Pick a crawler like Crawl4AI or Firecrawl if you only need page content, not actions.
  • Use Browser Use Cloud if you need many browsers in parallel, saved cloud profiles or CAPTCHA handling.

browser-use questions

Is browser-use free?

The library is free and MIT-licensed. Model inference and Browser Use Cloud browsers are paid; new Google, GitHub or Microsoft signups get $1 of cloud credit.

Which Python version does it need?

Python 3.11 or newer.

Can I use my own model?

Yes. ChatOpenAI, ChatAnthropic and ChatGoogle are built in, ChatOpenAI accepts any compatible base_url, and any Pydantic AI model string works.

Does it work inside Claude Code or Codex?

Yes, through the CLI: install it with uv, run browser-use skill install, and connect it to your browser.

Related discoveries

See the newest picks →
  • ToolMulti-Step Agent Setups

    Stagehand

    Mix A.I. actions with code for more reliable web automation.

    Effort: Medium#Open source

Get the best new A.I. picks in your inbox

The best new agent workflows and tools we’ve vetted, with a clear verdict on each. Short, occasional, useful.

More in Multi-Step Agent Setups →

Free. No spam. Unsubscribe anytime.