📱

Get Our Mobile App

Take your business learning on the go!

Download on the App StoreGet it on Google Play

Create Browser Swarms with Claude Code + Playwright CLI

Chase AI1:08

Transcription

If you use Claude code, then you need to learn how to use the Playright CLI along with it if you want to do anything with browser automations. And by browser automations, I mean having Claude automatically do things on the browser from the terminal. That means checking your website for form submission errors. That means going out and doing things on Amazon for you. Anything to do with a browser, we can do it automatically with Playright.

Now, you might be thinking, isn't there a cloud in Chrome extension? And don't we already have the Playright MCP? And while that is true, the CLI is actually infinitely better than the MCP or Claude and Chrome. Claude and Chrome actually kind of sucks. Very token-heavy. We can't run it in parallel and you can't do it headless.

The MCP from Playright can run headless and it can do parallel executions just like the CLI. But the MCP is a token hog and the CI solves that problem. That means if I combine the Playright CLI with cloud code, I can spin up two, three, four, five sub-agents all doing their own browser automations from the terminal.

I did a whole deep dive on this exact topic on my YouTube, so make sure you check that out or go to my community. There's a link to that in my bio.