@bosshuman/openclaw-x
A操控你的 X/Twitter 账号——查看时间线、搜索推文、发推、点赞、转推、收藏。
Install
agr install @bosshuman/openclaw-x --target claudeWrites 11 files into .claude/skills/, pinned to git-8306a363.
- .claude/skills/openclaw-x/.gitignore
- .claude/skills/openclaw-x/LICENSE
- .claude/skills/openclaw-x/README.md
- .claude/skills/openclaw-x/README_CN.md
- .claude/skills/openclaw-x/README_EN.md
- .claude/skills/openclaw-x/README_JA.md
- .claude/skills/openclaw-x/README_KO.md
- .claude/skills/openclaw-x/SKILL.md
- .claude/skills/openclaw-x/SKILL_EN.md
- .claude/skills/openclaw-x/SKILL_JA.md
- .claude/skills/openclaw-x/SKILL_KO.md
Document
name: openclaw-x description: 操控你的 X/Twitter 账号——查看时间线、搜索推文、发推、点赞、转推、收藏。
OpenClaw X
通过本地 API 操控你的 X/Twitter 账号。
前置要求
- 从 GitHub Release 下载对应平台的可执行文件
- 从 Chrome 导出 X 的 cookies(使用 Cookie-Editor 扩展),保存为
cookies.json放在可执行文件同目录 - 运行可执行文件,确保服务已启动:
http://localhost:19816
可用操作
1. 获取首页时间线
curl http://localhost:19816/timeline?count=20
返回最新的推文列表,包含内容、作者、媒体 URL 等。
2. 获取推文详情
curl http://localhost:19816/tweet/{tweet_id}
支持传入推文 ID 或完整 URL(如 https://x.com/user/status/123456)。
3. 搜索推文
curl "http://localhost:19816/search?q=关键词&sort=Latest&count=20"
参数:
q:搜索关键词(必填)sort:Latest(最新)或Top(热门),默认 Latestcount:结果数量,默认 20
4. 发推文
curl -X POST http://localhost:19816/tweet \
-H "Content-Type: application/json" \
-d '{"text": "你好世界"}'
回复推文:
curl -X POST http://localhost:19816/tweet \
-H "Content-Type: application/json" \
-d '{"text": "回复内容", "reply_to": "原推文ID"}'
5. 点赞推文
curl -X POST http://localhost:19816/tweet/{tweet_id}/like
6. 转推
curl -X POST http://localhost:19816/tweet/{tweet_id}/retweet
7. 收藏推文
curl -X POST http://localhost:19816/tweet/{tweet_id}/bookmark
8. 获取用户信息
curl http://localhost:19816/user/{username}
返回用户名、头像、简介、粉丝数等。
9. 获取用户推文
curl http://localhost:19816/user/{username}/tweets?count=20
常见使用场景
- "帮我看看我的时间线有什么新推"
- "搜索关于 AI Agent 的最新推文"
- "发一条推文说:今天天气真好"
- "帮我点赞这条推文 https://x.com/xxx/status/123"
- "看看 @elonmusk 最近发了什么"
- "帮我收藏这条推文"
Trustgrade A
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- passLicense
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-8306a363a83a2026-07-31