Chrome CDP Skill
Give your AI agent access to your live Chrome session — no extra setup.
- Source repo
- pasky/chrome-cdp-skill
- Stars
- ★ 3.3k
- Last updated
- 4mo ago
- License
- MIT
- Primary language
- JavaScript
- FA score
- 57/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Developers testing a web page can let an AI agent directly view and operate the current page state without restarting the browser.
- Not a fit if
- Users needing mobile or non-Chromium browser automation
- Teams that cannot run Node.js 22+ in their environment
- Unattended long-running tasks that outlast the 20-minute daemon idle exit
- Maintenance
- Commits in the last 6 monthslast commit 2026-06-28latest release v1.1.0 (2026-06-28)
- Source review
- 57/100 · Major gaps
What does this agent do, and when should you use it?
chrome-cdp-skill is a lightweight tool that connects to your existing Chrome session via the Chrome DevTools Protocol. It enables AI agents to read and interact with tabs you already have open, utilizing logged-in accounts and current page state without re-login. The skill provides a CLI script that lists tabs, takes screenshots, fetches accessibility trees, extracts HTML, evaluates JavaScript, navigates, clicks, types, and more. It uses persistent daemons to avoid repeated authorization prompts and reliably handles over 100 open tabs. With only Node.js 22+ as a runtime, no npm install required, it is easy to deploy.
It connects directly to Chrome's remote debugging WebSocket, without Puppeteer. On first access to a tab, it spawns a background daemon holding the session, triggering Chrome's 'Allow debugging' modal once; subsequent commands reuse the daemon silently. Provides commands: list open tabs (list), screenshot (shot), accessibility tree (snap), HTML extraction (html), evaluate JS in page context (eval), navigate (nav), network resource timing (net), click element by selector (click) or coordinates (clickxy), type at focused element (type), click 'load more' until gone (loadall), and raw CDP passthrough (evalraw). Also supports opening a new tab (open) and stopping daemons (stop).
- Developers testing a web page can let an AI agent directly view and operate the current page state without restarting the browser.
- For sites requiring login (e.g., Gmail, GitHub), the AI agent can access authenticated sessions, avoiding repeated logins.
- In multi-tab workflows, the AI agent can monitor many tabs simultaneously, reliably handling over 100 open tabs.
- Automation tasks needing interaction, like clicking buttons, filling forms, or scrolling through load-more content, can be executed via CLI commands.
- Integrating with agents like Claude Code or Amp by copying the skill directory provides immediate browser capabilities.
- For frontend debugging, the AI agent can evaluate custom JavaScript expressions and retrieve results.
How do you install or deploy this agent?
Install as a pi skill: pi install git:github.com/pasky/[email protected]. For other agents, clone or copy the skills/chrome-cdp/ directory to your agent's skills location. Runtime only requires Node.js 22+, no npm install needed. Enable Chrome remote debugging by navigating to chrome://inspect/#remote-debugging and toggling the switch.
How do you use this agent?
Use the CLI script, e.g., scripts/cdp.mjs list to list open tabs, scripts/cdp.mjs snap <target> for accessibility tree, scripts/cdp.mjs eval <target> "expression" to evaluate JS. <target> is a unique prefix of the targetId shown by list. Set the CDP_PORT_FILE environment variable to specify a non-standard DevToolsActivePort path.
What are this agent's strengths and limitations?
- Directly connects to an existing Chrome session, no new browser instance, preserving login state.
- Persistent daemons avoid repeated authorization modals and support over 100 tabs.
- No npm dependencies, only Node.js 22+ required, easy install.
- Supports multiple browsers (Chrome, Chromium, Brave, Edge, Vivaldi) and OSes.
- Rich CLI commands covering common interactions (click, type, navigate, screenshot, etc.).
- Requires manually enabling Chrome remote debugging and user authorization once per tab.
- Depends on Node.js 22+, which may not be available in older environments.
- Daemons auto-exit after 20 minutes of inactivity, long-running tasks may need to restart.
- Only works with desktop Chromium-based browsers, not mobile or non-Chromium.
How does this agent compare with similar options?
Compared to chrome-devtools-mcp, chrome-cdp uses persistent daemons, avoiding frequent reconnection modals and target enumeration timeouts with many tabs open.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Chrome CDP Skill This agent | 57 · Major gaps | Agent plugin / skillFree | ★ 3.3k | 4mo ago | JavaScript | — |
| Stagehand: The AI Browser Automation Framework | 68 · Some gaps | Library / SDKFree + model costs | ★ 26k | today | TypeScript | — |
| Browser Harness ♞ | 51 · Major gaps | Agent plugin / skillFree + model costs | ★ 19k | 1d ago | Python | Codex · Claude Code |
| Chrome DevTools MCP | 77 · Some gaps | MCP serverFree | ★ 55k | 1d ago | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The SKILL says to interact only after explicit user approval, and Chrome itself presents a debugging permission prompt; the README's 'one toggle' framing does not emphasize prior consent in the same way. The tool can read logged-in pages, evaluate page JavaScript, send input, and accept raw CDP commands, so its permission surface is broad; handling of sensitive page data is not explained. Node.js built-in WebSocket and no npm install keep the dependency surface relatively small. Navigation, clicking, typing, and opening tabs have external effects, while the materials describe stopping daemons but no way to undo page actions. Publisher identity is unknown; authorship and license are visible, but provenance and maintenance responsibility are only lightly documented.
The README and SKILL differ on some command details: for example, snap's compact option appears only in a tip, and the README's loadall form omits the optional wait parameter. The materials specify Node.js 22+, supported browsers, and a port-file override, so ordinary setup prerequisites are reasonably clear. They provide no concrete CLI error behavior or failure messages, which limits that score.
The materials cover listing tabs, screenshots, accessibility trees, HTML, navigation, network timing, clicking, typing, and raw CDP, and explicitly require user approval. Requiring a unique targetId prefix and rejecting ambiguous prefixes gives the trigger and target-selection boundaries useful precision; however, the broad capabilities of raw CDP and page JavaScript are not fully bounded. The documentation names Node.js, several Chromium-based browsers, and cross-platform support, but gives no detailed compatibility matrix.
The README, SKILL, license, and package metadata are clearly organized, with setup prerequisites, commands, coordinate conversion, and practical tips. The README gives installation paths for pi and other agents, and the SKILL provides runnable-looking command examples; limitations such as viewport-only screenshots and daemon idle exit are documented. The MIT terms are complete. Version evidence differs between the v1.0.1 install example and package version 1.1.0, and the packet has no changelog. Maintenance responsibility is also unclear beyond the package name, author attribution, and copyright; no clear maintainer or update path is given.
Command outputs have clear intended uses, and screenshots, semantic trees, and browser interaction can give an agent access to current page state. Connecting to an existing logged-in session and using persistent daemons are the documented sources of marginal value. Those capabilities also entail careful-use costs, and the materials contain no execution evidence to establish the size of the performance or utility gains, so full marks are not warranted.
The README and SKILL both describe features, setup, and limitations, while package metadata and the license corroborate the package name, version, and license. However, key performance and compatibility claims have no implementation source or independent corroboration in the supplied material. The documentation makes commands and some limitations concrete but does not consistently distinguish verified facts from author claims; static materials cannot verify runtime results.
- The tool can access existing logged-in sessions and run page JavaScript and raw CDP commands; use it only on the intended tab after explicit user approval.
- Command details and version examples differ between the README and SKILL; check the installed version and supported commands before use.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
What's Changed * Support Linux Chrome DevToolsActivePort path by @fredheir in https://github.com/pasky/chrome-cdp-skill/pull/1 * Add MIT LICENSE file by @Jah-yee in https://github.com/pasky/chrome-cdp-skill/pull/29 * feat: add Linux Flatpak browser paths to DevToolsActivePort discovery by @ynezz in https://github.com/pasky/chrome-cdp-skill/pull/30 New Contributors * @fredheir made their first contribution in https://github.com/pasky/chrome-cdp-skill/pull/1 * @Jah-yee made their first contribution in https://github.com/pasky/chrome-cdp-skill/pull/29 …View on GitHub ↗ -
Release notes excerpt
- Add click, clickxy, type, loadall, evalraw commands - snap now compact by default (no more InlineTextBox noise) - shot prints DPR and coordinate conversion hint - Coordinate system documented: CSS px = screenshot px / DPR - Eval index fragility warning in docs - Daemon IPC wire protocol documented in source - Reorganized as a proper pi package (installable via pi install git:github.com/pasky/chrome-cdp-skill) - Compatible with all agents (Amp, Claude Code, Cursor, etc.), not just piView on GitHub ↗
FAQ
Is it safe?
Which browsers are supported?
How does it handle multiple tabs?
Any other dependencies?
Is Chrome CDP Skill free?
Is Chrome CDP Skill open source?
Is Chrome CDP Skill still maintained?
Who makes Chrome CDP Skill?
Thanks — we use this to improve the page.