Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Puppeteer

by Google (Chrome team)

Let your code drive a Chrome browser.

Browser automation (cloud)Official MCP server

WebsiteGitHub

1. Price

No free tier on the pricing page. As reported on the official pricing page, checked Oct 10, 2026.

pptr.dev

Checked against the maker's official pages, pricing on Oct 10, 2026. Tap a verdict to see its source.How we checkedReport an error

What Puppeteer does

Puppeteer is a free open-source JavaScript library from Google's Chrome team, not an online service. Your Node.js code opens a hidden Chrome or Firefox and uses it like a person would, clicking, typing and visiting pages. Typical jobs are screenshots, PDFs of web pages and automated tests; the browser runs on your own computer or server.

  • Puppeteer is one of 17 APIs in the Browser automation (cloud) category on AgentGid.
  • It is one of 12 that can be started for free.
  • It ships an official MCP server, like 7 others here.
  • Its official SDK is the 1st most downloaded in the category (15.9M a week).

What people build with it

Screenshots of web pages

Save a picture of any page or of one part of it, for example to make preview images or check how a page looks after a change.

PDF invoices and reports from HTML

Design an invoice or report as a normal web page, then save it as a PDF file to email or download.

Automatic checks of sign-up forms

Fill in and submit your own forms in a real browser after every change, so a broken sign-up page is caught before users see it.

Pre-rendered pages for search engines

Load a page built with JavaScript in the browser and save the finished HTML, so search engines and link previews see the content.

Find why a page is slow

Record what the browser does while your page loads, to see which script or image makes it slow.

Let a coding assistant use Chrome

Give your AI coding assistant a real Chrome to open your site, read console errors and take screenshots while it fixes bugs.

Puppeteer popularity

16M
SDK downloads a week
+37.7% on the 4-week average
251
public agent repos use its SDK
95.9K
GitHub stars, puppeteer/puppeteer
SDK downloads per weeknpm puppeteer 16,010,870

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

None

Cheapest plan

No monthly plan

Usage price

—

Plans

Library, not a hosted service: free, runs the browser on your own infrastructure. For MCP, pptr.dev points to Google's chrome-devtools-mcp.

As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy.

Key and access

How it signs in

None. Puppeteer is a local library with no account or key.

Environment variable
none (PUPPETEER_CACHE_DIR only sets where the browser is stored)
Safe in browser code
Yes
Card at sign-up

No

Commercial use and your data

Puppeteer is free under the Apache 2.0 license, including in paid products; keep its license and notice files when you ship it. The Chrome it downloads comes with its own terms from Google.

In a paid app
Yes

Apache-2.0 allows commercial use.

“"license":"Apache-2.0"” source

inside-app-bundle
With conditions

Keep the Apache-2.0 license text and any NOTICE when you ship it; the downloaded Chrome has Google's own terms.

“You must give any other recipients of the Work or Derivative Works a copy of this License” source

redistribute-files
With conditions

Allowed under Apache-2.0 with the license, notices and a note of changed files.

“You must cause any modified files to carry prominent notices stating that You changed the files” source

client-work
Yes

Apache-2.0 allows use in work for clients.

“"license":"Apache-2.0"” source

Errors to handle

Could not find Chrome (ver. ...)

The browser was not downloaded, usually because the install script was blocked.

Run npx puppeteer browsers install, or allow Puppeteer's install script.

TimeoutError

An operation such as waitForSelector or launch took longer than its timeout.

Check the selector or page, then retry or raise the timeout for that call.

No usable sandbox!

Chrome on Linux found no working sandbox and crashed at launch.

Configure the sandbox on the host (AppArmor or user namespaces); use --no-sandbox only for trusted content.

net::ERR_BLOCKED_BY_CLIENT

Chrome for Testing blocked a navigation to a plain http:// address.

Use https, or launch with --disable-features=HttpsFirstBalancedModeAutoEnable.

Chrome doesn't launch on Linux

System libraries that Chrome needs are missing.

Install the packages from the troubleshooting list (ldd chrome | grep not shows which).

Use it from an agent

Our agent check

