Automatically generates and posts 5 persona-matched tweets daily to X using GPT-5.1, with repetition checks, content filters, and Telegram alerts.
AI-powered auto-tweeting system. Generates and posts 5 tweets per day to X using GPT-5.1, with Telegram notifications and built-in safeguards.
Built entirely through vibe coding with Claude Code — zero lines of code written by hand.
pip install tweepy requests
export OPENAI_API_KEY="sk-..."
export X_CONSUMER_KEY="..."
export X_CONSUMER_SECRET="..."
export X_ACCESS_TOKEN="..."
export X_ACCESS_TOKEN_SECRET="..."
# Optional: Telegram notifications
export TWEET_BOT_TOKEN="..."
export TWEET_BOT_CHAT_ID="..."
Edit auto_tweet.py — update the PERSONA, TOPICS, and BANNED_PHRASES sections to match your voice, topics, and style.
python auto_tweet.py --dry-run # preview without posting
python auto_tweet.py # post for real
crontab -e
# Add: 0 8,11,14,17,21 * * * cd /path/to/repo && python auto_tweet.py
| Service | Cost | Where |
|---|---|---|
| X API (Basic) | $25/month | developer.x.com |
| OpenAI API | ~$0.50/day | platform.openai.com |
| Telegram Bot | Free | @BotFather on Telegram |
ZIP package — ready to use