Twitter Posts for Openclaw

A powerful integration enabling AI agents to draft, publish, search, and manage posts, timelines, and interactions on X (Twitter) using secure ClawLink OAuth authentication.

hith3sh
v0.2.0
Jun 9, 2026
26
754
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install clawlink-twitter

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 clawlink-twitter 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 Twitter Posts?

The Twitter Posts skill bridges the gap between AI coding assistants and the X (Twitter) platform. By leveraging the secure, hosted connection flows of ClawLink, this skill allows users to authenticate seamlessly via OAuth without handling raw API credentials or complex developer configurations inside the chat interface. It belongs to the growing library of Openclaw Skills that empower developers and creators to automate social media workflows directly from their terminal or workspace.

With this integration, your AI assistant can retrieve home timelines, search for specific tweets, post updates with attached media, follow or unfollow users, and manage direct messages. This dramatically accelerates marketing operations, developer advocacy outreach, and community engagement workflows by putting complete X workspace management inside your conversational development environment.

Twitter Posts Use Cases

  • Developer Advocacy & Marketing: Easily draft and publish product updates or release announcements directly from your IDE.
  • Social Media Monitoring: Scan timelines and search queries for specific keywords, product mentions, or brand feedback to enable real-time replies.
  • Automated Workflows: Set up scripted triggers that compile system logs or reports and tweet summary metrics.
  • Community Management: Follow key industry advocates, mute or block spam accounts, and handle customer service questions via direct messages.

How Twitter Posts Works

  1. Plugin Installation: Execute the CLI command to pull the verified ClawLink plugin from ClawHub into your active OpenClaw gateway.
  2. Device Pairing: Link your workspace and terminal by initializing device pairing and signing in to the ClawLink auth service.
  3. X API Connection: Authorize your X account securely via the ClawLink portal, which securely encrypts and stores the OAuth token without exposing API keys.
  4. Dynamic Context Initialization: Start a new chat session using \/new to reload the tool registry, revealing X capabilities directly to the agent.
  5. Interactive Tool Calling: Ask your assistant to fetch data or queue actions. Safe read tools execute immediately, while high-impact write tools prompt for confirmation before publishing.

Twitter Posts Setup

Prerequisites

Install the verified ClawLink plugin via ClawHub and restart the gateway:

openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '[\"clawlink-plugin\"]' --strict-json
openclaw gateway restart

Connection Verification

Tell the assistant: "OpenClaw has been restarted. Send \/new as a standalone message to start a fresh chat, then ask for X (Twitter) again."

To verify connection status:

# List active integrations
clawlink_list_integrations

# Verify live tool catalog
clawlink_list_tools --integration twitter

Twitter Posts Data Schema & Taxonomy

The Twitter Posts skill organizes all requests dynamic-first using payload structures optimized for the X API v2. Numeric parameters, particularly Tweet IDs, are treated strictly as strings to prevent rounding bugs.

Primary Parameter Structure

Parameter Type Description Example
tweet_id String The 64-bit numerical ID of a tweet, stored as a string \"1848596048596058604\"
text String Message content to draft, publish, or search \"Discovering Openclaw Skills to automate X workflows!\"
username String Target user identifier handle \"developer_handle\"
media_ids Array References to successfully uploaded image or video files [\"18485960485\"]

Tool Execution Workflow Routing

  • Read Mode Operations: Safe tools such as twitter_get_home_timeline or twitter_search_tweets require no extra confirmation.
  • Write Mode Operations: Modifications like twitter_create_tweet, twitter_delete_tweet, or twitter_send_direct_message first execute a preview request via clawlink_preview_tool before full commitment.

Twitter Posts Advanced Features

  • Human-in-the-Loop Safe Execution: Forces explicit developer preview and approval using clawlink_preview_tool to eliminate accidental publishing errors.
  • Asynchronous Media Uploading: Decouples binary media uploads (twitter_upload_media) from posting pipelines, enabling media attachments for rich, engaging posts.
  • Flexible List and DM Management: Provides robust list subscription, listing, and direct messaging APIs to facilitate customer service ticketing workflows.
  • Robust Troubleshooting Pipeline: Standardized error classes (such as Duplicate post, Rate limit exceeded, Unauthorized) allow smooth failovers inside Openclaw Skills automation frameworks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*