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

rey-x-api

Post to X (Twitter) using official API with OAuth 1.0a. Supports tweets, threads, media. Use when user says "X API", "tweet via API", "post to X".

Why use this skill?

Integrate the X API into your OpenClaw agent for reliable, professional tweeting and thread posting. Secure, scalable, and optimized for automation.

skill-install — Terminal

Install via CLI (Recommended)

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

What This Skill Does

The rey-x-api skill provides a robust, production-ready interface for interacting with the X (Twitter) platform via its official API. By leveraging OAuth 1.0a and Cloudflare Workers, this skill ensures that all authentication and API calls are handled securely on the server side, keeping sensitive credentials like your Consumer Keys and Access Tokens isolated from the client logic. It facilitates high-reliability actions including single-tweet posting, threaded conversations, and automated content deletion. Unlike browser-automation alternatives, this skill offers a stable, programmatic approach suitable for business-critical applications, automated bots, and consistent social media management where reliability is non-negotiable.

Installation

To install this skill, run the following command in your terminal within the OpenClaw environment:

clawhub install openclaw/skills/skills/sa9saq/rey-x-api

Ensure that you have correctly configured the required environment variables in your Cloudflare Workers deployment, including your X API Key, Secret, Access Tokens, and the mandatory CDP_SECRET for secure communication.

Use Cases

  • Automated Content Distribution: Sync blog posts or technical updates directly to X as professional threads.
  • Bot Development: Create AI-driven accounts that respond to specific triggers or provide real-time status updates.
  • Reliable Social Media Management: Replace fragile browser-based automation with a stable API-first architecture.
  • High-Volume Interactions: Manage large-scale interactions where API rate limits and reliability are key concerns.

Example Prompts

  1. "Post this summary of the new software update to X as a thread: [insert text]."
  2. "Tweet 'Hello World!' using the API."
  3. "Delete the tweet with ID 1234567890 to remove outdated information."

Tips & Limitations

  • Cost Awareness: This skill operates on a pay-per-use model. Be mindful of costs; always set monthly usage caps on your X Developer Dashboard to prevent budget overruns.
  • API Limits: Keep in mind that official X API endpoints have specific rate limits. If you are planning high-frequency posting, review the X documentation to ensure you stay within your tier's quota.
  • Security: Never hardcode your API secrets in your source code. Always use environment variables or secret management tools provided by your platform.
  • API vs. Browser: If you need to perform complex UI-driven actions like poll creation or specific media management not supported by the basic API, consider checking if an x-browser skill better fits your requirements, though it will lack the stability and official compliance of this API-based tool.

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-rey-x-api": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#x-api#social-media#automation#twitter#api-integration
Safety Score: 4/5

Flags: network-access, external-api