Install
openclaw skills install grok-twitterQuery and summarize Twitter/X information using Grok AI. Use when user asks about Twitter trends, tweets, X platform content, or needs Twitter information su...
openclaw skills install grok-twitterUse Grok AI to query and summarize Twitter/X information.
Set required environment variables:
export GROK_API_KEY="your-api-key-here"
export GROK_API_URL="https://api.cheaprouter.club/v1/chat/completions" # optional
export GROK_MODEL="grok-4.20-beta" # optional
Run the query script with your Twitter-related prompt:
python3 scripts/query_grok.py "Summarize recent tweets about [topic]"
# Get trending topics
python3 scripts/query_grok.py "What are the top trending topics on Twitter right now?"
# Summarize tweets about a topic
python3 scripts/query_grok.py "Summarize recent tweets about AI developments"
# Get information about a specific user
python3 scripts/query_grok.py "What has @elonmusk been tweeting about recently?"