# Playwright CLI

19 Hacker News commenters recommended Playwright CLI and 1 criticized it, November 2025 to November 2026. It was recommended in 5 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** Lets coding agents and developers drive a browser from the command line, token-efficient and working out of the box with essentially zero setup.

## Why people recommend it

- Lighter on tokens than MCP (4 comments): "token efficient, fast and more customizable/upgradable based on your workflow" ([source](https://news.ycombinator.com/item?id=47396169)) "Playwright-cli (not mcp) is so much more efficient." ([source](https://news.ycombinator.com/item?id=47500807)) "the CLI + skill is much lighter on token usage" ([source](https://news.ycombinator.com/item?id=47068612))
- Faster and less buggy than MCP (2 comments): "It works much faster for me than the MCP servers I tried." ([source](https://news.ycombinator.com/item?id=48772438)) "faster and less buggy than the MCP" ([source](https://news.ycombinator.com/item?id=48778323))
- Works out of the box (2 comments): "highly effective for debugging locally deployed web apps with essentially zero setup" ([source](https://news.ycombinator.com/item?id=48029825)) "playwright-cli works out of the box" ([source](https://news.ycombinator.com/item?id=47303385))
- Inspects DOM and simulates clicks (2 comments): "Your agent can use it to inspect the DOM, see what styles are applied to elements, simulate clicks, etc." ([source](https://news.ycombinator.com/item?id=47740855)) "Playwright cli gives you basically all of this without writing any glue code." ([source](https://news.ycombinator.com/item?id=47524430))

## What people warn about

- Token savings only when bytes stay out of context (1 comments): "the savings only come in cases when you don't need the bytes in context" ([source](https://news.ycombinator.com/item?id=47159536))

## Alternatives hackers recommend

- [Playwright](https://hackerapproved.com/p/playwright.md): 137 recommend
- [Selenium](https://hackerapproved.com/p/selenium.md): 15 recommend
- [Puppeteer](https://hackerapproved.com/p/puppeteer.md): 14 recommend
- [Stagehand](https://hackerapproved.com/p/stagehand.md): 13 recommend
- [Vibium](https://hackerapproved.com/p/vibium.md): 12 recommend

## Cite as

Hacker Approved, "Playwright CLI", https://hackerapproved.com/p/playwright-cli/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
