XVFB Chrome Automation for Openclaw

A specialized toolset for running headful or headless Chrome on Linux servers using XVFB to enable seamless AI-driven browser automation.

codinglink
v1.0.2
Feb 27, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install xvfb-chrome

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install xvfb-chrome using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is XVFB Chrome Automation?

The XVFB Chrome skill provides a comprehensive framework for running the Google Chrome browser on headless Linux environments. By utilizing the X Virtual Frame Buffer (XVFB), developers can simulate a display environment, allowing headful browser features to function on servers without physical monitors. This is particularly valuable for users of Openclaw Skills who need to integrate AI agents with real-time web browsing, complex UI interactions, and visual debugging.

This setup bridges the gap between traditional headless browsing and full graphical interaction. It enables the use of the Chrome DevTools Protocol (CDP) through a dedicated remote debugging port, making it a cornerstone for modern automation workflows. Whether you are performing high-fidelity web scraping or automated UI testing, this skill ensures your Openclaw Skills have the graphical backend they require.

XVFB Chrome Automation Use Cases

  • Executing automated web scraping and data extraction on cloud-based Linux servers.
  • Generating high-resolution screenshots and visual snapshots of dynamic web pages.
  • Powering AI-driven browser interactions via the chrome-devtools MCP server.
  • Debugging complex JavaScript-heavy websites in a headful environment without a local GUI.
  • Running automated end-to-end tests that require a real browser display buffer.

How XVFB Chrome Automation Works

  1. Initialize the XVFB virtual display to create a simulated graphical environment on the server.
  2. Launch Google Chrome using specific CLI flags such as --no-sandbox and --disable-gpu to ensure compatibility with server environments.
  3. Enable the remote debugging port (typically 9222) to allow external tools and AI agents to communicate with the browser.
  4. Connect an MCP (Model Context Protocol) server to the browser instance to translate AI instructions into browser actions.
  5. Execute automation tasks like navigation, element clicking, and script evaluation through the established debugging bridge.
  6. Manage the browser lifecycle by monitoring processes and cleaning up virtual display buffers as needed within your Openclaw Skills workflow.

XVFB Chrome Automation Setup

Prerequisites

Ensure your Linux server has Chrome and XVFB installed.

Basic Launch

To start Chrome in headful mode with a virtual display for Openclaw Skills integration, use the following command:

xvfb-run -a google-chrome --no-sandbox --disable-gpu --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile &

Connection Verification

Check if the browser is ready to receive commands:

curl -s http://127.0.0.1:9222/json/version

XVFB Chrome Automation Data Schema & Taxonomy

The skill manages browser state and metadata through several key parameters and directories:

Parameter Description Usage
--user-data-dir Path to the browser profile, storing cookies and session data Persistent sessions
--remote-debugging-port The TCP port used for CDP and MCP communication Default: 9222
DISPLAY Environmental variable mapping the browser to an XVFB instance e.g., DISPLAY=:99
Screen Resolution Configuration for the virtual buffer size e.g., 1280x720x24

Files generated typically include screenshots (PNG) and page snapshots (HTML/JSON) stored in specified output paths.

XVFB Chrome Automation Advanced Features

  • Multi-resolution support allowing for 720p and 1080p virtual buffers to accommodate different layout requirements.
  • Full integration with chrome-devtools MCP for advanced tool calling like evaluate_script and list_network_requests.
  • Automatic display allocation using the xvfb-run -a flag to prevent port conflicts.
  • Process isolation using unique user data directories for concurrent Openclaw Skills sessions.
  • Robust process management scripts for killing and restarting clean browser instances.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*