Claw Browser
by @canbirlik
A visual, human-like web browser for OpenClaw agents.Supports reading,screenshots, and visible mode.
clawhub install claw-browserπ About This Skill
author: "@canbirlik" dependencies: python: - playwright description: A visual, human-like web browser for OpenClaw agents.Supports reading,screenshots, and visible mode. emoji: π name: claw-browser platforms:
π Claw Browser Skill
This skill gives the agent "Eyes" to browse the web using a real Chromium browser.
Unlike simple HTTP requests, claw-browser:
------------------------------------------------------------------------
π οΈ Installation & Setup (READ FIRST)
β οΈ **Before using this tool, the agent MUST set up the Python environment and download browser binaries.**
If venv does not exist, run this setup command block automatically:
`` bash
1. Create virtual environment
python3 -m venv venv
2. Activate it
source venv/bin/activate3. Install dependencies
pip install -r requirements.txt4. Download Chromium binaries (CRITICAL STEP)
playwright install chromiumbash source venv/bin/activate && python browser.py --url "https://github.com/trending" --action read> β οΈ Theplaywright install chromiumstep is CRITICAL.\ > Without it, the browser will NOT launch.browser.py------------------------------------------------------------------------
π§ Tools & Usage
--urlArguments
----------------------------------------------------------------------- Argument Description ----------------------------------- -----------------------------------
The website to visit (Required)--action
Action to perform:readorscreenshot--visible
(Optional) Runs the browser in visible mode (NOT headless). Use if the user wants to *see* the browser. -----------------------------------------------------------------------------------------------------------------------------------------------
π Execution Examples
β οΈ Always activate the virtual environment first.
------------------------------------------------------------------------
1οΈβ£ Read a Page (Headless - Default)
------------------------------------------------------------------------2οΈβ£ Take a Screenshot of a News Site
bash
source venv/bin/activate && python browser.py --url "https://news.ycombinator.com" --action screenshot
This saves: evidence.png
------------------------------------------------------------------------
3οΈβ£ Visible Mode (Shows Browser UI - Great for Demos)
bash
source venv/bin/activate && python browser.py --url "https://google.com" --action read --visible
This will launch a real Chromium window on screen.------------------------------------------------------------------------
4οΈβ£ Visible Mode (WSL / Linux Fix) βοΈ
Use this if you get "Missing X server" or "Display not found" errors:
bash
export DISPLAY=:0 && source venv/bin/activate && python browser.py --url "https://google.com" --action read --visible
`
This sets the DISPLAY variable so the browser can open on your screen.------------------------------------------------------------------------
π§ When Should the Agent Use This Skill?
Use
claw-browser when: The page requires JavaScript rendering
The site is dynamic (React, Vue, Angular, etc.)
Screenshots are required
The user explicitly asks to "open" or "see" a website
Traditional HTTP requests fail ------------------------------------------------------------------------
β‘ Summary
claw-browser` transforms your OpenClaw agent from a simple API caller
into a real browser-powered assistant with visual capabilities.It enables:
------------------------------------------------------------------------
Made with β€οΈ by @canbirlik