返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
s

stable-browser

Set up reliable browser automation using Chrome DevTools Protocol (CDP) instead of the flaky browser extension relay. Use when browser relay keeps disconnecting, throwing WebSocket 403 errors, or when you need stable headless/headed browser control for web scraping, form filling, social media posting, or any browser automation task. Replaces profile="chrome" with a rock-solid CDP connection.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
431
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

stable-browser

# Stable Browser Replace the unreliable browser extension relay with a direct Chrome DevTools Protocol connection. ## The Problem The OpenClaw browser extension relay (`profile="chrome"`) frequently breaks: - WebSocket 403 errors - Port confusion (gateway port vs relay port) - Dropped connections mid-automation - "Can't reach browser control service" errors - Badge/tab attachment confusion ## The Fix: Chrome CDP Launch Chrome with a debug port and connect directly. No extension needed. ### Quick Setup Run the setup script to configure everything: ```bash bash scripts/setup-cdp.sh ``` This will: 1. Create a dedicated Chrome profile at `~/.chrome-debug-profile` 2. Add `browser.cdpUrl` to your OpenClaw config 3. Create a LaunchAgent (macOS) so Chrome starts on login 4. Verify the connection works ### Manual Setup If you prefer to set things up manually, see [references/manual-setup.md](references/manual-setup.md). ### Usage After setup, always use `profile="openclaw"` (not `profile="chrome"`): ``` browser(action="snapshot", profile="openclaw") browser(action="navigate", profile="openclaw", targetUrl="https://example.com") browser(action="screenshot", profile="openclaw") ``` ### Key Differences from Extension Relay | Feature | Extension Relay | CDP Direct | |---------|----------------|------------| | Stability | Frequent disconnects | Rock solid | | Setup | Install extension + attach tab | One-time script | | Auth/Cookies | Shares your main Chrome | Dedicated profile | | Speed | Extra hop through extension | Direct protocol | | Headless | No | Optional (`--headless=new`) | ### Dedicated Profile The CDP browser uses `~/.chrome-debug-profile` — a separate Chrome profile. This means: - Log into sites once, stays logged in - Your main Chrome is untouched - No extension conflicts - Survives Chrome updates ### Tips - **First run**: Log into any sites you need (Google, GitHub, X, LinkedIn, etc.) - **Multiple tabs**: CDP manages all tabs — use `targetId` to pin a specific tab - **Headless mode**: Add `--headless=new` to the launch command for invisible operation - **Port conflict**: If port 9222 is taken, change it in both the launch command and config - **Restart Chrome**: `pkill -f 'remote-debugging-port=9222' && sleep 1 && bash scripts/setup-cdp.sh` ### Troubleshooting - **"Can't reach browser"**: Chrome isn't running with debug port. Run `setup-cdp.sh` or launch manually - **Port 9222 in use**: Another Chrome or process grabbed it. Kill it: `lsof -i :9222` - **Stale session**: Chrome crashed. Kill and restart: `pkill -f chrome-debug-profile` - **Profile corruption**: Delete `~/.chrome-debug-profile` and re-run setup

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 stable-browser-1776297886 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 stable-browser-1776297886 技能

通过命令行安装

skillhub install stable-browser-1776297886

下载

⬇ 下载 stable-browser v1.0.0(免费)

文件大小: 4.88 KB | 发布时间: 2026-4-16 16:08

v1.0.0 最新 2026-4-16 16:08
- Initial release of stable-browser skill.
- Enables robust browser automation via Chrome DevTools Protocol (CDP), eliminating reliance on the flaky extension relay.
- One-step setup script creates a dedicated Chrome profile and configures direct CDP connection.
- Improves stability, eliminates WebSocket/port issues, and supports headless/headed automation for scraping, form filling, and more.
- Provides usage instructions and troubleshooting guidance for seamless migration from the extension relay.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部