twitter-openclaw
twitter-openclaw 🐦⬛
Interact with Twitter/X posts, timelines, and users from OpenClaw.
Authentication
Requires a Twitter API Bearer Token set as TWITTER_BEARER_TOKEN.
Optionally set TWITTER_API_KEY and TWITTER_API_SECRET for write operations (post, like, retweet).
Run twclaw auth-check to verify credentials.
Commands
Reading
twclaw read <tweet-url-or-id> # Read a single tweet with full metadata
twclaw thread <tweet-url-or-id> # Read full conversation thread
twclaw replies <tweet-url-or-id> -n 20 # List replies to a tweet
twclaw user <@handle> # Show user profile info
twclaw user-tweets <@handle> -n 20 # User's recent tweets
Timelines
twclaw home -n 20 # Home timeline
twclaw mentions -n 10 # Your mentions
twclaw likes <@handle> -n 10 # User's liked tweets
Search
twclaw search "query" -n 10 # Search tweets
twclaw search "from:elonmusk AI" -n 5 # Search with operators
twclaw search "#trending" --recent # Recent tweets only
twclaw search "query" --popular # Popular tweets only
Trending
twclaw trending # Trending topics worldwide
twclaw trending --woeid 23424977 # Trending in specific location
Posting
twclaw tweet "hello world" # Post a tweet
twclaw reply <tweet-url-or-id> "great thread!" # Reply to a tweet
twclaw quote <tweet-url-or-id> "interesting take" # Quote tweet
twclaw tweet "look at this" --media image.png # Tweet with media
Engagement
twclaw like <tweet-url-or-id> # Like a tweet
twclaw unlike <tweet-url-or-id> # Unlike a tweet
twclaw retweet <tweet-url-or-id> # Retweet
twclaw unretweet <tweet-url-or-id> # Undo retweet
twclaw bookmark <tweet-url-or-id> # Bookmark a tweet
twclaw unbookmark <tweet-url-or-id> # Remove bookmark
Following
twclaw follow <@handle> # Follow user
twclaw unfollow <@handle> # Unfollow user
twclaw followers <@handle> -n 20 # List followers
twclaw following <@handle> -n 20 # List following
Lists
twclaw lists # Your lists
twclaw list-timeline <list-id> -n 20 # Tweets from a list
twclaw list-add <list-id> <@handle> # Add user to list
twclaw list-remove <list-id> <@handle> # Remove user from list
Output Options
--json # JSON output
--plain # Plain text, no formatting
--no-color # Disable ANSI colors
-n <count> # Number of results (default: 10)
--cursor <val> # Pagination cursor for next page
--all # Fetch all pages (use with caution)
Guidelines for OpenClaw
- When reading tweets, always show: author, handle, text, timestamp, engagement counts.
- For threads, present tweets in chronological order.
- When searching, summarize results concisely with key metrics.
- Before posting/liking/retweeting, confirm the action with the user.
- Rate limits apply — space out bulk operations.
- Use
--jsonwhen you need to process output programmatically.
Troubleshooting
401 Unauthorized
Check that TWITTER_BEARER_TOKEN is set and valid.
429 Rate Limited
Wait and retry. Twitter API has strict rate limits per 15-minute window.
TL;DR: Read, search, post, and engage on Twitter/X. Always confirm before write actions.
More from leoyeai/openclaw-master-skills
readgzh
ReadGZH — Let AI read full-text WeChat Official Account articles. Supports standard articles and image-post formats.
4tushare-finance
获取中国金融市场数据(A股、港股、美股、基金、期货、债券)。支持220+个Tushare Pro接口:股票行情、财务报表、宏观经济指标。当用户请求股价数据、财务分析、指数行情、GDP/CPI等宏观数据时使用。
3find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
2eastmoney_financial_data
本 Skill 基于东方财富权威数据库及最新行情底层数据构建,支持通过自然语言查询行情类数据(股票、行业、板块、指数、基金、债券的实时行情、主力资金流向、估值等)、财务类数据(上市公司基本信息、财务指标、高管信息、主营业务等)、关系与经营类数据(关联关系、企业经营数据)。避免模型基于过时知识回答金融数据问题,提供权威及时的金融数据。
2stock-analysis
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
2linkedin
LinkedIn automation via browser relay or cookies for messaging, profile viewing, and network actions.
1