CLI for X/Twitter via direct API calls. Reads Chrome cookies from disk (no browser needed after birdx auth).
bash <skill-dir>/scripts/install.sh
Or manually:
npm install --prefix ~/clawd ws jsdom x-client-transaction-id
ln -sf <skill-dir>/scripts/birdx.js /opt/homebrew/bin/birdx
birdx auth
birdx auth # Read Chrome cookies from disk (no browser needed)
birdx auth --cdp # Use openclaw browser CDP fallback
Cookie cache: ~/.config/bird/birdx-cookies.json (TTL ~5h, re-run auth to refresh)
# Read single tweet (includes viewCount, bookmarkCount)
birdx read <tweet-url|id>
# Read thread + all replies (--sort relevance puts author thread first)
birdx replies <tweet-url|id> --sort relevance
birdx replies <tweet-url|id> --sort latest --total 40
# Search tweets (full metrics: views, likes, bookmarks, reposts)
birdx search "query" --sort top --total 20
birdx search "from:elonmusk" --sort latest
# Followers / following
birdx followers @username --total 50
birdx following @username --total 20
# JSON output
birdx read <url> --json
birdx search "query" --json
viewCount — total impressionslikeCount, repostCount, replyCount, bookmarkCountauthor.userName, author.fullName, author.isVerifiedBIRDX_MODULES — override node_modules path (default: $HOME/clawd/node_modules)ws, jsdom, x-client-transaction-idnode:sqlite)~/.config/bird/query-ids-cache.jsonbirdx read may fail behind certain VPNs; birdx search is more reliable共 1 个版本
暂无安全检测报告