One Browser Changed My AI Agent
Connect AI coding agents such as Claude to Zyte’s remote CDP browser using the Playwright CLI. In this video, I build a lightweight wrapper around Playwright CLI that handles Zyte authentication, test the connection with a smoke test, and then give a fresh Claude session access to the browser. Claude reads the documentation, works out how to use the wrapper, opens Books to Scrape, clicks a product, and returns the page title. I also explain when a CDP browser is the right choice—and when the Zyte API is a simpler option. If you only need to render a JavaScript page and retrieve its data, the API is usually the best fit. CDP becomes especially useful when an agent needs granular browser control and a sequence of interactive actions. Learn more about the Zyte CDP browser: [ADD LINK] Watch the longer CDP browser demo: [ADD LINK] Join the Zyte community: https://zyte.com/join-community/ Chapters: 00:00 Connecting agents to Zyte’s CDP browser 00:11 Why use the Playwright CLI? 00:37 Playwright capabilities for web scraping 00:53 Attaching to a remote browser through CDP 01:15 Building the Zyte Playwright CLI wrapper 02:10 Running the connection smoke test 02:23 Giving Claude control of the browser 03:24 When to use CDP instead of the Zyte API 03:53 Claude completes the browser task 04:14 Running the extended demo 04:22 Why this setup is useful for agents 05:02 More resources and community #Zyte #Playwright #ClaudeCode #AIagents #WebScraping #BrowserAutomation