tiktok-androidAutomate TikTok engagement on Android using ADB. Search topics, comment with AI or templates, includes setup wizard. Use for TikTok automation campaigns and building social presence through strategic commenting.
Install via ClawdBot CLI:
clawdbot install mladjan/tiktok-androidAutomate TikTok engagement on Android using ADB. No web scraping, no CAPTCHA, 100% success rate.
The skill includes an interactive setup wizard that runs automatically:
python3 tiktok_bot.py search --topics fitness --videos 5
Or run setup manually:
python3 setup.py
The wizard asks:
Setup saves to config.py and .env (both gitignored).
Search for topics and comment on related videos:
# Single topic, 5 videos
python3 tiktok_bot.py search --topics fitness --videos 5
# Multiple topics, 3 videos each
python3 tiktok_bot.py search --topics "fitness,cooking,travel" --videos 3
# Specify device (optional)
python3 tiktok_bot.py search --topics gaming --videos 5 --device 001431538002547
Flow:
Comment on random videos from For You feed:
# Comment on 10 random videos
python3 tiktok_bot.py explore --videos 10
Flow:
Fast, reliable, no API costs. User provides 6-8 variations per topic.
Example config:
COMMENT_STYLE = "static"
COMMENTS_BY_TOPIC = {
"fitness": [
"That form looks perfect! What's your workout routine?",
"Impressive progress! How long training?",
# ... more variations
]
}
Claude Vision or GPT-4 Vision analyzes video screenshots and generates contextual comments.
Example config:
COMMENT_STYLE = "ai"
AI_PROVIDER = "anthropic"
AI_MODEL = "claude-3-5-sonnet-20241022"
API key in .env:
ANTHROPIC_API_KEY=sk-ant-...
Cost: $0.01-0.05 per comment depending on provider.
After setup, you'll have:
config.py - Topics, comment style, templates/AI settings.env - API key (if AI mode).bot_settings.json - PreferencesAll gitignored by default.
Settings ā About Phone ā Tap "Build Number" 7 times
Settings ā Developer Options ā Enable "USB Debugging"
Connect device via USB and authorize computer.
adb devices
# Should show: <device_id> device
adb shell wm size
# Note screen resolution (e.g., 1080x2392)
adb kill-server
adb start-server
adb devices
Re-authorize on device if needed.
Coordinates are optimized for 1080x2392 screens. For different sizes:
adb shell screencap -p /sdcard/screen.png && adb pull /sdcard/screen.pngsrc/bot/android/tiktok_navigation.py:
search_icon_x = 995 # Your X
search_icon_y = 205 # Your Y
See references/COORDINATES.md for detailed coordinate guide.
Check:
.env fileEnsure keyboard is dismissed before tapping Post. The bot does this automatically with KEYCODE_BACK.
ā Good:
ā Bad:
openclaw cron add \
--name "Daily TikTok" \
--schedule "0 10 * * *" \
--tz "Your/Timezone" \
--payload '{"kind":"agentTurn","message":"cd /path/to/skill && python3 tiktok_bot.py search --topics fitness,gaming --videos 5"}'
Edit config.py:
AI_COMMENT_PROMPT = """
Analyze this video and generate a comment.
Topic: {topic}
Your custom guidelines here...
- Be enthusiastic
- Ask specific questions
- Reference visible elements
"""
Set ANDROID_DEVICE_ID environment variable:
ANDROID_DEVICE_ID=device1 python3 tiktok_bot.py search --topics fitness --videos 5
Or use --device flag:
python3 tiktok_bot.py search --topics fitness --videos 5 --device device1
tiktok-android-bot/
āāā SKILL.md # This file
āāā README.md # Comprehensive docs
āāā setup.py # Interactive setup wizard
āāā tiktok_bot.py # Main script (CLI)
āāā config.example.py # Example configuration
āāā requirements.txt # Python dependencies
āāā scripts/
ā āāā run_full_campaign.py # Legacy: 25-video campaign
ā āāā run_complete_session.py # Legacy: 3-video session
āāā src/
ā āāā bot/android/
ā ā āāā tiktok_android_bot.py # Core automation
ā ā āāā tiktok_navigation.py # Navigation flows
ā āāā ai_comments.py # AI comment generation
ā āāā logger.py # Logging utility
āāā references/
āāā COORDINATES.md # Tap coordinate guide
loguru>=0.7.0
anthropic>=0.18.0 # If using AI mode
openai>=1.12.0 # If using AI mode
ADB must be installed and in PATH.
MIT - Use responsibly. Automated commenting may violate TikTok's ToS.
README.md - Full documentationreferences/COORDINATES.md - Coordinate customization guideGenerated Mar 1, 2026
A fitness influencer uses the bot to search for 'fitness' and 'workout' topics, posting AI-generated comments that analyze video form and ask specific questions to engage viewers. This helps build a social presence by appearing in relevant comment sections, driving followers to their own content.
A small restaurant owner targets 'cooking' and 'food' topics with static comment templates praising recipes or asking about ingredients, aiming to attract local food enthusiasts. By automating engagement during off-hours, they increase visibility without manual effort, potentially leading to more customers.
A travel agency uses explore mode to comment on random travel-related videos from the For You feed with AI-generated contextual remarks about destinations. This strategy helps reach a broad audience, showcase expertise, and generate leads for tour packages through organic engagement.
An e-commerce store selling gaming accessories employs search mode for 'gaming' topics, using static templates to compliment setups and ask about gear. This automates community interaction, builds brand recognition among gamers, and can drive traffic to product listings without direct advertising.
A content creator network uses the bot to engage with videos across multiple niches like 'fitness, cooking, travel' via search mode, posting varied comments to appear supportive and genuine. This helps creators cross-promote each other's work, foster collaborations, and grow collective follower bases efficiently.
Offer the bot as a cloud-based service with monthly subscriptions, providing automated TikTok engagement for clients. Include features like analytics dashboards, scheduled campaigns, and premium AI comment generation, targeting small businesses and influencers seeking hands-off growth.
Run a digital marketing agency that uses the bot to manage TikTok campaigns for clients, charging per campaign or on a retainer basis. Services include setup, configuration, and performance reporting, ideal for businesses lacking in-house social media expertise.
Provide freelance consulting to help individuals and businesses set up and optimize the bot, offering custom configurations, troubleshooting, and best practices. This model leverages one-on-one support and training sessions for users new to automation.
š¬ Integration Tip
Integrate with scheduling tools like OpenClaw Cron to automate daily runs, ensuring consistent engagement without manual intervention and aligning with best practices for rate limits.
Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.
Fetch and summarize YouTube video transcripts. Use when asked to summarize, transcribe, or extract content from YouTube videos. Handles transcript fetching via residential IP proxy to bypass YouTube's cloud IP blocks.
Browse, search, post, and moderate Reddit. Read-only works without auth; posting/moderation requires OAuth setup.
Interact with Twitter/X ā read tweets, search, post, like, retweet, and manage your timeline.
LinkedIn automation via browser relay or cookies for messaging, profile viewing, and network actions.
Search YouTube videos, get channel info, fetch video details and transcripts using YouTube Data API v3 via MCP server or yt-dlp fallback.