x-browser for Openclaw

A browser-based automation skill for X (Twitter) that enables posting tweets, threads, and media without expensive API fees.

sa9saq
v1.0.0
Feb 11, 2026
0
0
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install x-browser

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 x-browser 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 x-browser?

x-browser is a high-performance automation skill designed to interact with X (Twitter) through the HTTP Browser API. Unlike traditional methods that rely on the increasingly expensive and restrictive official API, this tool mimics human browser behavior to perform actions. It is a core component of the Openclaw Skills ecosystem for developers who need to programmatically manage social media presence.

By leveraging sequence-based actions such as clicking, typing, and waiting for specific DOM selectors, x-browser provides a resilient way to handle posts, replies, and complex threads. The skill operates via a headless browser environment, ensuring that your automation remains functional even as official API specifications change, while significantly reducing operational costs for social media bots and agents.

x-browser Use Cases

  • Automating daily news summaries or status updates directly to X.
  • Creating multi-post educational threads without manual data entry.
  • Bypassing the high costs of X Basic and Pro API tiers for small to medium projects.
  • Programmatically uploading AI-generated media using Openclaw Skills integration.
  • Managing multiple account interactions through secure browser-based sequences.

How x-browser Works

  1. The skill receives a POST request containing a URL and a sequence of browser actions.
  2. It initializes a session with the HTTP Browser API using your unique worker URL and secret.
  3. The browser navigates to the specified X.com endpoint, such as the tweet compose page.
  4. It executes the action array step-by-step, targeting specific data-testid selectors to input text and attach media.
  5. Upon completion of the sequence, it triggers the post button and captures a screenshot for verification and logging.

x-browser Setup

To start using this skill, configure your environment variables and use the sequence API.

export MOLTBOT_URL="https://your-worker.workers.dev"
export CDP_SECRET="your-secret"

You can then trigger a tweet via a simple curl command:

curl -X POST "${MOLTBOT_URL}/browser/sequence?secret=${CDP_SECRET}" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://x.com/compose/tweet",
    "actions": [
      {"type": "waitForSelector", "selector": "[data-testid=\"tweetTextarea_0\"]"},
      {"type": "type", "selector": "[data-testid=\"tweetTextarea_0\"]", "text": "Hello from Openclaw Skills!"},
      {"type": "wait", "ms": 1000},
      {"type": "click", "selector": "[data-testid=\"tweetButton\"]"},
      {"type": "wait", "ms": 3000},
      {"type": "screenshot"}
    ]
  }'

x-browser Data Schema & Taxonomy

The skill organizes its operations using a JSON-based action manifest. Below is the primary metadata and action structure used within Openclaw Skills:

Field Type Description
url string The target X.com page (e.g., /home, /compose/tweet)
type string The action type: waitForSelector, type, click, wait, or screenshot
selector string The CSS selector or data-testid used to find UI elements
text string The content to be typed into text areas or input fields
ms number Duration in milliseconds for wait actions

x-browser Advanced Features

  • Multi-tweet thread support using the dynamic addButton selector logic.
  • Media upload integration allowing up to 4 images per post sequence.
  • Human-like interaction modeling with configurable wait times to minimize account risk.
  • Automated login flow sequences including credential injection and session verification.
  • Native compatibility with other Openclaw Skills like Nano Banana Pro for seamless AI image generation and posting workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*