ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified browser automation Safety 3/5

xvfb-chrome

在Linux服务器上使用Chrome浏览器(无头/有头模式)配合xvfb运行,可连接chrome-devtools MCP进行浏览器自动化

Why use this skill?

Learn how to run Chrome on Linux servers using Xvfb and OpenClaw. Automate web tasks, screenshots, and interactions via DevTools MCP seamlessly.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/codinglink/xvfb-chrome
Or

What This Skill Does

The xvfb-chrome skill provides a robust framework for managing Google Chrome instances on headless Linux environments. It leverages Xvfb (X Virtual Framebuffer) to create a virtual display, allowing browsers that normally require a GUI to function seamlessly on CLI-only servers. By integrating with the chrome-devtools MCP, it transforms your server into a powerful browser automation engine, capable of navigating, interacting, and extracting data from web pages.

Installation

To install this skill, use the following command in your OpenClaw environment: clawhub install openclaw/skills/skills/codinglink/xvfb-chrome Ensure you have Google Chrome and xvfb pre-installed on your Linux system before initiating the installation.

Use Cases

  • Automated Web Scraping: Navigate complex websites that require JavaScript rendering, which simple HTTP requests cannot handle.
  • Visual Testing: Capture high-quality screenshots of web applications at specific resolutions (e.g., 1080p) for visual regression testing.
  • Browser Interaction: Automate workflows such as filling out forms, clicking buttons, and handling authentication loops using chrome-devtools.
  • Server-Side UI Automation: Run legacy web-based internal tools that require a visual browser interface within a restricted server environment.

Example Prompts

  1. "Start a new Chrome session on display 99, navigate to example.com, and take a full-page screenshot saved to /tmp/screenshot.png."
  2. "I need to automate a login process; please connect to the running Chrome instance on port 9222 and find the element with ID 'login-btn' to perform a click."
  3. "Set up a 1920x1080 virtual display for Chrome and list all currently open browser tabs using the devtools MCP."

Tips & Limitations

  • Performance: Always remember to use --disable-gpu and --no-sandbox flags when running Chrome on a server to avoid crash loops and permission errors.
  • Cleanup: Regularly clean up the /tmp/chrome-profile directory to prevent disk space issues, and use pkill commands to ensure old browser processes do not hog system resources.
  • Display Management: Utilize the -a flag with xvfb-run to avoid conflicts when multiple automation tasks are running on the same machine.
  • Headless Mode: Use --headless=new for high-performance scraping, but switch to standard mode when you need full interaction capabilities via DevTools.

Metadata

Stars3409
Views1
Updated2026-03-25
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-codinglink-xvfb-chrome": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#browser#automation#chrome#headless#scraping
Safety Score: 3/5

Flags: network-access, file-write, file-read, code-execution