@jaaneek

X Search

Search X (Twitter) posts using the xAI API. Use when the user wants to find tweets, search X/Twitter, look up what people are saying on X, or find social med...

当前版本
v1.0.0
75 9,454总安装 23

name: x-search description: Search X (Twitter) posts using the xAI API. Use when the user wants to find tweets, search X/Twitter, look up what people are saying on X, or find social media posts about a topic. homepage: https://docs.x.ai/developers/tools/x-search metadata: { "openclaw": { "emoji": "𝕏", "requires": { "bins": ["python3"], "env": ["XAI_API_KEY"] }, "primaryEnv": "XAI_API_KEY", "install": [ { "id": "python-brew", "kind": "brew", "formula": "python", "bins": ["python3"], "label": "Install Python (brew)", }, ], }, }

X Search

Search X (Twitter) posts using the xAI Grok API with real-time access to X content.

Setup

  1. Get your API key: https://console.x.ai
  2. Set environment variable:
    export XAI_API_KEY="xai-your-key-here"
    
  3. Or set skills."x-search".apiKey / skills."x-search".env.XAI_API_KEY in ~/.openclaw/openclaw.json

Usage

python3 {baseDir}/scripts/search.py "what is trending in AI right now"

Useful flags:

# Filter by handles (max 10)
python3 {baseDir}/scripts/search.py --handles jaaneek,OpenClaw "latest posts"

# Exclude handles (max 10)
python3 {baseDir}/scripts/search.py --exclude spambot,crypto_shill "trending AI"

# Date range (YYYY-MM-DD)
python3 {baseDir}/scripts/search.py --from 2026-03-01 --to 2026-03-20 "xAI grok updates"

# Enable image/video understanding in posts
python3 {baseDir}/scripts/search.py --images --video "product demos"

Notes

  • Uses the xAI Responses API with x_search tool (Grok performs the search and summarizes results)
  • Cannot use --handles and --exclude at the same time
  • Results include citations with links to original X posts
  • Present results in a readable format with post content, authors, and citations

Security Scan

OpenClaw

gpt-5-mini

clean

OpenClaw 分析

The skill's code, install steps, and required credential (XAI_API_KEY) align with its stated purpose of querying the xAI/Grok x_search tool and there are no surprising network endpoints, extra credentials, or persistent privileges requested.

置信度: high

VirusTotal

Type: OpenClaw Skill Name: xsearch Version: 1.0.0 The x-search skill is a well-implemented tool for searching X (Twitter) via the official xAI Grok API. The Python script (scripts/search.py) uses standard libraries (urllib) to interact with the API, includes robust input validation for handles and dates, and implements safety measures like blocking HTTP redirects. No evidence of data exfiltration, malicious execution, or prompt injection was found.

元数据

  • 作者: @jaaneek
  • 创建时间: 2026/03/20
  • 更新时间: 2026/03/31
  • 版本数: 1
  • 评论数: 1
  • 扫描时间: 2026/03/20

运行要求

  • env:XAI_API_KEY
X Search | ClawHub 中文站