Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By microsoft Verified OrgApache-2.0In 2 marketplaces
Drive browsers from the command line to open pages, click elements, fill forms and take screenshots. Needs the @playwright/cli npm package installed globally on Node.js 20 or newer.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Playwright CLI with SKILLS
This package provides CLI interface into Playwright. If you are using coding agents, that is the best fit.
CLI: Modern coding agents increasingly favor CLI–based workflows exposed as SKILLs over MCP because CLI invocations are more token-efficient: they avoid loading large tool schemas and verbose accessibility trees into the model context, allowing agents to act through concise, purpose-built commands. This makes CLI + SKILLs better suited for high-throughput coding agents that must balance browser automation with large codebases, tests, and reasoning within limited context windows.
MCP: MCP remains relevant for specialized agentic loops that benefit from persistent state, rich introspection, and iterative reasoning over page structure, such as exploratory automation, self-healing tests, or long-running autonomous workflows where maintaining continuous browser context outweighs token cost concerns. Learn more about Playwright MCP.
npm install -g @playwright/cli@latest
playwright-cli --help
Argument parsing and startup errors exit with code 1 and print an error message. With
--json, these errors are written to stdout as { "isError": true, "error": "..." }.
Claude Code, GitHub Copilot and others will use the locally installed skills.
playwright-cli install --skills
playwright-cli install --skills=agents # install into .agents/skills
playwright-cli install --skills --global # install into the home directory
--skills defaults to claude, installing into .claude/skills. Use agents for other agents.
Point your agent at the CLI and let it cook. It'll read the skill off playwright-cli --help on its own:
Test the "add todo" flow on https://demo.playwright.dev/todomvc using playwright-cli.
Check playwright-cli --help for available commands.
> Use playwright skills to test https://demo.playwright.dev/todomvc/.
Take screenshots for all successful and failing scenarios.
Your agent will be running commands, but it does not mean you can't play with it manually:
playwright-cli open https://demo.playwright.dev/todomvc/ --headed
playwright-cli type "Buy groceries"
playwright-cli press Enter
playwright-cli type "Water flowers"
playwright-cli press Enter
playwright-cli check e21
playwright-cli check e35
playwright-cli screenshot
Playwright CLI is headless by default. If you'd like to see the browser, pass --headed to open:
playwright-cli open https://playwright.dev --headed
Playwright CLI keeps the browser profile in memory by default. Your cookies and storage state
are preserved between CLI calls within the session, but lost when the browser closes. Use
--persistent to save the profile to disk for persistence across browser restarts.
You can use different instances of the browser for different projects with sessions. Pass -s=name,
-s name or --session name to the invocation to talk to a specific browser.
playwright-cli open https://playwright.dev
playwright-cli -s=example open https://example.com --persistent
playwright-cli list
You can run your coding agent with the PLAYWRIGHT_CLI_SESSION environment variable:
PLAYWRIGHT_CLI_SESSION=todo-app claude .
Or instruct it to prepend -s= to the calls.
A headless session shuts down on its own after an hour without commands; run open again to
start a new one. Headed browsers stay open. Use open --idle-timeout=<ms> to change the timeout,
or 0 to disable it.
Manage your sessions as follows:
playwright-cli list # list all sessions
playwright-cli list --all # list sessions across all workspaces
playwright-cli close-all # close all browsers in this workspace
playwright-cli kill-all # forcefully kill all CLI daemon processes
Use playwright-cli show to open a visual dashboard that lets you see and control all running
browser sessions. This is useful when your coding agents are running browser automation in the
background and you want to observe their progress or step in to help.
playwright-cli show
playwright-cli show --port=9223 # run a blocking HTTP dashboard server
playwright-cli show --port=9223 --host=0.0.0.0 # listen on all interfaces
The dashboard opens a window with two views:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
playwright-cli@orchestra is listed by oarthurbg/orchestra — review the source before installing
npx claudepluginhub oarthurbg/orchestra --plugin playwright-cliPlugins from other owners that cover similar ground