Claude Chrome
by @dgriffin831
Use Claude Code with Chrome browser extension for web browsing and automation tasks. Alternative to OpenClaw's built-in browser tools.
clawhub install claude-chromeπ About This Skill
name: claude-chrome description: Use Claude Code with Chrome browser extension for web browsing and automation tasks. Alternative to OpenClaw's built-in browser tools. metadata: {"clawdbot":{"emoji":"π","requires":{"anyBins":["claude"]}}}
Claude Chrome β Browser Automation via Claude Code
Use Claude Code's Chrome integration to browse the web, interact with pages, and automate browser tasks. This is an alternative to OpenClaw's built-in browser tools (Chrome Relay, OpenClaw profile).
Prerequisites
1. Claude Code installed on the node (e.g. /opt/homebrew/bin/claude)
2. Claude Code Chrome extension installed and enabled in Chrome
3. Chrome running on the node
How It Works
Claude Code can connect to Chrome via its built-in browser extension (MCP server). When enabled, Claude Code gains browser tools β it can navigate pages, click elements, fill forms, read content, and more.
Step 1: Check if Chrome Extension is Active
Look for the native host process to confirm the Chrome extension is running:
nodes.run node= command='["bash", "-lc", "pgrep -f \"claude --chrome-native-host\""]'
If this returns a PID, the Chrome extension bridge is active and ready.
Step 2: Run Claude Code with Chrome
Use nodes.run with your node to execute browser tasks:
nodes.run node= commandTimeoutMs=120000 command='["bash", "-lc", "claude --dangerously-skip-permissions --chrome -p \"Go to example.com and read the headline\""]'
Flags:
--dangerously-skip-permissions β auto-approve all actions (required for automation)--chrome β enable Chrome browser integration-p / --print β non-interactive print mode (required for automated use)bash -lc β login shell to ensure PATH is loadedTimeout: See benchmarks below for guidance. Recommended defaults:
commandTimeoutMs=30000 (30 seconds)commandTimeoutMs=120000 (2 minutes)commandTimeoutMs=180000 (3 minutes)Performance Benchmarks
| Task Type | Example | Duration | Recommended Timeout | |-----------|---------|----------|---------------------| | Simple | Read button text on Google | 13s | 30s (30000ms) | | Medium | Wikipedia search + navigate + summarize | 76s | 2min (120000ms) | | Complex | Multi-page navigation + external links | ~90s+ | 3min (180000ms) |
Gateway timeout note: OpenClaw's gateway has a hardcoded 10-second connection timeout. Commands will error immediately but continue running in the background. Results arrive via system messages when complete.
Limitations
Tips
--dangerously-skip-permissions for automated runs-p / --print for non-interactive outputbash -lc for login shell (PATH loading)web_fetch instead (faster, no domain permissions needed)βοΈ Configuration
1. Claude Code installed on the node (e.g. /opt/homebrew/bin/claude)
2. Claude Code Chrome extension installed and enabled in Chrome
3. Chrome running on the node
π Tips & Best Practices
--dangerously-skip-permissions for automated runs-p / --print for non-interactive outputbash -lc for login shell (PATH loading)web_fetch instead (faster, no domain permissions needed)