Lightpanda

lightpanda.io

Open-source headless browser written from scratch in Zig for AI agents and automation, with CDP, MCP and a built-in agent mode.

GitHub stars
42,490
License
AGPL-3.0
Language
Zig
Pricing
Open source
Published
Oct 31, 2026

Next steps

What it does

Lightpanda is a headless browser built from scratch in Zig for AI agents, crawlers and automation — it is not a Chromium fork or a WebKit patch. In the project's own benchmark of 100 real pages on an AWS m5.large instance, it used about 123 MB of peak memory versus 2 GB for headless Chrome and finished in about 5 seconds versus 46 seconds. It exposes a Chrome DevTools Protocol (CDP) server so existing Puppeteer or Playwright-style scripts can connect via browserWSEndpoint, supports WebDriver BiDi, and ships a native MCP server over stdio or HTTP where each connection gets its own browsing session. Its agent mode lets you drive the browser in plain English with models from Anthropic, OpenAI, Gemini, Mistral, OpenRouter, any OpenAI-compatible endpoint or local models via Ollama/llama.cpp, then export the session as a deterministic, token-free PandaScript for replay. Nightly binaries are available for Linux and macOS (x86_64 and aarch64), plus Homebrew, AUR and Nix; Windows users run it in WSL. Licensed AGPL-3.0.

Lightpanda · Image from the official website
Image from the official website

Use cases

  • Run large-scale crawling or scraping with far less memory than headless Chrome
  • Give an AI agent a browser through MCP or CDP
  • Prototype a browsing task with an LLM, then replay it as a deterministic script

Frequently asked questions

Is Lightpanda a Chromium fork?
No. It is a new browser engine written from scratch in Zig.
Can I use my Puppeteer scripts?
Yes. Start its CDP server and point Puppeteer's browserWSEndpoint at it.
Is it free?
Yes, the browser is open source under AGPL-3.0.
Log in to join the discussion