Lightpanda: The Headless Browser Built from Scratch in Zig for AI Agents and Automation
A headless browser built from scratch in Zig rather than as a Chromium or WebKit fork, with project benchmarks reporting lower peak memory use and execution tim
The Lightpanda project provides Lightpanda, an AGPL-3.0 headless browser built from scratch in Zig for AI agents and automation. It is not a Chromium fork or WebKit patch.

Image source: https://lightpanda.io
Lightpanda is not a Chromium fork or WebKit patch. It is a new browser written from scratch in the Zig programming language.
Benchmark Performance and Architecture
The project's crawler benchmark requested 933 real web pages over the network on an AWS EC2 m5.large instance. For the measured 100-page workload, the project reports:
- Peak Memory (100 pages): 123MB for Lightpanda vs. 2GB for Headless Chrome (~16x less)
- Execution Time (100 pages): 5 seconds for Lightpanda vs. 46 seconds for Headless Chrome (~9x faster)
These project-published benchmark results report lower peak memory use and shorter execution time than Headless Chrome for the measured 100-page workload.
CDP, MCP Support, and Native Agent Mode
Lightpanda exposes protocols for automation clients and AI-agent integrations:
- CDP and WebDriver BiDi: A CDP server can listen on port 9222, and Puppeteer can connect through
browserWSEndpoint: "ws://127.0.0.1:9222". WebDriver BiDi is enabled with--protocol webdriver; CDP and BiDi can run together by selecting both protocols. - Native MCP Server: Includes an MCP JSON-RPC 2.0 server over stdio. It can also run over HTTP to serve several agents from one process.
- Agent Mode & PandaScript: The
lightpanda agentcommand allows natural language driving of the browser. Sessions can be exported into deterministic, token-free JavaScript scripts called PandaScript (lightpanda run script.js) for production deployment. It supports Anthropic, OpenAI, Gemini, OpenRouter, and local models via Ollama.
System Requirements and Caveats
- Supported Platforms: Provides nightly binaries for Linux (x86_64, aarch64) and macOS (x86_64, aarch64). Windows requires WSL2 since there is no native Windows binary.
- glibc Dependency: Current Linux release binaries require glibc 2.35 for x86_64 or 2.38 for arm64. They fail on musl-based distributions such as Alpine unless a glibc-based image is used or Lightpanda is built from source. Android/Termux has no native Android build.
Sources
- GitHub Repository: lightpanda-io/browser
- Official website: Lightpanda