On this page
- What is a headless browser?
- How do you run a headless browser locally?
- Should you run headless or headed?
- Where can you run headless browsers in the cloud?
- How does Revyl run browsers for tests and agents?
- Can Revyl replace a headless browser setup?
- Beyond headless browsers: what else Revyl runs
- Sources
- Frequently asked questions
A headless browser is a web browser that runs with no visible window, controlled by code, so scripts, tests and AI agents can use it on servers and in CI. Chrome runs headless with the --headless flag, Puppeteer launches Chrome headless by default, and Playwright, Cypress and Selenium switch it on through options; Browserless, Hyperbrowser and Kernel host headless browsers in the cloud. Revyl, verification infrastructure for cloud agents on web, iOS, Android and macOS, hosts Chrome sessions you and your agents can watch live, with up to 1,200 free device minutes a month on iOS, Android and web.
Scroll the table sideways to see all 4 columns.
What is a headless browser?
A headless browser is a normal web browser running with no window on screen. Code drives it instead of a person: it loads pages, runs their JavaScript, clicks and types, and returns HTML, screenshots or test results. Chrome’s docs describe it as running Chrome in an unattended environment without any visible UI. Because nothing is drawn on a display, a headless browser runs on servers, in containers and on CI runners.
Headless is a mode of a browser you already know. Selenium’s maintainers call it an execution mode for Firefox and Chromium-based browsers, and the same browser can run headed when you want to watch it.
How do you run a headless browser locally?
Each tool turns headless mode on in its own way:
- Chrome: start the binary with
--headless, for examplegoogle-chrome --headlesson Linux orstart chrome --headlesson Windows (Chrome Headless mode). - Puppeteer:
puppeteer.launch()starts Chrome headless by default.headless: falseshows the window, andheadless: 'shell'uses the separatechrome-headless-shellbinary (Puppeteer headless modes). - Playwright: set
headlessin theuseblock ofplaywright.config.ts, or override it per file withtest.use()(test options). - Cypress:
cypress runlaunches the browser headlessly by default, and--headedshows it (launching browsers). - Selenium: add the browser argument, such as
options.addArguments("--headless=new")for Chrome. Selenium removed its old headless convenience method in 4.10.0, so you pick the mode yourself (Selenium blog).
Should you run headless or headed?
Run headless for CI jobs, scrapers and backend services on machines that have no display. Chrome now uses one code base for both modes (Chrome Headless mode). The older implementation ships as chrome-headless-shell, and Puppeteer says it is more performant where the full Chrome feature set isn’t needed (Puppeteer).
Run headed when a person needs to see what happened: while writing a test, while debugging a failure, or when a reviewer wants to watch an agent work. A hosted browser with a live view covers both cases, because the browser runs remotely and you open the view only when you need it.
Where can you run headless browsers in the cloud?
Hosted browser services run the browsers for you, and your code connects to a remote endpoint instead of launching Chrome locally. Safari is its own case on a Windows machine; testing Safari on Windows covers it.
- Browserless runs managed headless browsers that Puppeteer or Playwright connect to over WebSocket, with REST APIs for screenshots, PDFs and scraping, an MCP server and a self-hosted option.
- Hyperbrowser sells cloud browser sessions, sandboxes, a web data API and browser agents on one credit balance.
- Kernel runs headless and headful browsers for agents, with live view, replays and browser pools. Plans and per-second rates are on its pricing page.
For hosted grids that run Selenium, Playwright and Cypress suites, see browser testing clouds compared.
How does Revyl run browsers for tests and agents?
Revyl runs your web app in a Chrome session in its cloud and streams it to your browser, so there’s no local browser, driver or display to manage. One session serves a test run, an agent and a person.
- Open your build. Register an HTTPS preview URL from any framework, or let Revyl build a bundle from its Next.js or Vite recipe (Web builds).
- Start a session from the dashboard, with
revyl device start --platform web, or through the MCP server’sstart_device_sessiontool, in a Desktop 1280×800 or Mobile 390×844 viewport (quickstart, MCP tools). - Test it in plain language. A Web test is a list of natural-language steps, and AI finds each element on the page instead of relying on selectors.
revyl test runand the GitHub Action run tests in CI (tests). - Read the evidence. Each run leaves a report with video, a step timeline, the Web console and request failures, and a JavaScript heap chart.
- Watch or take over. The live viewer shows the session as it runs, and a member can click, scroll and type in it, with each input recorded as a step (sessions).
- Put the verdict on the pull request. When proof of changes is enabled, Revyl posts a verdict on pull requests with a configured build, with an Open preview link to the live Web session.
Can Revyl replace a headless browser setup?
Yes, for testing your own web app and for giving coding agents a browser they can drive. Revyl hosts Chrome, runs the tests, keeps a report for every test run and, with proof of changes, posts a verdict on the pull request, so nobody maintains browsers, drivers or a display on CI. Revyl Web tests are natural-language steps, so a Puppeteer or Playwright script becomes a list of steps rather than a script pointed at a new endpoint. For scraping other sites at volume, Browserless and Hyperbrowser list CAPTCHA solving and residential proxies on their pricing pages.
For the frameworks themselves, see browser automation tools and Playwright alternatives. Every comparison is on the compare hub.
Beyond headless browsers: what else Revyl runs
The Chrome session is one runtime on the same Revyl account:
- iOS simulators and Android emulators start from the dashboard, the CLI or an agent and stream to your browser, so the mobile app gets the same tests and reports as the web app (sessions).
- A Revyl computer is a macOS workspace where an agent builds, runs and tests apps, for work such as Xcode builds and Swift tests (Revyl computers).
- Atlas maps Web, iOS and Android apps the same way and keeps the screens, states and transitions Revyl has observed as the shared record for people and agents (Atlas).
- Coding agents reach every runtime through the same CLI and MCP server they use for the browser.
- Every test run leaves a report, and when proof of changes is enabled, Revyl posts a verdict on pull requests with a configured build (reports, proof of changes).
Sources
Facts were checked against these public pages on November 16, 2026. Spot an error? Email support@revyl.ai and we will correct it.
- Chrome Headless mode
- Install Google Chrome
- Puppeteer headless modes
- Puppeteer repository
- Playwright test options
- Playwright repository
- Cypress launching browsers
- Selenium documentation
- Selenium: Headless is going away
- Browserless introduction
- Browserless pricing
- Browserless MCP overview
- Hyperbrowser pricing
- Kernel pricing
- Revyl sessions
- Revyl device quickstart
- Revyl Web builds
- Revyl tests
- Revyl test reports
- Revyl MCP tools
- Revyl MCP
- Revyl computers
- Revyl Atlas
- Revyl proof of changes
- Revyl pricing
Frequently asked questions
What is a headless browser used for?
Automated testing, scraping, screenshots and PDFs, and giving scripts or AI agents a browser on a machine with no display, such as a server or a CI runner. Chrome's docs describe Headless mode as running the browser in an unattended environment without any visible UI.
Is headless Chrome the same as normal Chrome?
Yes, in current versions. Chrome now has unified headless and headful modes that share the same browser code. Since Chrome 132 the older, separate implementation is available only as a standalone binary called chrome-headless-shell, which Puppeteer describes as more performant for tasks that don't need the full Chrome feature set.
How do I run Selenium in headless mode?
Pass the headless flag as a browser argument, for example options.addArguments("--headless=new") for Chrome. Selenium deprecated its headless convenience method in 4.8.0 and removed it in 4.10.0, so the argument is the supported way.
Does Cypress run headless?
Yes. cypress run launches browsers headlessly by default, and the --headed flag shows the browser window.
Can an AI agent use a headless browser?
Yes. Browserless ships an MCP server, and Hyperbrowser and Kernel sell cloud browsers built for agents. For checking your own web app, Revyl's MCP server starts a Chrome session with start_device_session and gives the agent scroll, select and key tools, while a person can watch the same session live.
What else does Revyl do?
Revyl is verification infrastructure for cloud agents on web browsers, iOS simulators, Android emulators and macOS workspaces. It builds Web, iOS and Android apps on remote runners, runs natural-language tests that leave a report with video and logs, keeps Atlas as the shared record of what each app does, and when proof of changes is enabled, posts a verdict on pull requests with a configured build. Agents reach all of it through the CLI and MCP server.