platonai/Browser4
Browser4 — an AI-native browser engine for autonomous agents, intelligent extraction, and large-scale web automation.
What it solves
Automating real browsers is normally fragile and slow: pages change and break scripts, extracting structured data from messy HTML often depends on expensive LLM calls or brittle hand-written scrapers, and processing thousands of pages on one machine quickly hits a throughput ceiling. Browser4 addresses all of these problems with a single engine purpose-built for autonomous agents, deterministic and hybrid extraction (including a zero-LLM-token route), and enterprise-scale crawling.
How it works
Browser4 exposes a browser automation shell called browser4-cli, through which both AI agents and humans drive a real browser. Commands like open, snapshot, click, fill, type, press, wait, and select operate on a live session; snapshot returns element refs (for example, e15) that can be plugged back into interaction commands, and CSS selectors are accepted as an alternative. A built-in frame switcher lets you reach content inside iframes without manual DOM evaluation.
For extraction there are two main paths. The first is interactive and deterministic: htmlsnapshot captures the page and lets you query the DOM copy with CSS selectors or X-SQL (a SQL-like query language over the DOM), producing structured results from live pages or stored snapshots without any LLM involvement. The second is LLM-powered: commands like extract accept natural-language requests but require a provider key (DeepSeek, OpenRouter, OpenAI-compatible endpoints, and others are supported). A separate tool called WebMiner runs ML clustering on downloaded HTML files to produce Excel spreadsheets and interactive reports entirely locally and with zero LLM tokens, via an encode-cluster-views pipeline.
For scale, crawl and swarm commands handle bulk and parallel page processing (swarm tasks run across machines), while batch and loop orchestrate repeated or multi-step jobs, and stateful sessions persist across commands. The runtime is CDP-native and coroutine-safe, designed for roughly 100,000 to 200,000 complex page visits per machine per day. A web status panel at http://127.0.0.1:18182/status shows live health, sessions, swarm, URL pool, and browser details. A programming-agent kernel ships 50+ coding.* tools (sandboxed shell/filesystem, scaffolding, validation) for agents that build Browser4 artifacts or Browser4 itself.
Who it's for
AI agents first: the README's quick start is a prompt you paste into agents like dsh, Claude, Codex, workbuddy, or openclaw. It is equally for developers and operators who need reliable browser automation, structured data extraction, or large-scale crawling, and for humans who want an interactive browser-driving shell with visible windows (--headed).
Highlights
- Agent Browser: AI agents and humans drive real browsers through a Rust CLI, MCP, and an agentic backend — navigate, click, fill, snapshot, batch, and loop.
- Zero-Token Extraction: X-SQL plus CSS selectors extract data deterministically from live pages or stored HTML snapshots; WebMiner ML clustering turns HTML corpora into spreadsheets and reports with no LLM tokens.
- Hybrid Intelligence: combines LLM extraction, ML clustering, X-SQL, and a progressive experience store that reuses learned selectors and blockers.
- High-Performance Runtime: coroutine-safe, CDP-native engine designed for 100k-200k complex page visits per machine per day via swarm/crawl scale-out.
- Enterprise-Scale Automation: swarm crawling, batch/loop jobs, stateful sessions, plugins, runtime skills, a browser extension, and an opt-in MCP-over-HTTP endpoint.
- Programming-Agent Kernel: 50+
coding.*tools (sandboxed shell/fs, scaffolding, validation, self-development) for agents building Browser4 artifacts — or Browser4 itself.
Related
- Project
- Project
- Project
- Project
- Project