Browser Use Open Source

Product · Developer tool · Engineering & development by Browser Use

The open-source Python library for browser-based AI agents.

An MIT-licensed Python library for building AI agents that drive real browsers. It provides a persistent REPL for CDP and integrates as a skill for coding agents like Claude Code and Cursor.

Price
From 0 USD
Languages
Python, TypeScript

Category: AI Agents

Programming languages
Python, JavaScript
Editors and tools
Claude Code, Codex, Cursor, Gemini CLI, Terminal
License
MIT
Deployment
Local, Cloud, On-premises
Language Support
Python 3.10+
Base Framework
Pydantic AI
  • MIT-licensed Python library for browser agents
  • Persistent REPL for raw CDP and Python execution
  • Integrates as a skill for Claude Code and Cursor
  • Supports local Chrome and cloud stealth browsers

Overview

Browser Use Open Source is an MIT-licensed Python library designed for developers to build and control AI agents that interact with websites. It allows agents to complete tasks by writing Python code against the Chrome DevTools Protocol (CDP) in a persistent REPL, running on the Pydantic AI framework. The toolkit includes a CLI that integrates with popular coding agents such as Claude Code, Cursor, and Codex, providing them with a "skill" to drive local or cloud browsers. Developers can use their own logged-in Chrome instance for free or scale to cloud stealth browsers with residential proxies for $0.02 per hour. The library supports various LLM providers, including OpenAI, Anthropic, and Google, and features tools for replaying successful runs without additional model calls.

Developer and Agent Control

  • CDP REPL Integration: The library allows agents to write Python code against raw Chrome DevTools Protocol (CDP) in a persistent REPL.
  • Run Replay and Rerunning: Developers can replay successful agent runs by loading history and rerunning clicks without new model calls per step.
  • Agent Skill Registration: The library provides a CLI that registers as a skill for coding agents like Claude Code, Codex, and Cursor.
  • Diagnostic Toolkit: The CLI includes a doctor command to diagnose Chrome connections and remote-debugging permissions.

Browser and Model Management

  • Flexible Browser Support: The library supports local Chromium, existing Chrome profiles, or remote CDP endpoints.
  • Cloud Browser Defaults: By default, the library can launch a Browser Use Cloud browser that stops automatically when the run ends.
  • LLM Framework Support: The library uses Pydantic AI and supports swapping default models for ChatOpenAI, ChatAnthropic, or ChatGoogle.
  • Browser Interaction Tools: The CLI allows agents to open tabs, click, type, read the accessibility tree, and run JavaScript.

Use cases

  • Developers build custom browser agents that navigate websites and extract data using Pydantic AI.
  • Coding agents like Claude Code use the CLI to test signup flows and fill forms in a local Chrome instance.
  • Teams replay successful agent runs to automate repetitive web tasks without incurring new model token costs.

Specifications

Programming languages
Python, JavaScript
Editors and tools
Claude Code, Codex, Cursor, Gemini CLI, Terminal
Integrations
Pydantic AI, 1Password, Playwright, Puppeteer, Stagehand v3, n8n, LiveKit Agents
License
MIT
Deployment
Local, Cloud, On-premises
Language Support
Python 3.10+
Base Framework
Pydantic AI
Cloud Browser Cost
$0.02 per hour
Default Model
bu-fast
Browser Protocol
Chrome DevTools Protocol (CDP)

How it works

  1. Installation and Setup: Install the library using pip or uv, and set up the BROWSER_USE_API_KEY if using cloud features.
  2. Register Agent Skills: Paste a single prompt into a coding agent like Claude Code to install the CLI and register the browser skill.
  3. Execute Browser Tasks: Define a task in plain English; the agent completes it by writing Python code against the browser's accessibility tree and CDP.

Pricing

Open Source Library
Free (MIT License)

FAQ

Does it use my own Chrome?

By default, it attaches to your running Chrome over CDP, allowing the agent to see your open tabs, cookies, extensions, and logins.

What does it cost?

Browser Use Open Source is an MIT-licensed Python library and is free to use. Cloud browsers used through the library cost $0.02 per browser-hour.

How is it different from Playwright MCP?

The agent writes the exact Python it needs against a real, logged-in browser, and the same commands can scale to cloud stealth browsers.

Open source docs

Added by AntSpace from public sources (docs.browser-use.com).

Related

More products by Browser Use