Control Android devices via Termux API.
Auto-detects direct access or falls back to SSH.

Try it now

$ npx -y termux-skill

Output

What is termux-skill

[1]

Install for any AI agent

Run npx -y termux-skill and the skill is ready for your agent (OpenCode, Claude Code, Cursor, etc.).

[2]

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.

[3]

70+ device APIs

Camera, sensors, GPS, SMS, notifications, clipboard, TTS, torch, WiFi, battery, and more — all from your terminal.

API Commands Reference

Device Info
termux-battery-statustermux-audio-infotermux-wifi-connectioninfotermux-wifi-scaninfotermux-telephony-deviceinfotermux-telephony-cellinfotermux-sensor -ltermux-sensor -s <sensor> -n 1
Camera & Media
termux-camera-infotermux-camera-photo -c <id> <file.jpg>termux-microphone-record -f <file>termux-media-player play <file>termux-tts-speak "text"termux-tts-engines
Notifications & Feedback
termux-notification -t "title" -c "content"termux-notification-remove --id <id>termux-toast "message"termux-vibrate -d <ms>termux-torch on/offtermux-dialog
Communication
termux-sms-list -l 10termux-sms-send -n <number> "message"termux-contact-listtermux-call-log -l 10termux-telephony-call <number>
Clipboard & Location
termux-clipboard-gettermux-clipboard-set "text"termux-locationtermux-location -p gpstermux-location -p network
System & Storage
termux-volumetermux-brightness <0-255>termux-wallpaper -f <file>termux-wake-locktermux-wake-unlocktermux-share -a send <file>termux-open <file>termux-open-url <url>termux-download <url>termux-storage-get <dest>

Command Patterns

[1]

Interactive notification with buttons

termux-notification --button1 "Action" --button1-action "cmd"

[2]

Take photo and share

termux-camera-photo -c 0 photo.jpg && termux-share -a send photo.jpg

[3]

Battery monitor loop

watch -n 60 termux-battery-status

[4]

Get location and notify

termux-location -p network | jq '.latitude, .longitude' | termux-notification -t "Location" -c "@-"

[5]

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'

[6]

URL/file opener handler

~/bin/termux-url-opener and ~/bin/termux-file-editor