2 of 6: llms.txt no, OpenAPI no, SDK yes, MCP yes, status page no, AI assistants allowed no

Checked Nov 13, 2026.

MCP server

Chrome DevTools MCP (chrome-devtools-mcp), from the Chrome DevTools team, built on Puppeteer

{ "mcpServers": { "chrome-devtools": { "command": "npx", "args": ["-y", "chrome-devtools-mcp@latest"] } } }

npm
npm install puppeteer

Alternatives

Puppeteer This page

Free (open source)No free tierOfficial MCP

Browserless

Pick Browserless when you want managed headless browsers over HTTP instead of running Chrome on your own server.

$2 / 1k requestsFree tier

Browserbase

Pick Browserbase when you need cloud browsers for AI browser agents, with search and fetch tools from the same provider.

from $0.1/hourFree tierOfficial MCP

All browser automation (cloud) APIs

Get started

Tell your AI assistant

“Add Puppeteer to my Node.js server to turn /invoice/:id into a PDF: pin puppeteer@25.16.0, keep the Chrome sandbox on, close the browser in a finally block, and set cacheDirectory in .puppeteerrc.cjs so the browser is found after deploy.”

  1. Install the package in your Node.js 22.12+ project; it also downloads a matching Chrome for Testing.

    npm i puppeteer

    From pptr.dev/guides/installation

  2. If your package manager blocked the install script, download the browser yourself.

    npx puppeteer browsers install

    From pptr.dev/guides/installation

  3. Launch the browser, open a page and save a screenshot (official example).

    import puppeteer from 'puppeteer';
    
    const browser = await puppeteer.launch();
    const page = await browser.newPage();
    await page.goto('https://news.ycombinator.com', {
      waitUntil: 'networkidle2',
    });
    await page.screenshot({
      path: 'hn.png',
    });
    await browser.close();

    From pptr.dev/guides/screenshots

First request

Puppeteer is a library, not a hosted API; this is the smallest official example (PDF generation guide), and its result is a file, not a network reply.

const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://news.ycombinator.com', {
  waitUntil: 'networkidle2',
});
// Saves the PDF to hn.pdf.
await page.pdf({
  path: 'hn.pdf',
});
await browser.close();

Mistakes to avoid

Installing with a package manager that blocks install scripts (pnpm, Yarn Berry, Bun, newer npm) and expecting Chrome to be there.
Run npx puppeteer browsers install after installing, or allow Puppeteer's install script in package.json.

The browser download is skipped and launch fails with "Could not find Chrome".

Building the app in one step (Docker build, CI) and running it elsewhere while the browser stays in ~/.cache/puppeteer.
Set cacheDirectory in .puppeteerrc.cjs inside the project and reinstall, so the browser ships with the app.

The default cache folder is in the home directory and is lost when the build output is moved.

Adding --no-sandbox to make Chrome start on a Linux server that opens pages you do not control.
Configure the Chrome sandbox on the host; use --no-sandbox only for content you fully trust.

The sandbox protects the server from untrusted web content.

Using puppeteer-core and relying on .puppeteerrc or PUPPETEER_* environment variables.
With puppeteer-core pass executablePath (or channel) to launch(), or switch to the puppeteer package.

puppeteer-core ignores configuration files and environment variables and downloads no browser.

Navigating to plain http:// addresses on remote hosts and treating the failure as a site error.
Use https:// addresses, or launch Chrome with --disable-features=HttpsFirstBalancedModeAutoEnable.

Chrome for Testing turns such navigations into net::ERR_BLOCKED_BY_CLIENT.

Questions

Do I need an account or a key?

No. Puppeteer is an open-source library; it controls a browser on your own machine.

Does it work with Firefox?

Yes, since version 23 it supports both Chrome and Firefox; Firefox is driven over WebDriver BiDi.

What is the difference between puppeteer and puppeteer-core?

puppeteer downloads a browser and has defaults; puppeteer-core downloads nothing and is for a browser you manage or a remote one.

Can I see the browser while it works?

Yes. It is hidden by default; launch with headless set to false to see it.