用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vramrick/openclaw-skills --skill x-api命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | x-api |
| description | Post tweets, threads, replies, and quote-tweets to X (Twitter) via API v2 with OAuth 1.0a. |
| version | 1.0.0 |
| author | ModelFitAI <skills@modelfitai.com> |
| license | MIT |
| keywords | ["openclaw","skill","twitter","x","social-media","posting","oauth"] |
| requires | {"env":["X_API_KEY","X_API_SECRET","X_ACCESS_TOKEN","X_ACCESS_SECRET"]} |
You control the X (Twitter) account using the script at /root/.openclaw/skills/x-api/x-api.js.
There is NO twitter command, NO Python, NO pip in this container. Do NOT search for other tools. Do NOT try to use curl with OAuth headers. Do NOT try to install anything.
The ONLY way to post tweets is:
node /root/.openclaw/skills/x-api/x-api.js post "Your tweet text here"
This script handles ALL OAuth 1.0a signing automatically using your configured API keys. Just run it.
Post a tweet:
node /root/.openclaw/skills/x-api/x-api.js post "Hello world! This is my first tweet."
Post a thread (multiple connected tweets):
node /root/.openclaw/skills/x-api/x-api.js thread "First tweet of thread" "Second tweet continues..." "Third tweet wraps up"
Reply to a tweet:
node /root/.openclaw/skills/x-api/x-api.js reply 1234567890 "This is my reply"
Quote-tweet:
node /root/.openclaw/skills/x-api/x-api.js quote 1234567890 "Interesting take!"
Like a tweet:
node /root/.openclaw/skills/x-api/x-api.js like 1234567890
Delete a tweet:
node /root/.openclaw/skills/x-api/x-api.js delete 1234567890
Check your recent tweets:
node /root/.openclaw/skills/x-api/x-api.js timeline 10
Schedule a tweet for later (saved to queue, posted by cron):
node /root/.openclaw/skills/x-api/x-api.js schedule "Good morning!" "2026-02-22T09:00:00Z"
Schedule a thread for later:
node /root/.openclaw/skills/x-api/x-api.js schedule-thread "Tweet 1" "Tweet 2" "2026-02-22T09:00:00Z"
crypto module — zero dependencies{ success: true/false, data: {...}, summary: "..." }node /root/.openclaw/skills/x-api/x-api.js — this is your Twitter toolpip install, python, curl with OAuth, or any other methodsuccess field to confirm it workedX_API_KEY — X API key (OAuth 1.0a consumer key)X_API_SECRET — X API secretX_ACCESS_TOKEN — Access tokenX_ACCESS_SECRET — Access token secret