Lightpanda Browser
A lightweight, scriptable headless browser for AI and automation workflows.
- Source repo
- lightpanda-io/browser
- Stars
- ★ 43k
- Last updated
- today 1.0.7
- FARS reviewed
- Nov 08, 2026 +4 new
- License
- AGPL-3.0
- Primary language
- Zig
- FA score
- 67/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free, no paid service needed
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Data collection developers who need to fetch many pages and save them as HTML or Markdown.
- Not a fit if
- Teams that require a native Windows browser
- Workflows that depend on a full graphical rendering engine
- Website
- lightpanda.io ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-04latest release 1.0.7 (2026-12-04)+31.6 ★/day over 7 days
- Source review
- 67/100 · Some gaps
What does this agent do, and when should you use it?
Lightpanda is a headless browser written from scratch in Zig; it is not based on Chromium, Blink, or WebKit and has no graphical rendering engine. Its CLI fetches pages and exports content, while its browser server exposes CDP and WebDriver Bidi for clients such as Puppeteer. The built-in lightpanda agent can operate the browser from natural-language tasks and save sessions as replayable JavaScript PandaScript. Lightpanda also offers an MCP server over stdio or HTTP and an optional Docker deployment. In the README's stated AWS EC2 m5.large benchmark, it reports 123 MB peak memory and 5 seconds for 100 pages; those figures apply to that specific test setup.
Run lightpanda fetch to load a URL and export HTML, Markdown, PNG, PDF, or structured metadata. Run lightpanda serve to expose a CDP service, optionally with WebDriver Bidi, so clients such as Puppeteer can navigate pages, execute JavaScript, inspect the DOM, click, and fill forms. lightpanda agent accepts tasks through a configured model provider, operates pages, and extracts structured data; /save exports a PandaScript that can be replayed with lightpanda run. Run lightpanda mcp to provide browser tools to MCP clients over stdio or HTTP.
- Data collection developers who need to fetch many pages and save them as HTML or Markdown.
- Automation teams that want Puppeteer or Playwright to navigate pages, click controls, and fill forms.
- Content teams that need to extract JSON-LD, OpenGraph, Twitter card, or other page metadata.
- Engineers who want to prototype browser tasks in natural language, then save and replay them as JavaScript.
- Self-hosting teams that want to provide browser sessions to one or more agents through MCP.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
brew install lightpanda-io/browser/lightpandadocker run -d --name lightpanda -p 127.0.0.1:9222:9222 lightpanda/browser:latest
- Ports
9222- Install notes cover
- Windows · macOS · Linux · WSL · Docker
How do you install or deploy this agent?
Download a nightly binary for Linux or macOS, or run the Docker image. Linux release binaries require glibc; Windows users need to install Lightpanda inside WSL2. Source builds require Zig 0.15.2 and the dependencies listed in the README.
brew install lightpanda-io/browser/lightpandayay -S lightpanda-nightly-bindocker run -d --name lightpanda -p 127.0.0.1:9222:9222 lightpanda/browser:latestHow do you use this agent?
Fetch a page and export Markdown:
./lightpanda fetch --obey-robots --dump markdown https://example.comStart a CDP server:
./lightpanda serve --host 127.0.0.1 --port 9222Start the MCP stdio server and add this configuration to your MCP client:
{
"mcpServers": {
"lightpanda": {
"command": "/path/to/lightpanda",
"args": ["mcp"]
}
}
}For the built-in agent, API keys can be detected from the environment; a no-model REPL is also available. Model-driven tasks require credentials for a supported provider.
./lightpanda agent --task "top story on news.ycombinator.com?"
./lightpanda agent --no-llm
./lightpanda run session.jsSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- Built from scratch in Zig without Chromium, Blink, or WebKit; the README reports about 16x lower peak memory and 9x faster execution than Headless Chrome in its stated benchmark.
- Supports CDP and WebDriver Bidi, with documented connections from browser automation clients such as Puppeteer.
- Offers page exports, a built-in agent, replayable PandaScript, and an MCP server.
- The agent documentation lists Anthropic, OpenAI, Gemini, Vertex AI, Mistral, Hugging Face, Vercel AI Gateway, OpenRouter, OpenAI-compatible endpoints, and local models.
- There is no native Windows binary; Windows users need WSL2.
- Linux release binaries are linked against glibc and do not run directly on musl distributions such as Alpine.
- Model-driven agent tasks require provider credentials, and the README does not state model call prices.
- There is no graphical rendering engine, so workflows that depend on full visual rendering may not fit.
How does this agent compare with similar options?
The README benchmarks Lightpanda against Headless Chrome for memory and execution time and clarifies that Lightpanda is not a Chromium fork. It also contrasts building a browser from scratch with forking Chromium.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Lightpanda Browser This agent | 67 · Some gaps | CLIFree | ★ 43k | today | Zig | OpenAI API · Claude API |
| Moli | 59 · Major gaps | CLIFree | ★ 25k | today | Rust | — |
| Obscura Headless Browser | 68 · Some gaps | CLIFree | ★ 39k | today | Rust | Claude.ai |
| OpenCLI Browser Automation CLI | 61 · Some gaps | CLIFree | ★ 32k | 1d ago | JavaScript | Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The product offers local fetch, CDP, Bidi, and MCP interfaces, with loopback or Unix-socket binding options that help scope access, so least_privilege scores 2. Automation can navigate pages, click, and fill forms, but the packet does not describe confirmation for consequential actions, so user_confirmation scores 1. The README states that usage telemetry is collected and sent by default, gives a disable variable and privacy-policy pointer, and explains that MCP cookies and storage persist across runs, so data_flow_transparency scores 2. API keys can be supplied through environment variables, but key protection and log redaction are not described, so sensitive_data_handling scores 1. Dependencies and build prerequisites are listed, and GitHub Actions use pinned commit references, but the packet shows no dependency audit or vulnerability response evidence, so dependency_security scores 2. Web access and enabled telemetry have external effects; robots compliance is an optional flag, so external_effects scores 1. Timeouts and session closing are described, but recovery or rollback of side effects is not, so rollback scores 1. Source copyright notices and the AGPL text are clear, so source_attribution scores 2.
The README gives a reasonably complete account of the product, interfaces, and build requirements; AGENTS.md covers contribution, build, and test workflows, and CLAUDE.md points to it. The materials are broadly consistent, though they do not establish runtime results, so self_consistency scores 2. Installation options include package managers, binaries, Nix, Docker, and source builds, with Zig, V8, and platform constraints noted, so dependency_availability scores 2. The README gives concrete explanations and workarounds for common binary compatibility failures, and MCP run has a timeout; broader error handling and diagnostics are not shown, so failure_messages scores 2.
The materials explicitly target AI agents and automation and cover fetching, CDP/Bidi, a native agent, MCP, multiple model providers, and a no-LLM REPL, so audience_and_scenarios scores 3. Implemented features and limits such as text-only rendering and lack of native Windows/Android builds are listed, but the capability boundary is not exhaustive, so capability_boundaries scores 2. An agent documentation pointer and command examples show how to invoke it, but criteria for choosing suitable versus unsuitable tasks are limited, so trigger_precision scores 2. Installation and build guidance covers Linux, macOS, WSL, Docker, and Nix, including glibc differences, so environment_fit scores 3.
The README organizes installation, usage, builds, tests, and contribution guidance; AGENTS.md functions as contributor and engineering guidance rather than product runtime instructions. The organization is usable but lengthy, so information_architecture scores 2. Installation steps cover several platforms and include a verification hint and compatibility notes, so install_notes scores 3. Commands and interfaces are generally recognizable, but no compatibility or naming policy is included, so naming_stability scores 2. Puppeteer, MCP, agent, and test examples are present, but FAQ and troubleshooting coverage is limited, so examples_and_faq scores 2. The README states there are no native Windows/Android builds, no layout engine, and that screenshots use text rendering; it also lists feature status, so known_limitations scores 3. The complete LICENSE file matches the AGPL-3.0 metadata, so license scores 3. The packet has no release policy or changelog, so versioning_changelog scores 1. SECURITY.md says only the latest main is supported and gives a private reporting email; contribution guidance points to CONTRIBUTING and a CLA, giving partial maintenance-path evidence, so maintenance_responsibility scores 2.
Commands, MCP configuration, scripts, and output examples are directly usable for browsing automation, so output_usability scores 3. The product is designed for lightweight web automation and offers a native agent and PandaScript replay, which is a clear differentiator; the README's performance figures are project claims not independently verified in this packet, so marginal_value scores 2. Lower resource use and multiple deployment options may improve costs, but the packet does not compare suitability or operating costs, so cost_benefit scores 2.
Installation commands, platform requirements, interface behavior, and performance figures are stated specifically, with some pointers to benchmarks and test resources; raw support for the key performance claims is not in this packet, so claim_traceability scores 2. README feature and test descriptions are partly corroborated by workflows, test samples, and source files, though the supplied material is a sample, so cross_source_corroboration scores 2. Product capabilities, limits, and default telemetry are stated explicitly; performance and script-determinism claims remain largely project assertions, so fact_inference_separation scores 2.
- Telemetry sends usage data by default; review the privacy policy and set LIGHTPANDA_DISABLE_TELEMETRY=true when appropriate.
- The agent can click pages and fill forms; add confirmation and access controls in the calling system for consequential workflows.
- Linux binaries require specified glibc versions, and native Windows/Android builds are unavailable; select a supported environment as documented.
- Performance and script-determinism statements are project claims and were not independently verified in this static review.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Behavior changes - V8 now compiles a function with Maglev after about 2000 calls instead of 400. On real sites this cuts CPU load by about 10% with no change to load time. --v8-maglev-invocation-count sets it back. - CSS custom properties (var(--x)) are resolved when a property is read, so Tailwind 4 and other custom-property-heavy sites get the right display, visibility and layout - Media queries in the range form ((width >= 40rem), (400px <= width < 800px)) now match. Tailwind 4 breakpoints such as sm:block used to never apply. - @container size queries apply in the cascade …View on GitHub ↗ -
Release notes excerpt
Behavior changes - Screenshots now use the layout engine: Page.captureScreenshot, BiDi screenshots and fetch --dump png draw boxes where getBoundingClientRect puts them. --png-mode reader gives the old one-column text rendering. The agent's /screenshot keeps reader by default (mode= to change it). PDF is always reader. - Page.getLayoutMetrics now comes from the layout engine, and the root container is as wide as the viewport instead of a fixed 1920px. - CORS: a * in Access-Control-Allow-Headers now covers Authorization, as every browser does. …View on GitHub ↗
FAQ
Do I need an LLM API key to use it?
lightpanda agent --no-llm starts a REPL without an LLM. Model-driven tasks require credentials for the chosen provider.Can I use Puppeteer or Playwright?
Can I run it natively on Windows?
Can it replace a browser with a graphical interface?
Will the Linux binary run on Alpine?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.