Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
update skill docs for simplified CLI: remove agent/task/session management, add cloud connect and CDP workflows
ShawnPana2778c41c3b57
diff --git a/skills/browser-use/SKILL.md b/skills/browser-use/SKILL.mdindex a6257a6fe..4da64c5ff 100644--- a/skills/browser-use/SKILL.md+++ b/skills/browser-use/SKILL.md@@ -33,10 +33,13 @@ browser-use open <url> # Default: headless Chromiumbrowser-use --headed open <url> # Visible Chromium windowbrowser-use --profile open <url> # Real Chrome with Default profilebrowser-use --profile "Profile 1" open <url> # Real Chrome with named profile+browser-use --cdp-url http://localhost:9222 open <url> # Connect to existing browser via CDP+browser-use --cdp-url ws://localhost:9222/devtools/browser/... state # WebSocket CDP URL```- **Default (no --profile)**: Fast, isolated Chromium, headless by default- **With --profile**: Uses your real Chrome binary with the specified profile (cookies, logins, extensions). Bare `--profile` uses "Default".+- **With --cdp-url**: Connects to an already-running browser via CDP URL (http:// or ws://). Useful for Docker containers, remote debugging sessions, or cloud-provisioned browsers. `--cdp-url` and `--profile` are mutually exclusive.## Essential Commands@@ -163,6 +166,10 @@ The Python session maintains state across commands. The `browser` object provide### Cloud API```bash+browser-use cloud connect # Provision cloud browser and connect+browser-use cloud connect --timeout 120 # Custom timeout+browser-use cloud connect --proxy-country US # With proxy+browser-use cloud connect --profile-id <id> # With cloud profilebrowser-use cloud login <api-key> # Save API keybrowser-use cloud logout # Remove API keybrowser-use cloud v2 GET /browsers # List browsers@@ -174,6 +181,8 @@ browser-use cloud v2 --help # Show API v2 endpoinbrowser-use cloud v3 --help # Show API v3 endpoints```+`cloud connect` provisions a cloud browser, connects via CDP, and prints a live URL. `browser-use close` disconnects AND stops the cloud browser (no orphaned billing). Mutually exclusive with `--cdp-url` and `--profile`.+API key: env var `BROWSER_USE_API_KEY` or `browser-use cloud login`. Stored in `~/.config/browser-use/config.json`.### Tunnels@@ -237,6 +246,24 @@ browser-use profile cookies "Default"# → github.com: 2```+### Connecting to an Existing Chrome Browser++Use when the user has Chrome already running and wants to control it via browser-use.++**Requirement:** Chrome must have remote debugging enabled (`chrome://inspect/#remote-debugging` on Chrome >= 144, or launch with `--remote-debugging-port=<port>`).++**Connection flow:**++1. Read Chrome's `DevToolsActivePort` file to get the port and WebSocket path (the HTTP `/json/version` endpoint often does not respond):+ - macOS: `~/Library/Application Support/Google/Chrome/DevToolsActivePort`+ - Linux: `~/.config/google-chrome/DevToolsActivePort`+ - The file contains two lines: the port and the WebSocket path. Combine into `ws://127.0.0.1:<port><path>`.+2. Close any existing browser-use session (`browser-use close`), then connect with `--cdp-url ws://...`.+3. List tabs with: `browser-use --cdp-url <ws_url> python "import json; tabs = browser._run(browser._session.get_tabs()); print(json.dumps(tabs, indent=2, default=str))"`+4. Switch tabs with `browser-use --cdp-url <ws_url> switch <tab_index>`.++**Important:** Always use the `ws://` WebSocket URL (not `http://`) with `--cdp-url` when connecting to an existing Chrome instance.+### Exposing Local Dev ServersUse when you have a local dev server and need to expose it via tunnel.@@ -263,6 +290,7 @@ browser-use screenshot|--------|-------------|| `--headed` | Show browser window || `--profile [NAME]` | Use real Chrome (bare `--profile` uses "Default") |+| `--cdp-url <url>` | Connect to existing browser via CDP URL (`http://` or `ws://`) || `--json` | Output as JSON || `--mcp` | Run as MCP server via stdin/stdout |diff --git a/skills/remote-browser/SKILL.md b/skills/remote-browser/SKILL.mdindex 80fbb55bb..4ba841977 100644--- a/skills/remote-browser/SKILL.md+++ b/skills/remote-browser/SKILL.md@@ -18,6 +18,19 @@ browser-use doctorFor more information, see https://github.com/browser-use/browser-use/blob/main/browser_use/skill_cli/README.md+## Browser Modes++```bash+browser-use open <url> # Default: headless Chromium+browser-use cloud connect # Provision cloud browser and connect+browser-use --cdp-url http://localhost:9222 open <url> # Connect to existing browser via CDP+browser-use --cdp-url ws://localhost:9222/devtools/browser/... state # WebSocket CDP URL+```++- **Default**: Launches headless Chromium+- **With cloud connect**: Provisions a cloud browser via Browser-Use Cloud API, connects via CDP, and prints a live URL. `browser-use close` disconnects AND stops the cloud browser. Requires API key (`BROWSER_USE_API_KEY` env var or `browser-use cloud login`).+- **With --cdp-url**: Connects to an already-running browser via CDP URL (http:// or ws://). Useful for Docker containers, remote debugging sessions, or cloud-provisioned browsers. `browser-use close` disconnects without killing the external browser.+## Core Workflow```bash@@ -201,6 +214,7 @@ browser-use screenshot|--------|-------------|| `--headed` | Show browser window || `--profile [NAME]` | Use real Chrome (bare `--profile` uses "Default") |+| `--cdp-url <url>` | Connect to existing browser via CDP URL (`http://` or `ws://`) || `--json` | Output as JSON |## Tips