browser-use/browser-use-pi
A TypeScript browser agent SDK built on Pi Mono, persistent V8 and raw CDP.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
Teams embedding model-driven Chrome workflows that need follow-ups, saved session state and application-ready results.
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.
Quick Start & Installation
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=...
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| browser-use-pi ★ | 489 | +3 | JavaScript | MIT | A TypeScript browser agent SDK built on Pi Mono, persistent V8 and raw CDP. |
| browser-use | 122.7k | +477 | Python | MIT | Python REPL and CDP for adaptive browser automation |
| jev-ultrafast | 24.8k | +73 | Python | MIT | A DOM-indexed browser agent that batches operation and target decisions. |
| ruflo | 82.8k | +342 | TypeScript | MIT | A TypeScript orchestration layer for coding agents, with shared memory and MCP |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/browser-use/browser-use-pi.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about browser-use-pi
How do I integrate a multi-step session into an application?
Does the SDK require a GPU, and what should I size for?
Can we ship it commercially and run it with our own browser?
When is this a better fit than direct Playwright automation?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy