Twitter Post
Post tweets to Twitter/X via the official API v2 (OAuth 1.0a). Use when the user asks to tweet, post to Twitter/X, send a thread, reply to a tweet, or quote...
Post tweets to Twitter/X via the official API v2 (OAuth 1.0a). Use when the user asks to tweet, post to Twitter/X, send a thread, reply to a tweet, or quote...
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Post tweets via the official Twitter/X API v2 using OAuth 1.0a authentication.
Four environment variables must be set. Obtain them from developer.x.com:
TWITTER_CONSUMER_KEY=<API Key> TWITTER_CONSUMER_SECRET=<API Key Secret> TWITTER_ACCESS_TOKEN=<Access Token> TWITTER_ACCESS_TOKEN_SECRET=<Access Token Secret>
Optional:
HTTPS_PROXY — HTTP proxy URL (e.g. http://127.0.0.1:7897) for regions that need itTWITTER_DRY_RUN=1 — validate and print without postingStore credentials as env vars. Recommended: add to the OpenClaw instance config or export in shell profile. Never hardcode keys in SKILL.md or scripts.
If the user hasn't set up OAuth yet, guide them:
POST /oauth/request_token with oauth_callback=oobhttps://api.twitter.com/oauth/authorize?oauth_token=<token>POST /oauth/access_token with the PIN as oauth_verifierAll commands via
exec. Script path: scripts/tweet.js (relative to this skill directory).
node scripts/tweet.js "Your tweet content here"
node scripts/tweet.js --reply-to 1234567890 "Reply text"
node scripts/tweet.js --quote 1234567890 "Your commentary"
node scripts/tweet.js --thread "First tweet" "Second tweet" "Third tweet"
JSON to stdout:
{"ok":true,"id":"123456789","url":"https://x.com/i/status/123456789","remaining":"99","limit":"100"}
On error:
{"ok":false,"error":"..."}
remaining field in output to monitor quotatweet.jsexec with env vars set, parse JSON output to confirm success--thread with --reply-to to attach a thread under an existing tweetNo automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.