| name | xint-rs |
| description | X Intelligence CLI for searching, monitoring, and analyzing X/Twitter from the terminal. Use for X/Twitter research prompts such as "search x", "find tweets about", "what's X saying", trend checks, follower diffs, real-time watch tasks, sentiment/report analysis, and bookmark-sync workflows. Best when recent community discourse matters (library/API changes, launches, market or cultural events). Supports search, watch, trends, bookmarks, likes/following (OAuth), Grok analysis, and JSON/JSONL/CSV/Markdown export. Non-goals: posting original tweets, DMs, or enterprise-only features.
|
| credentials | [{"name":"X_BEARER_TOKEN","description":"X API v2 bearer token for search, profile, thread, tweet, trends","required":true},{"name":"XAI_API_KEY","description":"xAI API key for Grok analysis, article fetching, sentiment, x-search, collections","required":false},{"name":"XAI_MANAGEMENT_API_KEY","description":"xAI Management API key for collections management","required":false},{"name":"X_CLIENT_ID","description":"X OAuth 2.0 client ID for user-context operations (bookmarks, likes, following, diff)","required":false}] |
| required_env_vars | ["X_BEARER_TOKEN"] |
| requiredEnvVars | ["X_BEARER_TOKEN"] |
| primary_credential | X_BEARER_TOKEN |
| primaryCredential | X_BEARER_TOKEN |
| security | {"always":false,"autonomous":false,"local_data_dir":"data/","network_endpoints":["https://api.x.com","https://x.com","https://api.x.ai"]} |
xint — X Intelligence CLI (Rust)
Fast, zero-dependency binary for X/Twitter search, analysis, and engagement from the terminal. All output goes to stdout (pipe-friendly).
Security Considerations
This skill requires sensitive credentials. Follow these guidelines:
Credentials
- X_BEARER_TOKEN: Required for X API. Treat as a secret - only set in environment or
.env file
- XAI_API_KEY: Optional, needed for AI analysis. Also a secret
- X_CLIENT_ID: Optional, needed for OAuth. Less sensitive but don't expose publicly
- XAI_MANAGEMENT_API_KEY: Optional, for collections management
File Writes
- This skill writes to its own
data/ directory: cache, exports, snapshots, OAuth tokens
- OAuth tokens stored with restrictive permissions (chmod 600)
- Review exported data before sharing - may contain sensitive search queries
Webhooks
- The
watch command supports --webhook to send data to external URLs
- Only use webhooks you control (your own servers, Slack/Discord you own)
- Don't pass sensitive URLs as webhook targets
Agent Execution Boundaries
- This file documents commands and safety limits only
- Require explicit user approval before install/clone actions
- Use only documented commands and flags
- Require explicit user approval before network-facing modes (
mcp --sse, watch --webhook)
Installation
- For required tools: prefer OS package managers over
curl | bash when possible
- Verify any installer scripts before running
MCP Server (Optional)
xint mcp starts a local MCP server exposing xint commands as tools
- Default mode is stdio/local integration; no inbound web server unless
--sse is explicitly enabled
- Respect
--policy read_only|engagement|moderation and budget guardrails
Setup
Requires env vars (in .env or exported):
X_BEARER_TOKEN — for search, profile, tweet, thread, trends, watch, report
X_CLIENT_ID — for OAuth commands (bookmarks, likes, following, diff)
XAI_API_KEY — for AI analysis (analyze, report, x-search, collections upload/search)
XAI_MANAGEMENT_API_KEY — for collections management (list, create, ensure, add-document)
OAuth setup (one-time): xint auth setup
Commands
Search & Discovery
xint search "AI agents" --limit 10
xint search "AI agents" --quick
xint search "AI agents" --quality
xint search "AI agents" --since 1d --sort likes
xint search "from:elonmusk" --limit 5
xint search "AI agents" --json
xint search "AI agents" --jsonl
xint search "AI agents" --csv
xint search "AI agents" --sentiment
xint search "AI agents" --save
Monitoring
xint watch "AI agents" -i 5m
xint watch "@elonmusk" -i 30s
xint watch "bitcoin" --webhook https://example.com/webhook
xint watch "topic" --jsonl
Profiles & Tweets
xint profile elonmusk
xint profile elonmusk --json
xint tweet 1234567890
xint thread 1234567890
Reposts (who reposted a tweet)
xint reposts <tweet_id>
xint reposts <tweet_id> --limit 50
xint reposts <tweet_id> --json
User Search
xint users "AI researcher"
xint users "solana dev" --limit 10 --json
Article Fetching (requires XAI_API_KEY)
Fetch and extract full article content from any URL using xAI's web_search tool. Also supports extracting linked articles from X tweets.
xint article "https://example.com"
xint article "https://example.com" --ai "Summarize key takeaways"
xint article "https://x.com/user/status/123456789" --ai "What are the main points?"
xint article "https://example.com" --full
xint article "https://example.com" --json
Trends
xint trends
xint trends us
xint trends --json
xint trends --locations
AI Analysis (requires XAI_API_KEY)
xint analyze "What's the sentiment around AI?"
xint analyze --tweets saved.json
cat tweets.json | xint analyze --pipe
xint analyze "question" --model grok-4
Available models: grok-4, grok-4-1-fast (default), grok-3, grok-3-mini, grok-2
Intelligence Reports
xint report "AI agents"
xint report "AI agents" -a @user1,@user2
xint report "AI agents" -s
xint report "AI agents" --save
Follower Tracking (requires OAuth)
xint diff @username
xint diff @username --following
xint diff @username --history
Bookmarks & Engagement (requires OAuth)
xint bookmarks
xint bookmarks --since 1d
xint bookmark 1234567890
xint unbookmark 1234567890
xint likes
xint like 1234567890
xint unlike 1234567890
xint following
Cost Tracking
xint costs
xint costs week
xint costs month
xint costs budget 2.00
Watchlist
xint watchlist
xint watchlist add @username "competitor"
xint watchlist remove @username
xint watchlist check @username
xAI X Search (no cookies/GraphQL)
Search X via xAI's hosted x_search tool (Responses API). No bearer token or cookies needed — only XAI_API_KEY.
echo '["AI agents", "solana"]' > queries.json
xint x-search --queries-file queries.json --out-md report.md --out-json raw.json
xint x-search --queries-file queries.json --from-date 2026-02-01 --to-date 2026-02-15
xint x-search --queries-file queries.json --allow-domains arxiv.org,github.com
xint x-search --queries-file queries.json --exclude-domains spam.com
xint x-search --queries-file queries.json --vision
xint x-search --queries-file queries.json --model grok-4-1-fast
xAI Collections Knowledge Base
Upload documents, manage collections, and semantic-search via xAI Files + Collections APIs.
xint collections list
xint collections ensure --name "research-kb"
xint collections upload --path ./report.md
xint collections search --query "AI agent frameworks"
xint collections sync-dir --collection-name "kb" --dir ./docs --glob "*.md" --limit 50
Utilities
xint auth setup
xint auth setup --manual
xint auth status
xint auth refresh
xint cache clear
Output Formats
Most commands support --json for raw JSON. Search also supports:
--jsonl — one JSON object per line (great for piping)
--csv — spreadsheet-compatible
--markdown — formatted for reports
Piping
xint search "topic" --jsonl | jq '.username'
xint search "topic" --json | xint analyze --pipe "summarize these"
xint search "topic" --csv > export.csv
Cost Awareness
X API costs ~$0.005/tweet read. Budget system prevents runaway costs:
- Default: $1.00/day limit
- Set custom:
xint costs budget <amount>
- Watch command auto-stops at budget limit
xAI Model Pricing (per 1M tokens)
- grok-4-1-fast: $0.20 input / $0.50 output (default — best value)
- grok-4: $3.00 input / $15.00 output
- grok-3: $3.00 input / $15.00 output
- grok-3-mini: $0.10 input / $0.40 output
- grok-2: $2.00 input / $10.00 output