← 返回
效率工具 中文

Playwright Headless Browser (Chromium)

Set up headless browser automation in Clawdbot using Playwright Chromium. Use when configuring browser tools for WSL/Linux environments, installing browser d...
在 Clawdbot 中使用 Playwright Chromium 配置无头浏览器自动化,适用于在 WSL/Linux 环境中配置浏览器工具并安装浏览器驱动。
maverick-software
效率工具 clawhub v1.0.0 1 版本 99627 Key: 无需
★ 1
Stars
📥 2,651
下载
💾 210
安装
1
版本
#latest

概述

Playwright Browser Setup

Configure Clawdbot's browser tool to use Playwright-managed Chromium for headless automation in WSL/Linux environments.

Quick Setup

Run the setup script to install everything:

./scripts/setup.sh

This will:

  1. Install Playwright and Chromium
  2. Install required system libraries (requires sudo)
  3. Patch Clawdbot config to use the Playwright browser

Manual Setup

1. Install Playwright Chromium

npx playwright install chromium

2. Install System Dependencies

Chromium requires NSS and ALSA libraries:

# Ubuntu/Debian
sudo apt-get install -y libnss3 libasound2t64

# If libasound2t64 doesn't exist (older Ubuntu):
sudo apt-get install -y libnss3 libasound2

3. Find Chromium Path

find ~/.cache/ms-playwright -name "chrome" -path "*/chrome-linux64/*" 2>/dev/null | head -1

4. Configure Clawdbot

Patch the gateway config:

clawdbot config patch '{"browser": {"executablePath": "<path-from-step-3>", "headless": true, "noSandbox": true}}'

Or use the provided script:

./scripts/configure-clawdbot.sh

Verification

Test the browser works:

~/.cache/ms-playwright/chromium-*/chrome-linux64/chrome --headless --no-sandbox --disable-gpu --dump-dom https://example.com

Notes

  • noSandbox: true is required for WSL/container environments
  • headless: true runs without a visible window (faster, no display needed)
  • For visible browser, set headless: false and ensure WSLg or X11 is configured

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 23:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Copywriting Pro

maverick-software
为任何形式撰写有说服力、高转化率的文案——广告、着陆页、邮件、销售页、标题、产品描述、CTA和社交帖子。App...
★ 2 📥 4,937
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,122
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,741