A product team gives an AI agent a simple job: open a supplier's public price page every morning and note whether the new model is listed. A plain HTTP request returns an empty template, because the page builds its list with JavaScript after it loads. The agent needs a real browser that runs on a server with no screen and can be told what to click. That is a headless browser, and there are more ways to run one than a year ago.
This post ranks six headless browsers and the libraries that drive them on engines, control protocols, languages, licences, agent support and how each one takes a proxy. The facts come from each project's own documentation and repository, read on 22 November 2026. Proxynet is not a browser and is not ranked; we sell the proxies these browsers connect through, covered in its own section.
What is a headless browser?
A headless browser is a real browser engine that runs without a visible window and is controlled by code. It downloads the page, runs its JavaScript, builds the DOM and can click, type, take screenshots or save a PDF on a machine with no display. Scrapers use it when a page shows its data only after scripts run; AI agents use it as their hands on the web. What still works without the window, and what it costs in memory, is covered in What Is a Headless Browser?.
What do scraping and AI agents need from a headless browser?
- A current engine. An engine that tracks Chrome or Firefox releases renders pages the way visitors see them.
- A control protocol your code speaks. Chrome DevTools Protocol (CDP) is Chromium's own; WebDriver and WebDriver BiDi are W3C standards that work across browsers.
- Agent support. An MCP server lets an AI model call browser actions such as "open", "click" and "read the page" as tools.
- Proxy handling. A proxy per browser or per context, with a username and password, decides which IP and location each session uses.
- Resource use. Every open page is a set of processes; at hundreds of sessions, memory decides the server bill.
The 6 best headless browsers for scraping and AI agents
We left out stealth plugins, patched "undetected" builds and hosted browser services that market getting past websites' bot checks or CAPTCHAs as a feature. Agent frameworks that run on top of these browsers, such as Browser Use and Stagehand, are compared in the best AI browser agents.
1. Playwright
Playwright is Microsoft's open-source automation library (Apache-2.0), with official versions for JavaScript and TypeScript, Python, .NET and Java. Version 1.65 ships its own builds of Chromium 158, Firefox 159 and WebKit 27.2; the Firefox and WebKit builds carry Playwright's patches, so the branded Firefox and Safari apps cannot be used. Since version 1.62 it bundles the Playwright MCP server and a CLI for coding agents.
The proxy is a proxy option with server, username and password, set at launch for the whole browser or on each new context (an isolated session with its own cookies and storage), so one browser can hold sessions with different exit IPs (Playwright docs). HTTP(S) and SOCKS5 are supported; the username and password are documented for HTTP(S).
Pros
- Three engines and four languages in one API
- Proxy per browser context
- MCP server and agent CLI included
- Automatic waiting, traces and a test runner
Cons
- Firefox and WebKit are patched builds, not the stock browsers
- Downloads its own browser builds on install
- Proxy username and password documented only for HTTP(S)
Who it is for: teams that want one tool for scraping, testing and agents in the language they already use.
2. Chrome headless mode
Since Chrome 112, headless Chrome is the same browser as the one on your desktop with its windows hidden, started with the --headless flag (Chrome for Developers). The older implementation lives on as chrome-headless-shell, a standalone binary since Chrome 132. On 22 November 2026 the Chrome for Testing stable channel was 158.0.8127.36. For agents, the Chrome DevTools team publishes chrome-devtools-mcp, an Apache-2.0 MCP server that controls Chrome through Puppeteer.
The proxy is a launch flag, --proxy-server="http://host:port", which accepts HTTP, HTTPS, SOCKS4 and SOCKS5 and has no field for a username and password. Chromium's network documentation states that Chrome supports no authentication method for SOCKS5 and carries only TCP requests over it (Chromium proxy docs). Authenticated proxies therefore go through the library that drives Chrome, or through an IP whitelist.
Pros
- The real Chrome build, rendering pages as visitors see them
- Screenshots, PDFs and DOM dumps from the command line
- Versioned test builds from Chrome for Testing
Cons
- No SOCKS5 authentication
- Proxy credentials need a driving library or an IP whitelist
- Chromium only
Who it is for: anyone who needs pages rendered exactly as Chrome renders them.
3. Puppeteer
Puppeteer is Google's Apache-2.0 JavaScript library for controlling Chrome or Firefox over CDP or WebDriver BiDi, headless by default; the documentation showed version 25.18.1 on 22 November 2026. It is Node.js only, narrower than Playwright, and the base chrome-devtools-mcp is built on.
The proxy address goes into the launch arguments as Chrome's --proxy-server flag, and the credentials are supplied with page.authenticate(). Puppeteer notes that this method turns on request interception behind the scenes, which can affect performance.
Pros
- Close to Chrome, maintained by Google
- CDP and WebDriver BiDi
- Simple API for screenshots and PDFs
Cons
- JavaScript and TypeScript only
- Proxy set per browser launch, not per context
- No WebKit
Who it is for: Node.js teams that work mostly with Chrome.
4. Lightpanda
Lightpanda is not a Chromium fork: its developers wrote a new browser in Zig, with the V8 engine for JavaScript and no graphical rendering. It is open source under AGPL-3.0, reached version 1.0.5 on 20 November 2026 and runs on Linux and macOS, with Windows only through WSL2. Puppeteer and Playwright connect over CDP, Selenium over WebDriver BiDi, and a native MCP server serves agents directly. It can return pages as Markdown and has an --obey-robots option that follows a site's robots.txt (Lightpanda on GitHub).
The project's own benchmark on an AWS m5.large instance reports 123 MB of peak memory for 100 pages against 2 GB for Chromium; we have not reproduced it. The proxy is a start flag, --http-proxy 'http://user:pass@host:port'; SOCKS is not documented.
Pros
- Much lighter than a full browser, by the project's own benchmark
- Native MCP server and Markdown output for agents
- A robots.txt option built in
Cons
- No graphical rendering; screenshots and PDFs are text-only
- Web platform coverage is still growing
- Telemetry is on by default and must be switched off
Who it is for: agent and scraping workloads that need the DOM and text, not the pixels.
5. Selenium
Selenium implements the W3C WebDriver standard; version 4.53.0 came out on 17 November 2026 under Apache-2.0. It has official bindings for Java, Python, C#, Ruby and JavaScript, drives Chrome, Edge and Firefox headless, finds the right driver through Selenium Manager and spreads sessions over machines with Selenium Grid.
The proxy goes into the browser options, as Chrome's --proxy-server argument or as the WebDriver proxy capability with httpProxy, sslProxy or socksProxy. That capability has no separate username and password fields, so an IP whitelist is the simpler route for authenticated proxies.
Pros
- Five official languages
- A W3C standard supported by every major browser
- Grid for parallel sessions
Cons
- Waits are written by hand, with no auto-waiting
- No separate proxy username and password field
- No MCP server from the project
Who it is for: Java and C# teams and companies with existing WebDriver test suites.
6. Firefox headless
Firefox runs without a window when started with --headless on Windows, Linux and macOS; the current release on 22 November 2026 was 160.0.1. Selenium drives it through geckodriver and Puppeteer through WebDriver BiDi, while Playwright uses its own patched build. It is the open-source, non-Chromium engine on the list. The proxy is set with Firefox's network preferences, written into the profile through the WebDriver prefs option, or with the WebDriver proxy capability.
Pros
- An independent engine for checking what Chromium-only tools miss
- Driven by Selenium, Puppeteer and Playwright
Cons
- Proxy settings live in profile preferences
- No MCP server from Mozilla
- Fewer scraping and agent examples than Chrome
Who it is for: teams that need a second engine for testing or prefer a non-Chromium browser.
Comparison tables
The facts come from each project's own documentation and repository, read on 22 November 2026. "—" means the project does not publish it.
Engine and licence
| Tool | Type | Engines | Licence |
|---|---|---|---|
| Playwright | Library + browsers | Chromium, Firefox, WebKit | Apache-2.0 |
| Chrome headless | Browser | Chromium | Free; Chromium open source |
| Puppeteer | Library | Chrome, Firefox | Apache-2.0 |
| Lightpanda | Browser | Own engine + V8 | AGPL-3.0 |
| Selenium | Library | Chrome, Edge, Firefox | Apache-2.0 |
| Firefox headless | Browser | Gecko | Open source |
Control and agents
| Tool | Protocol | Languages | MCP server |
|---|---|---|---|
| Playwright | Engine-specific | JS, Python, .NET, Java | Included |
| Chrome headless | CDP, WebDriver BiDi | Any via drivers | chrome-devtools-mcp |
| Puppeteer | CDP, WebDriver BiDi | JS, TypeScript | Via chrome-devtools-mcp |
| Lightpanda | CDP, WebDriver BiDi | Any via drivers | Included |
| Selenium | WebDriver | Java, Python, C#, Ruby, JS | — |
| Firefox headless | WebDriver BiDi | Any via drivers | — |
Proxy settings
| Tool | Where | SOCKS5 | Username and password |
|---|---|---|---|
| Playwright | Launch or context | Yes | HTTP(S) |
| Chrome headless | --proxy-server | Yes, no auth | Via a library |
| Puppeteer | Launch argument | Yes, no auth | page.authenticate() |
| Lightpanda | --http-proxy | — | In the proxy URL |
| Selenium | Browser options | Yes | No separate field |
| Firefox headless | Profile preferences | Yes | — |
Every tool on the list accepts an HTTP proxy, so an HTTP endpoint with a username and password, or an IP whitelist, works with all six.
Which proxy with a headless browser?
The browser renders the page; the IP address and its location come from the proxy. For headless work we recommend Proxynet's proxies with any tool on this list, and three rules decide the setup.
One page visit, one IP
A single page load is dozens of requests: HTML, scripts, styles, API calls. If they leave from different addresses mid-visit, the session looks broken to the site. Residential Proxy with a sticky session keeps the same IP for 1-60 minutes, and the pool covers 190+ countries with city and free ASN targeting. Rotate between visits, not inside one;
the trade-off is explained in IP rotation explained.
Use the HTTP endpoint for Chromium tools
Because Chrome has no SOCKS5 authentication, use Proxynet's HTTP endpoint pr.proxynet.io:8000 with user:pass for residential and mobile proxies in Chrome, Puppeteer and Playwright's Chromium. SOCKS5 works in tools that pass credentials, or with an IP whitelist of up to 10 addresses. Residential and mobile traffic is billed per GB and a headless browser loads every image and font, so block resource types you do not need; the balance has no subscription and never expires.
Datacenter for light public pages
For public pages that load without heavy checks, Datacenter Proxy gives fixed IPv4 addresses in 50+ countries at a per-IP price with unlimited bandwidth, subject to the fair-use policy. Per-IP products come with a target-site restriction by default, and access to all websites is a paid add-on.
| Job | Proxy | Session |
|---|---|---|
| Agent reading one page | Residential | Sticky, 1-60 min |
| Many public pages | Datacenter | Fixed IP |
| Location checks by city | Residential | Sticky, city targeting |
| Mobile-only content | Mobile | Sticky, 1-60 min |
Which headless browser for which job?
| Your job | Tool |
|---|---|
| Scraping, testing and agents in one API | Playwright |
| Pages exactly as Chrome renders them | Chrome headless |
| Node.js project centred on Chrome | Puppeteer |
| Many light agent sessions, text only | Lightpanda |
| Existing Java or C# WebDriver suite | Selenium |
| A second, non-Chromium engine | Firefox headless |
Frequently asked questions
What is the best headless browser in 2027?
Playwright, for most scraping and AI agent work: one Apache-2.0 API for Chromium, Firefox and WebKit in four languages, a proxy per context and an MCP server included. Chrome's headless mode is the pick when you need the real Chrome build, and Lightpanda when memory per session matters more than screenshots.
Is Playwright a headless browser?
Not exactly: Playwright is a library that drives browsers, and it ships its own Chromium, Firefox and WebKit builds that run headless by default. The two are installed and used together, which is why it is ranked here.
Which headless browser is best for AI agents?
Playwright and Lightpanda both ship their own MCP servers, so an agent can call browser actions as tools without glue code. For Chrome, the Chrome DevTools team publishes chrome-devtools-mcp.
Can I use a SOCKS5 proxy with headless Chrome?
Yes, but only without authentication: Chromium's documentation states that Chrome supports no SOCKS5 authentication method. Use an HTTP proxy with a username and password, or a SOCKS5 proxy with an IP whitelist.
Is Lightpanda ready for production?
It reached version 1.0.5 on 20 November 2026, but it has no graphical rendering and its web platform coverage is still growing. Test it on your own target pages before moving a workload from Chromium.
Is it legal to use a headless browser for scraping?
The browser itself is legal; what you collect and how decides. Read the site's robots.txt and terms, keep the request rate low, prefer an official API where one exists, and do not collect personal data without a legal basis.
Summary
Playwright is the most complete choice for scraping and AI agents, Chrome's headless mode and Puppeteer cover Chrome-first work, Lightpanda is the light option for text-only agents, and Selenium and Firefox fit teams on WebDriver. The browser decides how a page is rendered; the proxy decides where the visit comes from, with one sticky IP per visit and an HTTP endpoint for Chromium tools. For residential, mobile and datacenter proxies to put behind them, see our proxy services.




