Control Android devices via Termux API.
Auto-detects direct access or falls back to SSH.
Try it now
Output
What is termux-skill
Install for any AI agent
Run npx -y termux-skill and the skill is ready for your agent (OpenCode, Claude Code, Cursor, etc.).
Automatic environment detection
If running in native Termux, binaries are used directly from PATH. If in proot-distro, access via /data/data/com.termux/files/usr/bin/. If remote, falls back to SSH on port 8022.
70+ device APIs
Camera, sensors, GPS, SMS, notifications, clipboard, TTS, torch, WiFi, battery, and more — all from your terminal.
API Commands Reference
Command Patterns
Interactive notification with buttons
termux-notification --button1 "Action" --button1-action "cmd"
Take photo and share
termux-camera-photo -c 0 photo.jpg && termux-share -a send photo.jpg
Battery monitor loop
watch -n 60 termux-battery-status
Get location and notify
termux-location -p network | jq '.latitude, .longitude' | termux-notification -t "Location" -c "@-"
Flash alert on low battery
termux-battery-status | jq '.percentage' | xargs -I sh -c '[ -lt 20 ] && termux-torch on && sleep 0.5 && termux-torch off'
URL/file opener handler
~/bin/termux-url-opener and ~/bin/termux-file-editor