Install as a skill
npx skills add superx-so/superx-agent
Already have the CLI? superx skills:install puts the same skill in
~/.claude/skills/superx and ~/.agents/skills/superx (--target openclaw,
--project, --copy).
SuperX CLI
Twitter/X growth CLI for developers and AI agents. Read your posts and their metrics, pull account analytics, find the people who engage with you most, create draft or scheduled posts and threads (with image attachments), write, schedule, and publish long-form X Articles (with AI cover generation), and read or update the Context settings that steer SuperX's AI writing through the SuperX API.
Two things ship in this repo:
superx-cli, an npm package installing the superx binary (a thin client for api.superx.so/v1)
- An agent skill (
skills/superx/SKILL.md) plus a growth strategy guide (references/growth-strategy.md) and a goal-shaped skill for every SuperX workflow (references/skills/) so agents do not just schedule posts, they follow a strategy that works
Installation
npm install -g superx-cli
Requires Node.js 18 or newer.
Authentication
Create an API key in the SuperX app: app.superx.so/account?tab=api
Option 1: Guided login (local use)
superx login
Prints the key page URL, prompts you to paste the key, validates it against the API, and saves it to ~/.superx/credentials.json (directory mode 0700, file mode 0600).
superx login --key "sxk_..." # non-interactive variant
superx status # verify credentials, plan, and rate-limit state
superx logout # delete the credentials file
Option 2: Environment variable (CI, agents)
export SUPERX_API_KEY=sxk_...
The credentials file takes priority over the environment variable when both exist.
Custom API endpoint
export SUPERX_API_URL=https://api.superx.so/v1 # full base URL including path
Output contract
- stdout is clean JSON for every command except
superx docs (markdown). Everything pipes straight into jq.
- Human/status messages go to stderr.
- Exit code
0 on success, 1 on error. Errors print to stderr as Error [code] (HTTP status): message using the API's error codes.
superx posts:list --sort likes --limit 5 | jq '.data[].text'
Commands
Identity
superx me # Key owner, plan tier, key name and scopes
superx accounts # X accounts this key can read (main account first)
Read commands accept --account <id> (an id from superx accounts) to select a linked or shared account. Write commands accept it too for your main or linked accounts; accounts shared with you by other people are read-only (403 writes_main_account_only). Omitting it means the main account.
Posts
superx posts:list
superx posts:list --type posts --sort likes --limit 10
superx posts:list --since "2026-06-01T00:00:00Z" --until "2026-07-01T00:00:00Z"
Options: --type posts|replies|all, --sort posted_at|likes|impressions, --since/--until (UTC ISO-8601), --limit (max 100), --page. Each post includes metrics (likes, replies, reposts, quotes, bookmarks, impressions).
Analytics
superx posts:analytics
superx posts:analytics --since "2026-06-01T00:00:00Z" --until "2026-07-01T00:00:00Z"
Totals, a daily series, and follower start/end/change. Defaults to the last 30 days; the range is capped at 366 days.
Replies you have sent
superx replies:list --limit 20
Replies you have received (audience replies)
superx replies:received --limit 20
superx replies:received --sort most_liked --since "2026-06-01T00:00:00Z"
Every stored reply your audience has sent you across all your posts: the reply text and likes, the replier's profile, and the post they replied to. Options: --sort recent|most_liked, --since/--until (UTC ISO-8601), --limit (max 100), --page.
Inspiration (viral post library)
superx inspiration:search "build in public" --limit 10
superx inspiration:search "indie hackers" --sort outlier --min-likes 500
superx inspiration:search "AI tools" --min-followers 1000 --max-followers 50000
superx inspiration:search "SaaS pricing" --min-outlier-score 3 --min-length 100