An official API-driven skill for posting content to X (Twitter) using OAuth 1.0a for maximum reliability and bot detection bypass.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install x-api
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install x-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The x-api skill provides a secure and robust method for AI agents to publish content directly to X (Twitter). By utilizing the official X API v2 and OAuth 1.0a authentication, this skill avoids the common pitfalls of cookie-based automation, such as account flagging and bot detection. It is designed for developers who need a dependable way to broadcast updates, share insights, or integrate social media into their automated workflows.
As part of the wider ecosystem of Openclaw Skills, this tool prioritizes technical stability and compliance with platform terms of service. It serves as the primary write-mechanism for X, complementing other tools that focus on reading or monitoring timelines. Whether you are building an automated notification bot or an AI persona, this skill provides the necessary bridge to the X platform.
Visit the X Developer Portal and create a Project. Ensure your App permissions are explicitly set to Read and Write.
Install the required library globally:
npm install -g twitter-api-v2
You can configure credentials via environment variables or a JSON config file located at ~/.clawdbot/secrets/x-api.json:
{
"consumerKey": "your-api-key",
"consumerSecret": "your-api-secret",
"accessToken": "your-access-token",
"accessTokenSecret": "your-access-token-secret"
}
The skill manages configuration data through a structured JSON schema or environment mapping. Below is the metadata taxonomy for the credentials required by this Openclaw Skills component:
| Property | Description | Source |
|---|---|---|
| consumerKey | The API Key from X Developer Portal | config/env |
| consumerSecret | The API Secret Key from X Developer Portal | config/env |
| accessToken | The account-specific Access Token | config/env |
| accessTokenSecret | The account-specific Access Token Secret | config/env |
Loading
A professional framework for organizing AI agent projects through a self-contained directory structure and a rigorous three-layer documentation system.

A decentralized marketplace that allows AI agents to discover, hire, and pay specialized peer agents for automated task completion via on-chain escrow.

A programmatic, KYC-free email service powered by the Bitcoin Lightning Network for secure agent communications.

MailCaduceus transforms a single Microsoft 365 mailbox and domain into an enterprise-grade communications control plane.

A gRPC-powered interface for discovering services and managing smart home devices like Roborock and Tado.

A specialized Mandarin Chinese learning engine for reviewing vocabulary and auditing speech within an agentic workflow.








































