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

X Api Poster

Post tweets to X/Twitter via API v2 with OAuth 1.0a — text, images, replies, and threads.

Why use this skill?

Automate X (Twitter) posts, media uploads, and replies with this OpenClaw skill. Uses secure OAuth 1.0a API v2 for reliable social media automation.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/sa9saq/x-api-poster
Or

What This Skill Does

The X Api Poster is a specialized OpenClaw agent skill designed to streamline automated interaction with the X (formerly Twitter) platform. By leveraging the official Twitter API v2, this skill provides a robust interface for posting text-based updates, uploading media, and executing thread-based replies directly from your local terminal or agent environment. Unlike basic web scrapers, this skill utilizes OAuth 1.0a authentication, ensuring that your automated actions are performed securely and within the parameters set by X's official developer guidelines. It handles the complexities of media uploads via the v1.1 endpoint while managing the core tweet creation via the v2 endpoint, effectively bridging the gap between local automation and live social media distribution.

Installation

To integrate this skill into your OpenClaw ecosystem, execute the command: clawhub install openclaw/skills/skills/sa9saq/x-api-poster. Ensure you have Python 3.8 or higher installed on your host machine. Once installed, create a secrets file at ~/.openclaw/secrets.env and populate it with your X_CONSUMER_KEY, X_CONSUMER_SECRET, X_ACCESS_TOKEN, and X_ACCESS_TOKEN_SECRET. Always protect this file by running chmod 600 ~/.openclaw/secrets.env to restrict access to your user account. Ensure you have the requests library installed in your environment via pip install requests before running any scripts.

Use Cases

This skill is ideal for developers, marketers, and researchers who need to maintain an active social media presence without manual intervention. Common use cases include: automated status updates from system monitoring tools, cross-posting content from local creative workflows, managing reply-based engagement for customer support agents, and building complex threads for automated content scheduling. By automating these tasks, you can ensure consistent activity on X without the need to keep a web browser open or manually log into social platforms.

Example Prompts

  1. "Post a tweet saying 'Just launched my new open source project using OpenClaw!'"
  2. "Reply to tweet id 1827364554928 with the image located at ~/projects/screenshots/demo.png and say 'Here is the demo you requested!'"
  3. "Automate a thread update: Post 'Phase 1 complete' then post 'Phase 2 starting now' as a reply to the previous tweet."

Tips & Limitations

Be mindful of X’s character limits; remember that t.co link wrapping consumes 23 characters regardless of the actual URL length. Always validate text lengths before execution to prevent API rejection. If you encounter a 429 error, your application has hit the rate limit threshold—wait for the duration specified in the x-rate-limit-reset header. Furthermore, ensure images adhere to the 5MB size limit to avoid failed uploads. Because this tool handles sensitive API credentials, never share logs or output containing your secret keys. For automated high-frequency tasks, always implement a review process to prevent accidental spamming or unauthorized content distribution.

Metadata

Author@sa9saq
Stars1133
Views0
Updated2026-02-18
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-sa9saq-x-api-poster": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#social#x#twitter#automation#api
Safety Score: 3/5

Flags: network-access, external-api, file-read