π€ A sophisticated Instagram automation bot with AI-powered features, anti-ban protection, and enterprise-grade scalability.
- Multi-Account Management: Run multiple Instagram accounts simultaneously
- Anti-Ban Protection: Human-like behavior simulation, warmup periods, action limits
- Intelligent Scheduling: Peak hours optimization, timezone-aware actions
- Proxy Rotation: Built-in proxy support for enhanced security
- Analytics Dashboard: Real-time monitoring and performance tracking
- Auto Follow/Unfollow: Targeted user engagement
- Smart Liking & Commenting: AI-powered content interaction
- Hashtag Research: Find trending hashtags for maximum reach
- Emergency Controls: Kill switch and auto-pause on anomalies
- Python 3.11+
- Vercel Account (for deployment)
- Instagram Account(s)
- Optional: Proxy service, MongoDB, Redis
npm install -g vercelgit clone <your-repo-url>
cd igbot2025-1vercelFollow the prompts:
- Set up and deploy: Yes
- Which scope: Select your account
- Link to existing project: No
- Project name: igbot2025
- Directory: ./ (current directory)
- Override settings: No
Go to your Vercel Dashboard β Project Settings β Environment Variables
Add the following (see .env.production for full list):
Required:
IG_ACCOUNTS=username:password:2fa_secret
DASHBOARD_USERNAME=admin
DASHBOARD_PASSWORD=your_secure_password
Recommended:
PROXY_API_KEY=your_proxy_key
TIMEZONE=America/Los_Angeles
MAX_FOLLOWS_PER_DAY=200
MAX_LIKES_PER_DAY=500
vercel --prodOnce deployed, your bot will be available at: https://your-project.vercel.app
GET /- API informationGET /health- Health checkGET /docs- Interactive API documentation
GET /api/accounts- List all accountsPOST /api/accounts/add- Add new account
POST /api/bot/start- Start botPOST /api/bot/stop- Stop botPOST /api/bot/command- Execute commandGET /api/status- Get bot status
GET /api/analytics- Global analyticsGET /api/analytics/{username}- Account-specific analytics
GET /api/config- Get configurationPOST /api/config- Update configuration
curl -X POST https://your-project.vercel.app/api/bot/start \
-u admin:your_passwordcurl https://your-project.vercel.app/api/analytics \
-u admin:your_passwordcurl -X POST https://your-project.vercel.app/api/bot/command \
-u admin:your_password \
-H "Content-Type: application/json" \
-d '{
"action": "follow",
"username": "your_ig_account"
}'- Strong Passwords: Use unique, strong passwords for dashboard access
- 2FA: Enable 2FA on Instagram accounts
- Proxies: Use residential proxies for better security
- Rate Limits: Respect Instagram's limits (configured by default)
- Environment Variables: Never commit sensitive data
- Regular Monitoring: Check analytics for anomalies
- Human Simulation: Random delays, typing patterns, mouse movements
- Warmup Period: Gradual action increase for new accounts
- Action Limits: Daily limits per action type
- Peak Hours: Activity during high-engagement times
- Shadowban Detection: Automatic pause if shadowban detected
- Proxy Rotation: Change IP addresses regularly
| Variable | Description | Default |
|---|---|---|
IG_ACCOUNTS |
Instagram accounts (username:password:2fa) | - |
DASHBOARD_USERNAME |
Dashboard login username | admin |
DASHBOARD_PASSWORD |
Dashboard login password | changeme |
MAX_FOLLOWS_PER_DAY |
Maximum follows per day | 200 |
MAX_LIKES_PER_DAY |
Maximum likes per day | 500 |
MAX_COMMENTS_PER_DAY |
Maximum comments per day | 50 |
TIMEZONE |
Bot timezone | America/Los_Angeles |
PROXY_API_KEY |
Proxy service API key | - |
See .env.production for complete list.
The bot tracks:
- Total actions performed
- Success/failure rates
- Ban risk scores
- Account health metrics
- Performance over time
Access via:
- API endpoints (
/api/analytics) - Web dashboard (coming soon)
- Prometheus metrics (optional)
Immediately stop all bot activities:
curl -X POST https://your-project.vercel.app/api/bot/stop \
-u admin:your_passwordBot automatically pauses when:
- Ban risk score exceeds threshold
- Success rate drops below minimum
- Shadowban detected
- Rate limit hit
Run multiple Instagram accounts with independent schedules and limits.
Automatic proxy rotation for enhanced anonymity:
PROXY_API_KEY=your_key
PROXY_POOL_SIZE=100
PROXY_ROTATION_INTERVAL=300
OPENAI_API_KEY=your_key
AUTO_REMIX_REELS=true
FYP_OPTIMIZATION=true
- Check environment variables are set
- Verify Instagram credentials
- Check Vercel logs:
vercel logs
- Check rate limits haven't been hit
- Verify account isn't shadowbanned
- Ensure proxies are working (if enabled)
- Verify Instagram password is correct
- Add 2FA secret if 2FA is enabled
- Try logging in manually first
For local testing:
# Install dependencies
pip install -r requirements.txt
# Set environment variables
cp .env.example .env
# Edit .env with your credentials
# Run locally
python api/index.pyVisit: http://localhost:8000/docs
This bot is for educational purposes. Use responsibly and respect Instagram's Terms of Service. Automation may violate Instagram's policies and could result in account suspension.
MIT License - see LICENSE file for details
Contributions welcome! Please open an issue or submit a pull request.
For issues and questions:
- Open a GitHub issue
- Check documentation
- Review Vercel logs
Built with β€οΈ using FastAPI and Vercel
Happy Botting! π