Chrome attach

From stevehuang0115/crewly · View interactive version

Chrome attach is an AI agent skill from the GitHub repository stevehuang0115/crewly. Fallback only: use the remote-browser skill (Crewly in Chrome) first; use this only when Crewly in Chrome is not drivable. One-click attach to user's running Chrome browser via CDP. Auto-discovers Chrome processes, connects via DevTools Protocol, preserves real logins.

How to use this skill

Skill file

Chrome Live Attach

One-click attach to the user's running Chrome browser via Chrome DevTools Protocol (CDP). Auto-discovers Chrome processes, connects without extensions, and preserves real logins.

Modes

`discover` (default)

Scans for Chrome instances with CDP enabled. Returns a list of attachable instances.

{"mode": "discover"}

`attach`

Connects to a specific CDP port. Returns connection info including WebSocket URL and open page count.

{"mode": "attach", "port": 9222}

`launch`

Launches Chrome with CDP enabled. If Chrome is already running without CDP, launches an alternative instance.

{"mode": "launch", "port": 9222}

Output Format

{
  "success": true,
  "mode": "discover|attach|launch",
  "found": true,
  "instances": [
    {
      "port": 9222,
      "wsUrl": "ws://127.0.0.1:9222/devtools/browser/...",
      "httpEndpoint": "http://127.0.0.1:9222",
      "version": "Chrome/131.0.6778.86",
      "isPrimary": true
    }
  ]
}

Privacy & Security

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.