Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

browser-cdp

Skill by zenstory-ai

Controls a Chrome browser through the Chrome DevTools Protocol so an assistant can reuse existing login sessions. It is for users who need to open pages, run JavaScript, take snapshots, or extract auth tokens from a signed-in browser.

  • Score 90
  • 8.9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install browser-cdp

Built from the published package, never by AI.

git clone --depth 1 https://github.com/zenstory-ai/oh-story-claudecode /tmp/oh-story-claudecode && mkdir -p ~/.claude/skills && cp -r /tmp/oh-story-claudecode/skills/browser-cdp ~/.claude/skills/browser-cdp

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install browser-cdp in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill connects an AI assistant to Google Chrome through the Chrome DevTools Protocol (CDP). It uses the agent-browser command line tool to drive a Chrome window started in debug mode. The skill includes a setup script that first checks the current state without changing anything, then starts Chrome with a debug profile based on an existing profile so existing logins can be reused.

Once connected, the assistant can open URLs, wait for pages to load, evaluate JavaScript, take element snapshots, click and type, and read page text or stored tokens. The source says it is aimed at automation that needs an existing login, such as extracting auth tokens or batch page collection. Before ending any running Chrome process, the skill asks the user for consent.

Written from the project's SKILL.md and checked against it.

What it can do

  • Launch debug ChromeStarts Chrome in debug mode on a CDP port, using a debug profile based on an existing Chrome profile.
  • Open and waitOpens a URL with agent-browser and waits a set number of milliseconds for the page to load.
  • Evaluate JavaScriptRuns JavaScript on the page, including complex code passed as base64 or through stdin.
  • Take snapshotsTakes a snapshot of interactive page elements so the assistant can click or type into them.
  • Extract auth tokensReads localStorage or cookies on a logged-in page to pull out tokens, depending on the site.
  • Detect browser stateRuns a read-only check that reports whether Chrome is installed, running, and ready on the CDP port.

What you need

  • Node.js 20 or later
  • agent-browser installed globally with npm
  • Google Chrome installed and used before, with the source profile present
  • macOS, Linux, or Windows (Windows is experimental)

Try asking

  • Launch debug Chrome on port 9222 and open my logged-in dashboard page.
  • Run JavaScript on the current page to read the auth token from localStorage.
  • Take a snapshot of this page and click the search button.

Good to know

  • Windows support is marked experimental.
  • On Chrome 127 and later, encrypted cookies may not carry over, so you may need to log in once in the debug window.
  • Ending a running Chrome needs user consent, and unsaved tabs or drafts may be lost.
  • The source recommends a 30 second timeout per page for slow loads or batch collection.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/browser-cdp/SKILL.md, skills/browser-cdp/scripts/setup-cdp-chrome.js. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • scripts/setup-cdp-chrome.js42 KB

Alternatives to browser-cdp

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

browser-cdp: common questions

Which operating systems does browser-cdp support?

The source lists macOS, Linux, and Windows, with Windows marked as experimental. It requires Google Chrome to be installed and used before with an existing profile.

Will this skill close my open Chrome windows without asking?

No. The source says that any command that ends a running Chrome must first run a dry run, ask the user for consent, and only then continue with the --yes flag. Unsaved tabs or drafts may be lost.

What should I do if my login stops working?

The source suggests running the reset option with user consent to clear the debug profile. On Chrome 127 and later, you can also log in once in the debug window, and the login is kept unless you reset it.

How do I install browser-cdp?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is browser-cdp free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is browser-cdp safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to browser-cdp?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

browser-cdp Install

Add to stack

Loading.