# chrome-cdp-live-browser

Hooks an AI agent into the Chrome you already have running, over the DevTools Protocol. Your tabs, logins and page state stay as they are.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1500 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/chrome-cdp-live-browser/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/chrome-cdp-live-browser

## What it does

This skill talks to a running Chrome through CDP. Tools that launch a fresh isolated browser start you from zero; here the agent works with the tabs already on screen, cookies and sessions included. Listing tabs, taking a screenshot, pulling the accessibility tree, grabbing full or selector-scoped HTML, running JavaScript, navigating, clicking an element or a coordinate pair, typing text, reading network resource timing — each is a separate call into `scripts/cdp.mjs`. Raw CDP commands can be passed through too.

One WebSocket daemon per tab keeps things quiet: Chrome's “Allow debugging” modal shows up once instead of on every call. There is no npm step, just Node.js 22+. The `type` command reaches into cross-origin iframes. Daemons shut down with `stop`, or `stop <target>` for a single tab.

Turn on remote debugging first: open `chrome://inspect/#remote-debugging` and flip the switch. Chrome, Chromium, Brave, Edge and Vivaldi are detected automatically on macOS, Linux and Windows; a non-standard install needs the `DevToolsActivePort` path in `CDP_PORT_FILE`. With debugging off, nothing runs — and `open` also triggers Chrome's own “Allow” prompt.

## Requirements
- Works with: Chrome

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill chrome-cdp-live-browser -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/chrome-cdp-live-browser/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/chrome-cdp-live-browser/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill chrome-cdp-live-browser -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/chrome-cdp-live-browser/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill chrome-cdp-live-browser -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/chrome-cdp-live-browser/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills chrome-cdp-live-browser
```

2. **Manually: put the files in place**
- File: `.github/skills/chrome-cdp-live-browser/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill chrome-cdp-live-browser -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/chrome-cdp-live-browser
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/chrome-cdp-live-browser/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill chrome-cdp-live-browser -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/chrome-cdp-live-browser/SKILL.md

## When to use it
- read a page behind your own login
- fill in a form and submit it from the agent
- capture a screenshot of an open tab
- pull page data out with JavaScript
- click through pagination until the button is gone

## Example prompts
- List the tabs I have open in Chrome
- Take a screenshot of the Gmail tab
- Run `eval` on tab A1B2 to get the page title

## Similar
- [agent-browser](https://affpapa.org/en/nevibecode/skills/vercel-labs-agent-browser.md) — skill · 1200000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs
- [computer-use](https://affpapa.org/en/nevibecode/skills/computer-use.md) — skill · 239400 installs
- [browser-use](https://affpapa.org/en/nevibecode/skills/browser-use.md) — skill · 98200 installs
- [playwright-cli](https://affpapa.org/en/nevibecode/skills/playwright-cli.md) — skill · 195700 installs
- [last30days](https://affpapa.org/en/nevibecode/skills/last30days.md) — skill · 53000 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 139 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
