chrome-cdp
Installation
SKILL.md
Chrome CDP
Lightweight Chrome DevTools Protocol CLI. Connects directly via WebSocket, does not need Puppeteer, and works well with large tab counts.
Prerequisites
- Chrome (or Chromium, Brave, Edge, Vivaldi) with remote debugging enabled: open
chrome://inspect/#remote-debuggingand toggle the switch - Node.js 22+ (uses built-in WebSocket)
- No Python or pip packages are required
- No
npm installstep is required - If your browser's
DevToolsActivePortis in a non-standard location, setCDP_PORT_FILEto its full path
Quick setup
- Open Chrome and keep it running.
- Open
chrome://inspect/#remote-debugging. - Turn on remote debugging.
- Keep the browser open while using this skill.
- Run
{baseDir}/scripts/cdp.mjs listto confirm that tabs are visible.