← 返回
AI智能 中文

Claw Browser

A visual, human-like web browser for OpenClaw agents.Supports reading,screenshots, and visible mode.
一款面向OpenClaw代理的可视化拟人浏览器,支持阅读、截图及可见模式。
canbirlik
AI智能 clawhub v1.0.2 1 版本 99709.1 Key: 无需
★ 0
Stars
📥 1,371
下载
💾 62
安装
1
版本
#latest

概述

🌐 Claw Browser Skill

This skill gives the agent "Eyes" to browse the web using a real

Chromium browser.

Unlike simple HTTP requests, claw-browser:

  • Renders JavaScript
  • Handles dynamic content
  • Loads SPA applications
  • Takes real screenshots
  • Can run in visible (non-headless) mode

🛠️ 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:

# 1. Create virtual environment
python3 -m venv venv

# 2. Activate it
source venv/bin/activate

# 3. Install dependencies
pip install -r requirements.txt

# 4. Download Chromium binaries (CRITICAL STEP)
playwright install chromium

> ⚠️ The playwright install chromium step is CRITICAL.\

> Without it, the browser will NOT launch.


🔧 Tools & Usage

browser.py

Arguments

-----------------------------------------------------------------------

Argument Description

----------------------------------- -----------------------------------

--url The website to visit (Required)

--action Action to perform: read or

screenshot

--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)

source venv/bin/activate && python browser.py --url "https://github.com/trending" --action read

2️⃣ Take a Screenshot of a News Site

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)

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:

export DISPLAY=:0 && source venv/bin/activate && python browser.py --url "[https://google.com](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:

  • Dynamic page interaction
  • Visual verification
  • Demo-ready browsing
  • Real-world automation

Made with ❤️ by @canbirlik

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 04:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,351 📥 317,804
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,057 📥 796,770
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,585