Install
openclaw skills install @aliraza948/apitweetUse this skill when the task should be done through the apitweet command-line client, including installing the CLI, configuring Twitter/X app or profile auth, previewing requests, and calling apitweet endpoints through convenience commands or raw paths.
openclaw skills install @aliraza948/apitweetUse this skill when the task should be completed by running apitweet commands instead of re-implementing request logic by hand.
apitweet CLIauth_token--dry-runapitweet <path> formDo not treat this skill as the main interface when the task is to edit the CLI source code itself.
apitweet <path> only when no convenience command fits.--dry-run before real write actions unless the user explicitly asks to execute them.For normal users, prefer the published npm package:
npm install -g apitweet-cli
apitweet --help
When working from this repository:
node ./bin/apitweet.js --help
If a local executable is needed while developing:
npm link
apitweet --help
Requires Node.js 18 or newer.
https://apitweet.com/dashboard.APITWEET_KEY or --api-key is acceptable.APITWEET_BASE_URL and APITWEET_CONFIG_DIR.auth apps add.--cookie or a saved profile.~/.apitweet/config.json.auth_token, or ct0 in plain JSON.--config-dir or APITWEET_CONFIG_DIR to isolate credentials.App setup:
apitweet auth apps add --name prod --api-key "sk_1d90c878..."
apitweet auth apps use prod
Profile setup from cookie:
apitweet auth profiles add --name founder --cookie "ct0=...; auth_token=..."
apitweet auth profiles use founder
Profile setup from auth token:
apitweet auth cookie --auth-token "your_auth_token" --save-as founder
Inspect config:
apitweet config show
apitweet config path
Prefer convenience commands such as:
apitweet --app prod about elonmusk
apitweet --app prod users elonmusk sama
apitweet --app prod search users "openai" --count 20
apitweet --app prod trending tweets --country "United States" --topic "Sports" --count 50
apitweet --app prod --profile founder article publish-md ./article.md --title "Launch Notes"
apitweet --app prod tweet lookup 1900000000000000000 --summary
Use the generic path form when the endpoint is known but not wrapped:
apitweet /api/twitter/elonmusk/about
apitweet -X POST -d '["elonmusk","sama"]' /api/twitter/users
--app, --profile, --api-key, and --dry-run before the command.tweet create, tweet like, user follow, list create, and article publish-md, prefer --dry-run first.auth cookie uses a request path that contains the auth_token, so be careful with logs and traces.--media-url.Use an isolated config directory for local testing:
apitweet --config-dir ./.apitweet-local config show
Recommended order:
apitweet --help or node ./bin/apitweet.js --help.about or users.--dry-run before any real write action.