agent-browser

agent-browser

Vercel Labs' native-Rust browser automation CLI for AI agents — renders pages as compact text snapshots to keep token usage tiny.

🔗 Visit agent-browser
📁 Editors, IDEs & Dev Tools🗣️ English📅 November 8, 2026

Description

agent-browser gives an AI assistant a web browser it can actually afford to use. When an AI 'reads' a webpage, the raw page code is enormous — like photocopying a whole phone book to look up one number. agent-browser instead hands the AI a clean, numbered summary of what's on screen, so it can click, type and navigate while reading a fraction of the text.

Technically, it's a 100% native Rust CLI from Vercel Labs: it drives real browsers and renders each page as an accessibility-tree text snapshot with stable element references, which an agent uses for precise interactions (click @ref, fill @ref). It ships 50+ commands covering navigation, forms, downloads and screenshots, persists sessions with authentication state, and supports multiple backends including cloud browser providers. Installation via npm or Homebrew; Apache-2.0 licensed, free, and trending hard since launch (~47k GitHub stars).

💬 Our review

The short version: agent-browser is what Playwright looks like when it's redesigned for LLMs instead of test suites — snapshot-first, token-frugal, free — and it's quickly becoming the default way to give agents a browser.

The traditional stack (Playwright, Puppeteer, Selenium) was built for deterministic test scripts: rich APIs, DOM-level control, and enormous page representations that burn an agent's context window. Bolting an LLM onto them works — frameworks like Browser Use did exactly that in Python — but the economics are poor. agent-browser flips the model: the accessibility-tree snapshot with element references is the native interface, which cuts tokens dramatically and makes agent actions more reliable (stable refs instead of brittle selectors). Being Rust-native, it starts fast and runs anywhere; being Vercel-backed, it ships momentum and integrations. The honest limits: it's CLI-first (your agent needs shell access or an MCP bridge), it's young compared to Playwright's decade of edge cases, and heavy anti-bot sites still require pairing it with hosted stealth browsers like Browserbase (which it can drive as a backend). It's free, so for anyone building agents that touch the web, the evaluation cost is an afternoon — and the token savings usually pay that back immediately.

💰 Pricing

FreeOpen source (Apache-2.0) via npm or Homebrew; optional cloud browser backends billed by their providers
Open source $0

📊 Global score

50Average
🌐Availability15/100Faible

1 language · 0 platform

📄Profile85/100Excellent

Profile completeness

🤖 AI-enriched data

💰 Pricing model
🆓 Free

Open source (Apache-2.0), $0; optional cloud backends separate

👥 Target audienceAI-agent builders and developers automating web tasks with LLMs
🗣️ LanguagesEnglish
🌍 Target countriesGlobal
👍

Pros

Minimal token footprint

Stable refs = reliable actions

Rust speed, single binary

Vercel-backed momentum

👎

Cons

CLI wiring required

Young ecosystem

Anti-bot walls need cloud pairing

❓ Frequently asked questions

What is agent-browser?▼
How is it different from Playwright or Puppeteer?▼
Does it handle logins and sessions?▼
Can it get past anti-bot protection?▼
Is it worth the money compared to alternatives?▼
Which tool should you pick for your case?▼