# Playwright CLI

> Playwright's CLI, designed for agents to control the browser using few tokens

- Category: Agents & dev (`agents`)
- Tags: `open-source`, `free`, `cli`
- Official: https://github.com/microsoft/playwright-cli
- Wunderlust: https://wunderlust.xyz/r/playwright-cli
- Image: https://wunderlust.xyz/media/playwright-cli-poster.jpg
- Video preview: https://wunderlust.xyz/media/playwright-cli.webm
- Added: 2026-11-05

## What it is

Microsoft's Playwright command-line interface for running browser actions, recording code, inspecting selectors and taking captures.

## What it’s for

Use it so the agent can visually check an interface it just generated.

## Benefits

- Navigates, clicks, types, fills forms and uploads, with element snapshots
- Screenshots, PDFs, video and traces, plus code and locator generation
- A dashboard to follow sessions and take over control

## Caveats

- Apache-2.0 license; the page doesn't mention pricing
- According to the README, it is more token-efficient than Playwright MCP; this is the project's own comparison

## Similar on Wunderlust

- [The Printing Press](https://wunderlust.xyz/r/cli-printing-press.md): Generates a CLI from an app's API docs so agents can use it instead of connectors
- [Playwright](https://wunderlust.xyz/r/playwright.md): Browser automation framework for tests, scripts and AI agents
- [CLI-Anything](https://wunderlust.xyz/r/cli-anything.md): Generates CLIs so agents can operate software like GIMP, Blender and LibreOffice
- [Google Workspace CLI](https://wunderlust.xyz/r/google-workspace-cli.md): A single CLI for the Google Workspace APIs, built for humans and agents
- [Jev Ultrafast](https://wunderlust.xyz/r/jev-ultrafast.md): A Python browser agent that picks indexed actions over the DOM
- [Orca](https://wunderlust.xyz/r/orca.md): Desktop app that runs several coding agents in parallel, each in its own worktree
