Twitter Post for Openclaw

Automate Twitter/X posts, threads, and replies using official API v2 integration for Openclaw Skills users.

sit-in
v1.0.0
Feb 18, 2026
5
5.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install twitter-post

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 twitter-post 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 Post?

The Twitter Post skill is a robust integration designed for AI agents to interact with the Twitter/X platform using the official API v2 and OAuth 1.0a authentication. This tool allows developers to programmatically manage social presence by posting single tweets, multi-part threads, replies, and quote tweets. By incorporating this into your Openclaw Skills library, you gain precise control over your social media automation with built-in character validation and rate limit tracking.

Designed for reliability, the skill handles the complexities of Twitter's weighted character count system, ensuring that international scripts and URLs are formatted correctly before submission. Whether you are building an automated news bot or a personal assistant, this skill provides the necessary bridge between your local environment and the global conversation on X.

Twitter Post Use Cases

  • Automatically sharing blog posts or product updates directly from a CMS.
  • Creating and posting long-form technical threads from markdown documentation.
  • Developing AI agents that can reply to customer inquiries or mentions in real-time.
  • Running scheduled social media campaigns using cron jobs and local scripts.
  • Testing tweet formatting and character limits without going live using the dry-run mode.

How Twitter Post Works

  1. The skill authenticates with the Twitter/X API using four critical environment variables through OAuth 1.0a.
  2. Content is passed to the script, which automatically calculates the weighted character count (e.g., CJK characters count as 2, URLs as 23).
  3. If a thread is requested, the skill iterates through the array of messages, posting them sequentially and linking each to the previous tweet ID.
  4. The script executes the POST request to the official Twitter v2 endpoints.
  5. A JSON response is returned to the agent, providing the new tweet URL and the remaining rate limit quota for the current window.

Twitter Post Setup

To integrate this with your Openclaw Skills, follow these installation steps:

  1. Obtain your API Key, API Key Secret, Access Token, and Access Token Secret from developer.x.com.
  2. Ensure your Twitter App permissions are set to Read and Write.
  3. Configure your environment variables:
export TWITTER_CONSUMER_KEY='your_key'
export TWITTER_CONSUMER_SECRET='your_secret'
export TWITTER_ACCESS_TOKEN='your_token'
export TWITTER_ACCESS_TOKEN_SECRET='your_token_secret'
  1. If you are in a region requiring a proxy, set the HTTPS_PROXY variable accordingly.

Twitter Post Data Schema & Taxonomy

The skill returns a structured JSON object upon every execution, facilitating easy parsing for automated workflows.

Property Type Description
ok boolean Success status of the API request
id string The unique numeric ID of the posted tweet
url string The direct permalink to the tweet on x.com
remaining string The number of requests left in the 15-minute window
limit string The total capacity of the current rate limit window

Twitter Post Advanced Features

  • Automatic sequential thread creation by linking parent and child tweet IDs.
  • Smart character validation that respects Twitter's specific weighting for CJK characters and URLs.
  • Dry-run mode enabled via TWITTER_DRY_RUN=1 to validate logic without consuming API quota.
  • Support for quote tweets and nested replies to existing status IDs.
  • Direct integration capabilities for piping content from other Openclaw Skills like Notion or local databases.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*