Install
openclaw skills install openclaw-xClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Control your X/Twitter account — view timeline, search tweets, post, like, retweet, bookmark.
openclaw skills install openclaw-xControl your X/Twitter account via a local API.
cookies.json in the same directoryhttp://localhost:19816curl http://localhost:19816/timeline?count=20
Returns the latest tweets including content, author, media URLs, etc.
curl http://localhost:19816/tweet/{tweet_id}
Supports both tweet ID and full URL (e.g. https://x.com/user/status/123456).
curl "http://localhost:19816/search?q=keyword&sort=Latest&count=20"
Parameters:
q: Search keyword (required)sort: Latest or Top, default Latestcount: Number of results, default 20curl -X POST http://localhost:19816/tweet \
-H "Content-Type: application/json" \
-d '{"text": "Hello world"}'
Reply to a tweet:
curl -X POST http://localhost:19816/tweet \
-H "Content-Type: application/json" \
-d '{"text": "Reply content", "reply_to": "original_tweet_id"}'
curl -X POST http://localhost:19816/tweet/{tweet_id}/like
curl -X POST http://localhost:19816/tweet/{tweet_id}/retweet
curl -X POST http://localhost:19816/tweet/{tweet_id}/bookmark
curl http://localhost:19816/user/{username}
Returns username, avatar, bio, follower count, etc.
curl http://localhost:19816/user/{username}/tweets?count=20