Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

agent-browser

$ agent-browser Official Med Risk
Vercel Labs · Browser & Web · Apache-2.0 · macos / linux / windows

agent-browser drives headless browsers via compact accessibility-tree snapshots and deterministic element refs (@e1, @e2) instead of brittle CSS selectors or heavy screenshots. Designed natively for AI agents with --json output and kebab-case flags.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
npm install -g agent-browser
CLI vs MCP Decision CLI Preferred vs MCP

Built specifically to outperform bloated browser MCP schemas by returning compact @e accessibility snapshots and --json directly in bash.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 25 / 25

Purpose-built for AI coding agents: accessibility @e refs, --json output, bounded maxOutput config, and official agent skills.

  • Native --json output, accessibility @e refs, and agent-browser.json schema
Trust & Safety 20 / 25

Local-first execution with restricted project-local ./agent-browser.json keys, though browser navigation can execute untrusted page JS and submit forms.

  • Local config restricts untrusted keys; headless browser executes page scripts
Setup & Portability 12 / 15

Easy npm install with Rust native binary, though still requires Chromium (local or remote provider) to drive pages.

  • Distributed via npm (agent-browser), requires Chromium runtime
Utility & Efficiency 15 / 15

Accessibility snapshots consume a fraction of the tokens required by raw DOM dumps or repeated screenshots.

  • Compact @e1 ref snapshots shrink browser context footprint
Maintenance & Lineage 9 / 10

Official Vercel Labs repository (vercel-labs/agent-browser) under Apache-2.0.

  • Official vercel-labs/agent-browser repository
Docs & Verifiability 9 / 10

Thorough README, JSON schema (agent-browser.schema.json), and agent skill instructions.

  • Published JSON schema and docs at agent-browser.dev

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Stores optional session profiles/cookies locally under ~/.agent-browser/ or configured paths; no cloud auth required.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Free, Apache-2.0 open-source CLI; uses local Chromium or optional remote browser providers.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# agent-browser Agent Rules
- Always re-run `snapshot -i --json` after navigation or clicks so `@e` element refs stay fresh.
- Use `--` before literal text in `fill`/`type` (e.g. `fill @e2 -- "--flag"`) and close sessions when done.

Agent-Ready Command Recipes

Safe Read-Only Queries

Open a URL and capture an interactive accessibility snapshot
agent-browser open http://localhost:3000 && agent-browser snapshot -i --json

Navigates headlessly and prints compact interactive @e element refs as JSON.

Controlled Writes & Previews

Fill an input element safely using end-of-options marker
agent-browser fill @e2 -- 'test-query'

Types into the referenced form field (-- prevents option-shaped text from parsing as flags).

Strengths for Agents

  • + Purpose-built @e1 accessibility tree snapshots save huge numbers of LLM tokens.
  • + First-class --json output and strict kebab-case CLI flags.
  • + Restricts local ./agent-browser.json keys for safer repo-level defaults.

Caveats & Pitfalls

  • ! Maintains stateful background browser daemon sessions that should be closed explicitly.
  • ! Requires local Chromium or an external browser provider.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI