Skip to content
AddHunt
Chrome extensions

Playwriter

Lets agents run Playwright in the user's real Chrome

Open source

  • Open source
  • Licence: MIT

In short

Playwriter is an open-source Chrome extension, CLI and MCP server that lets AI agents control a person's everyday Chrome browser with Playwright, keeping existing logins, cookies and extensions. It is aimed at developers who want agents to browse, test and debug in a real browser session.

What you get

  • Agents control the user's real Chrome via Playwright
  • Keeps logins, cookies and extensions
  • Accessibility snapshots and visual labels
  • Debugger, live editor and network interception
  • Screen recording and profiling
  • CLI, agent skill and MCP server

The details

Playwriter connects coding agents to the Chrome browser a person already uses, instead of launching a separate headless instance. It is installed as a Chrome extension plus a CLI and an agent skill, and it can also be used as an MCP server. Because it works in the existing browser, sessions keep their logins, cookies and extensions.

Capabilities

  • accessibility snapshots with search, automatic diffing and element scoping
  • screenshots with visual labels for interacting with page elements
  • isolated session state with a tab group per session
  • a JavaScript debugger with breakpoints and a live code editor, plus CSS and React component inspection
  • network interception for capturing, inspecting and replaying API calls
  • screen recording and streaming, CPU profiling and Web Vitals analysis

Other modes

A headless mode and a direct CDP connection are available for CI, Docker and setups where the extension is not wanted. Remote agents in devcontainers, VMs or over SSH can reach the browser through a tunnel or the local network, and a remote-control feature shares a browser with documented ways to revoke access. A skill recorder and cloud browsers are offered as well.

The documentation includes a security section covering a sandboxed filesystem and cookie safety, and the docs are published as llms.txt and a downloadable archive for agents. The code is MIT-licensed.

Alternatives to Playwriter

All alternatives

Questions

Does Playwriter use a headless browser?

By default it controls the person's existing Chrome through an extension, so logins and cookies are kept; a headless mode is available for CI and Docker.

Can remote agents use it?

Yes. Agents in devcontainers, VMs or over SSH can connect through a tunnel or the local network.

How do agents learn to use it?

An agent skill can be installed alongside the CLI, and the documentation is published as llms.txt and a downloadable archive.

More like this