Post to X (Twitter) using the official OAuth 1.0a API. Use when asked to "post to X", "tweet this", "post on Twitter", create threads, delete tweets, or chec...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install x-oauth-api或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install x-oauth-api⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/x-oauth-api/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: x-oauth-api description: Post to X (Twitter) using the official OAuth 1.0a API. Use when asked to "post to X", "tweet this", "post on Twitter", create threads, delete tweets, or check account info. Free tier compatible. NOT for search, mentions, or media uploads (requires Basic+ tier). metadata: { "openclaw": { "requires": { "env": ["X_API_KEY", "X_API_SECRET", "X_ACCESS_TOKEN", "X_ACCESS_TOKEN_SECRET"] } } } ---
Post to X (formerly Twitter) using the official X API with OAuth 1.0a authentication.
This skill provides direct access to X API v2 for posting tweets, managing threads, and monitoring mentions. No proxy or third-party service required — uses your X API credentials directly.
Use when:
Store these environment variables (from your X Developer Account):
X_API_KEY # Consumer Key (API Key)
X_API_SECRET # Consumer Secret
X_ACCESS_TOKEN # Access Token
X_ACCESS_TOKEN_SECRET # Access Token Secret
X_USER_ID # Optional: Your numeric user ID (speeds up mentions)
Free tier supports:
x me)Requires Basic+ tier:
# Post a simple tweet
x post "Hello from X API"
# Post a thread
x thread "First tweet" "Second tweet" "Third tweet"
# Check mentions
x mentions --limit 10
# Search recent tweets
x search "AI agents" --limit 5
x post Post a single tweet.
Options:
--reply-to - Reply to a specific tweet--quote - Quote tweet--media - Attach image/videox thread ... Post a tweet thread.
x mentions [options]Get recent mentions of your account.
Options:
--limit - Number of mentions (default: 10, max: 100)--since - Only mentions after this ID--format json - Output as JSONx search [options] Search recent tweets.
Options:
--limit - Number of results (default: 10, max: 100)--format json - Output as JSONx delete Delete a tweet.
x meShow current account info (name, username, follower counts, user ID).
| Endpoint | Limit | Window | |----------|-------|--------| | POST /2/tweets | 200 | 15 min (Free tier) | | GET /2/tweets/search/recent | 100 | 15 min (Free tier) | | GET /2/users/:id/mentions | 100 | 15 min (Free tier) |
Rate limits vary by access tier. See X API documentation for details.
OAuth 1.0a is handled transparently. Just provide your credentials via environment variables. The skill will sign all requests automatically.
"Unauthorized" error
"Rate limit exceeded"
"This endpoint requires a paid X API tier"
Free. X API is free for basic usage. Check your app's rate limits in X Developer Portal.
X_API_KEY, X_API_SECRET, X_ACCESS_TOKEN, X_ACCESS_TOKEN_SECRET).\n, OAuth signing will fail silently with a 401. Always verify with echo -n "$X_API_KEY" | xxd to confirm no whitespace.POST /2/tweets doesn't affect GET /2/users. Each endpoint has its own 15-minute window. Back off only the failing endpoint.安装 X OAuth API 后,可以对 AI 说这些话来触发它
Help me get started with X OAuth API
Explains what X OAuth API does, walks through the setup, and runs a quick demo based on your current project
Use X OAuth API to post to X (Twitter) using the official OAuth 1
Invokes X OAuth API with the right parameters and returns the result directly in the conversation
What can I do with X OAuth API in my marketing & growth workflow?
Lists the top use cases for X OAuth API, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/x-oauth-api/ 目录(个人级,所有项目可用),或 .claude/skills/x-oauth-api/(项目级)。重启 AI 客户端后,用 /x-oauth-api 主动调用,或让 AI 根据上下文自动发现并使用。
X OAuth API 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
X OAuth API 可免费安装使用。请查阅仓库了解许可证信息。
Post to X (Twitter) using the official OAuth 1.0a API. Use when asked to "post to X", "tweet this", "post on Twitter", create threads, delete tweets, or chec...
X OAuth API 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using X OAuth API
Identifies repetitive steps in your workflow and sets up X OAuth API to handle them automatically