/xactions-cli
Command-line interface for scraping X/Twitter data, managing MCP server config, and running automation. Scrapes profiles, followers, tweets, search results, and more from terminal. Outputs text, JSON, or CSV. Uses Puppeteer stealth. Use when running Twitter operations from
$ npx -y skills add nirholas/XActions --skill xactions-cli --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/xactions-cli
Context preview
The summary Claude sees to decide when to auto-load this skill.
Command-line interface for scraping X/Twitter data, managing MCP server config, and running automation. Scrapes profiles, followers, tweets, search results, and more from terminal. Outputs text, JSON, or CSV. Uses Puppeteer stealth. Use when running Twitter operations from
SKILL.md
xactions-cli.SKILL.mdname: xactions-cli
description: Command-line interface for scraping X/Twitter data, managing MCP server config, and running automation. Scrapes profiles, followers, tweets, search results, and more from terminal. Outputs text, JSON, or CSV. Uses Puppeteer stealth. Use when running Twitter operations from command line or automated pipelines.
license: Apache-2.0
compatibility: Requires Node.js 18+. Install with npm install -g xactions.
metadata:
author: nichxbt
version: "4.0"
XActions CLI
Entry point: `src/cli/index.js`. Config stored at `~/.xactions/config.json`.
Installation
npm install -g xactions
Authentication
xactions login # Interactive prompt for auth_token cookie
xactions logout # Removes saved cookie
xactions info # Show current auth status and config
Get your auth_token: DevTools (F12) -> Application -> Cookies -> x.com -> copy `auth_token` value.
Scraping Commands
xactions profile <username>
xactions followers <username> [-l <limit>] [-o json|csv]
xactions following <username> [-l <limit>] [-o json|csv]
xactions non-followers <username>
xactions tweets <username> [-l <limit>] [-o json|csv]
xactions search "<query>" [-l <limit>] [-o json|csv]
xactions hashtag <tag> [-l <limit>] [-o json|csv]
xactions thread <url>
xactions media <username> [-l <limit>]
MCP Server Commands
xactions mcp-config # Generate config for Claude Desktop
xactions mcp-config --client cursor # Generate for Cursor
xactions mcp-config --client windsurf # Generate for Windsurf
xactions mcp-config --client vscode # Generate for VS Code
xactions mcp-config --write # Write config directly to file
The `mcp-config` command auto-detects your OS and generates the correct config file path.
Output Flags
| Flag | Description | |------|-------------| | `-l, --limit <n>` | Maximum items to scrape | | `-o, --output <format>` | `json` or `csv` — saves to `{username}_{command}.{ext}` |
Default output is pretty-printed to terminal with colored formatting.
Programmatic API
The CLI wraps the same scraper API available as a library:
import { createBrowser, createPage, loginWithCookie,
scrapeProfile, scrapeFollowers, scrapeFollowing, scrapeTweets,
searchTweets, scrapeHashtag, scrapeThread, scrapeMedia,
exportToJSON, exportToCSV } from 'xactions';Examples
# Scrape a profile
xactions profile elonmusk
# Export followers as CSV
xactions followers nichxbt -l 200 -o csv
# Search tweets and save as JSON
xactions search "AI agents" -l 50 -o json
# Unroll a thread
xactions thread https://x.com/nichxbt/status/1234567890
# Generate Claude Desktop MCP config
xactions mcp-config --write
Troubleshooting
| Problem | Solution | |---------|----------| | "Not authenticated" | Run `xactions login` first | | Browser won't launch | Install Chromium: `npx puppeteer browsers install chrome` | | Scraping returns empty | Account may be private or auth_token expired | | Command not found | Reinstall: `npm install -g xactions` | | MCP config path wrong | Use `--client` flag to specify your IDE |
Related Skills
- **twitter-scraping** — Detailed scraper API documentation
- **xactions-mcp-server** — MCP server setup and tools
Read more
name: xactions-cli description: Command-line interface for scraping X/Twitter data, managing MCP server config, and running automation. Scrapes profiles, followers, tweets, search results, and more from terminal. Outputs text, JSON, or CSV. Uses Puppeteer stealth. Use when running Twitter operations from command line or automated pipelines. license: Apache-2.0 compatibility: Requires Node.js 18+. Install with npm install -g xactions. metadata: author: nichxbt version: "4.0"
XActions CLI
Entry point: `src/cli/index.js`. Config stored at `~/.xactions/config.json`.
Installation
npm install -g xactions
Authentication
xactions login # Interactive prompt for auth_token cookie xactions logout # Removes saved cookie xactions info # Show current auth status and config
Get your auth_token: DevTools (F12) -> Application -> Cookies -> x.com -> copy `auth_token` value.
Scraping Commands
xactions profile <username> xactions followers <username> [-l <limit>] [-o json|csv] xactions following <username> [-l <limit>] [-o json|csv] xactions non-followers <username> xactions tweets <username> [-l <limit>] [-o json|csv] xactions search "<query>" [-l <limit>] [-o json|csv] xactions hashtag <tag> [-l <limit>] [-o json|csv] xactions thread <url> xactions media <username> [-l <limit>]
MCP Server Commands
xactions mcp-config # Generate config for Claude Desktop xactions mcp-config --client cursor # Generate for Cursor xactions mcp-config --client windsurf # Generate for Windsurf xactions mcp-config --client vscode # Generate for VS Code xactions mcp-config --write # Write config directly to file
The `mcp-config` command auto-detects your OS and generates the correct config file path.
Output Flags
| Flag | Description | |------|-------------| | `-l, --limit <n>` | Maximum items to scrape | | `-o, --output <format>` | `json` or `csv` — saves to `{username}_{command}.{ext}` |
Default output is pretty-printed to terminal with colored formatting.
Programmatic API
The CLI wraps the same scraper API available as a library:
import { createBrowser, createPage, loginWithCookie,
scrapeProfile, scrapeFollowers, scrapeFollowing, scrapeTweets,
searchTweets, scrapeHashtag, scrapeThread, scrapeMedia,
exportToJSON, exportToCSV } from 'xactions';Examples
# Scrape a profile xactions profile elonmusk # Export followers as CSV xactions followers nichxbt -l 200 -o csv # Search tweets and save as JSON xactions search "AI agents" -l 50 -o json # Unroll a thread xactions thread https://x.com/nichxbt/status/1234567890 # Generate Claude Desktop MCP config xactions mcp-config --write
Troubleshooting
| Problem | Solution | |---------|----------| | "Not authenticated" | Run `xactions login` first | | Browser won't launch | Install Chromium: `npx puppeteer browsers install chrome` | | Scraping returns empty | Account may be private or auth_token expired | | Command not found | Reinstall: `npm install -g xactions` | | MCP config path wrong | Use `--client` flag to specify your IDE |
Related Skills
- **twitter-scraping** — Detailed scraper API documentation
- **xactions-mcp-server** — MCP server setup and tools
⚡ The Complete X/Twitter Automation Toolkit — Scrapers, MCP server for AI agents (Claude/GPT), CLI, browser scripts. No API fees. Open source. Unfollow people who don't follow back. Monitor real-time analytics. Auto follow, like, comment, scrape, without API. Follow Bot. Like bot. Grow your account automatically.
Repo: nirholas/XActions
Other skills on xactions.
- /a2a-multi-agent
Turn XActions into an A2A-compatible agent that can discover, communicate with, and delegate tasks to other AI agents using Google's Agent-to-Agent protocol.
Open skill - /account-backup
Export and backup your X/Twitter account data — tweets, likes, bookmarks, followers, and following — as downloadable JSON. Also triggers X's official data archive download. Use when users want to backup, export, or archive their X account data.
Open skill - /account-tools
Miscellaneous account utilities — view join date, login history, connected accounts, appeal suspension, QR code sharing, share/embed tweets, upload contacts, and calculate account age. Use when users need account info tools not covered by other skills.
Open skill - /algorithm-cultivation
Trains an X/Twitter account's algorithmic feed to surface niche-relevant content and positions the account as a thought leader. Browser scripts for manual operation, Persona Engine for identity management, and 24/7 Algorithm Builder with LLM-powered engagement via Puppeteer. Use
Open skill - /analytics-insights
Analyze X/Twitter engagement, hashtags, competitors, best posting times, follower demographics, tweet performance, viral detection, content calendar gaps, A/B testing, and engagement leaderboards. Browser console scripts for data-driven X optimization. Use when users want
Open skill - /articles-longform
Compose, preview, publish, and manage long-form Articles on X/Twitter. Premium+ feature. Includes article creation, formatting, media insertion, and performance tracking. Use when users want to write, publish, manage, or analyze X Articles.
Open skill

