termux.md
33 lines · skills/pi-agent/references/termux.md at 5f2bc03
Most marks come from matching words in the file, so treat them as pointers.
Termux Setup
Source: https://pi.dev/docs/latest/termux
Reviewed against Pi 0.99.2 and the package versions listed in ../SKILL.md on 2026-09-30.
Pi runs on Android through Termux.
Raw lines 1 to 8Prerequisites
Install Termux from GitHub or F-Droid, not Google Play. Optionally install Termux:API from the same distribution source as Termux for clipboard and device integrations.
Raw lines 9 to 12Install
pkg update && pkg upgrade
pkg install nodejs termux-api git
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
mkdir -p ~/.pi/agent
piRaw lines 13 to 22Clipboard
Pi uses termux-clipboard-set and termux-clipboard-get when available. Image clipboard is not supported in Termux.
Useful AGENTS.md Context
Add Termux environment notes to ~/.pi/agent/AGENTS.md: OS is Android/Termux, home is /data/data/com.termux/files/home, prefix is /data/data/com.termux/files/usr, shared storage is /storage/emulated/0, use termux-open-url, termux-open, termux-share, termux-notification, and clipboard commands where appropriate.
Limitations and Troubleshooting
No image clipboard. Some optional native binaries may be unavailable on Android ARM64. Run termux-setup-storage once for /storage/emulated/0. If pi is not found, open a fresh shell, check npm prefix -g and command -v pi, then ensure the global npm binary directory is on PATH.