An open-source Chromium-based browser built for AI agents, which runs locally and lets agents work in parallel tabs using your logged-in accounts.
lightpanda-io/browser
A headless browser written in Zig from scratch for AI agents and automation, with CDP and WebDriver BiDi servers.
Open-source alternative to:Headless Chrome
- Stars
- 36,755
- Forks
- 1,771
- Open issues
- 100
- Last commit
- 12 hours ago
What is it?
Lightpanda is a headless browser built for AI agents and web automation. It is not based on Chromium, Blink or WebKit. It runs JavaScript, parses HTML with html5ever, loads pages over libcurl and exposes the DOM, so it can fetch and render pages without a graphical engine.
The browser can be driven by existing tools such as Puppeteer and Playwright through a CDP WebSocket server, or through WebDriver BiDi. It can also dump pages as HTML, Markdown, PNG, PDF or structured data from the command line, and it includes an MCP server with isolated per-connection sessions for multiple agents. A built-in agent mode can record sessions as deterministic JavaScript scripts that replay without an LLM.
The project is written in Zig and targets Linux and macOS, with Docker images available. Features include cookies, custom headers, proxies, network interception, robots.txt support and an adblocker.
Key features
- 01Runs JavaScript with V8 and parses HTML with html5ever
- 02Serves a CDP WebSocket endpoint compatible with Puppeteer and Playwright
- 03Supports WebDriver BiDi alongside CDP
- 04Dumps pages as HTML, Markdown, PNG, PDF or structured data
- 05Provides an MCP server with isolated browsing sessions
- 06Includes an agent mode that exports replayable JavaScript scripts
Use cases
- Running large numbers of headless browser instances for AI agent web tasks
- Scraping or crawling JavaScript-heavy pages with lower memory use than headless Chrome
- Connecting existing Puppeteer or Playwright scripts to a lighter browser backend
- Giving LLM agents browsing tools through MCP
Quick start
- 1
Install via Homebrew (nightly)
brew install lightpanda-io/browser/lightpanda - 2
Dump a URL as HTML
./lightpanda fetch --obey-robots --dump html --log-format pretty --log-level info https://demo-browser.lightpanda.io/campfire-commerce/ - 3
Start a CDP server on port 9222
./lightpanda serve --obey-robots --log-format pretty --log-level info --host 127.0.0.1 --port 9222
Things to know
- Linux and macOS only; Windows requires WSL2 and there is no Android build.
- Linux release binaries need glibc, so musl distributions like Alpine are not supported by the prebuilt binary.
- Licensed under AGPL-3.0, a copyleft license with network-use obligations.
- Building from source requires Zig 0.15.2, V8, and Rust, which is a heavy setup.
Topics
FAQ
- What is browser?
- A headless browser written in Zig from scratch for AI agents and automation, with CDP and WebDriver BiDi servers. Lightpanda is a headless browser built for AI agents and web automation. It is not based on Chromium, Blink or WebKit. It runs JavaScript, parses HTML with html5ever, loads pages over libcurl and exposes the DOM, so it can fetch and render pages without a graphical engine.
- Is browser free to use? What license does it have?
- browser is open source under the AGPL-3.0 license. Check the license terms before using it in commercial products.
- Is browser still maintained?
- Actively maintained. The last commit to browser was on Oct 20, 2026.
- What can I use browser for?
- Running large numbers of headless browser instances for AI agent web tasks Scraping or crawling JavaScript-heavy pages with lower memory use than headless Chrome Connecting existing Puppeteer or Playwright scripts to a lighter browser backend Giving LLM agents browsing tools through MCP
- How do I install browser?
- Install via Homebrew (nightly): brew install lightpanda-io/browser/lightpanda Dump a URL as HTML: ./lightpanda fetch --obey-robots --dump html --log-format pretty --log-level info https://demo-browser.lightpanda.io/campfire-commerce/ Start a CDP server on port 9222: ./lightpanda serve --obey-robots --log-format pretty --log-level info --host 127.0.0.1 --port 9222
- Where can I get browser?
- The source code and installation instructions are on GitHub: https://github.com/lightpanda-io/browser
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A Go HTTP server that gives AI agents token-efficient control over Chrome, with multi-instance orchestration and a live dashboard.
Open-source browser API for AI agents and apps, running a managed Chrome sandbox you can drive with Puppeteer, Playwright, or Selenium.
Open-source Python library for building AI agents that control a real browser, with optional Browser Use Cloud stealth browsers and hosted agent API.
Native Rust CLI that lets AI agents drive a Chrome browser through snapshots, element refs, and common automation commands.
A collection of starter projects for building deployable applications on the Claude API, covering agents, computer use, browser automation and finance analysis.