Overview
Theretweet and unretweet commands allow you to share tweets with your followers or undo previous retweets.
Retweet
Unretweet
Examples
Retweet a Post
Unretweet a Post
Retweet from Feed
You can combine commands to retweet from your feed:Command Reference
Retweet
Arguments:tweet_id(required): The numeric tweet ID to retweet
Unretweet
Arguments:tweet_id(required): The numeric tweet ID to unretweet (the original tweet ID, not your retweet ID)
When unretweeting, use the original tweet ID, not the ID of your retweet. The API will automatically find and remove your retweet of that original tweet.
Finding Tweet IDs
You can find tweet IDs from:- Tweet URLs: Extract from
https://x.com/user/status/[ID] - CLI commands: Use
twitter feed,twitter search, ortwitter user-posts - Tweet detail: Use
twitter tweet <url>for detailed information
Rate Limits and Anti-Detection
Anti-Detection Features:
- Random delays (1.5-4 seconds) after each operation
- Chrome TLS fingerprint impersonation
- Dynamic transaction IDs for authenticity
- Automatic exponential backoff on rate limits
Recommended Usage Patterns
Safe limits:- Maximum: 15 retweets per 15-minute window
- Recommended: 8-10 retweets per 15 minutes
- Daily maximum: Keep under 150 retweets
- Wait at least 15-20 minutes before retrying
- The CLI will automatically retry with exponential backoff
- Error code 348 indicates retweet rate limit
Error Handling
Common Errors
Already retweeted:Error codes 348 and 349 specifically indicate write operation rate limits. The CLI automatically handles these with user-friendly messages and retry logic.
Retweet vs Quote Tweet
The Quote tweets are not currently automated via a dedicated command.
retweet command creates a standard retweet (boost). To add your own commentary, use the post command with a quote:Best Practices
Recommended workflow:- Browse your feed naturally:
twitter feed - Wait a few seconds/minutes between actions
- Mix retweets with other interactions
- Don’t retweet everything from a single user in quick succession
