# Repository Briefing: browser-use/browser-use-pi
> Source: https://repoforai.com/repo/browser-use/browser-use-pi (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/browser-use/browser-use-pi
- **Official Docs / Website**: https://browser-use.com
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: A (77/100 · Maintenance 35/35 · Adoption 11/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: API, CLI
- **Momentum**: 489 ★ total (+1 24h / +3 7d) · 26 forks
- **When to Use**: Best for: Teams embedding model-driven Chrome workflows that need follow-ups, saved session state and application-ready results. Skip if: The workflow needs deterministic replay, has a stable path better served by a script, or you cannot isolate generated code from sensitive files and network resources.

## Overview
```text
### Architecture & Core Mechanics
Browser Use Pi is a TypeScript SDK in which Pi Mono handles model-driven decisions and a persistent V8 REPL executes generated JavaScript. The code drives Chrome over raw Chrome DevTools Protocol (CDP), with accessibility-tree snapshots and screenshots feeding back into the agent loop. Helpers and variables created in the REPL can be reused across steps instead of being rebuilt for every action.

The package depends on @earendil-works/pi-agent-core, @earendil-works/pi-ai and @earendil-works/pi-coding-agent, alongside devtools-protocol and typebox. Integration takes place at the SDK boundary or through the declared bu-pi-server executable. Generated JavaScript runs in a worker that can be terminated, but it has filesystem and network access.

### Key Capabilities & Differentiators
BrowserUse.create() configures the model, browser and workspace. run() starts a task, and followUp() continues on the same agent. Saved logins and persistent workspaces let related tasks reuse state. The SDK uses Pi's model catalog and transports and supports custom providers. The quickstart pairs OpenRouter with Browser Use Cloud; your own Chrome is also an option. Model capabilities and access vary by provider.

Streaming, hooks and typed results give applications control over progress and outputs. Task execution supports compaction and step, time or cost limits that can retain partial work. For interaction-heavy tasks, ultrafast mode exposes a compact accessibility tree, acts on its node IDs and waits briefly after each action. That is a different interaction strategy, not a quantified performance guarantee. Interaction highlights, recordings and GIF exports support review.

### Trade-offs & Limitations
Compared with a deterministic Playwright script, this agent can choose the next action from page state and write helpers as it goes. That is useful when page structure or navigation paths vary. For stable workflows with known inputs and assertions, direct automation is easier to reproduce and debug. Model-guided execution adds provider cost and variable completion behavior; budgets can bound a run, but cannot make it deterministic.

Browser Use Cloud removes the need to operate Chrome locally but introduces a service dependency. Running your own Chrome gives you control over browser placement and operation without eliminating a remote model dependency. A killable worker limits how long code can run; it does not sandbox filesystem or network access. Use an isolated host for untrusted tasks and treat saved login state as sensitive. MIT permits commercial use, independently of provider terms.

### Hardware & Deployment Guide
Install @browser_use/pi with npm, pnpm or Bun. The runtime minimums are Node 22.19+ or Bun 1.3.14+; Bun deployments still need Node for the V8 worker. The cloud quickstart uses OPENROUTER_API_KEY and BROWSER_USE_API_KEY and requires no local Chrome. Supplying your own Chrome changes where the browser runs, not where the model runs: a remote model still requires provider connectivity.

Size the application host for SDK processes, V8 workers and concurrent sessions, and account for Chrome separately on its host if you operate it yourself. Isolate untrusted tasks and keep sensitive credentials out of their environment. Anonymous run counters are enabled by default; turn them off with telemetry: false or DO_NOT_TRACK=1. No GitHub release is listed, so pin the version you evaluate and validate upgrades against your own workflows.
```

## Key Capabilities
```text
- Execution: A persistent V8 REPL retains JavaScript helpers across steps and drives Chrome over raw CDP.
- Model integration: Uses Pi's model catalog and transports, with custom providers supported.
- Session state: Follow-ups, persistent workspaces and saved logins support related tasks without starting from scratch.
- Interaction mode: ultrafast exposes a compact accessibility tree and acts on node IDs with brief waits.
- Application control: Streaming, hooks, typed results and compaction support integration; step, time and cost limits can preserve partial work.
- Observability: Interaction highlights, recordings and GIF exports make browser actions reviewable.
```

## Quick Start / Clone
```bash
npm install @browser_use/pi
# or: pnpm add @browser_use/pi
# or: bun add @browser_use/pi
export OPENROUTER_API_KEY=...
export BROWSER_USE_API_KEY=...
```
