Pi can run on Android via Termux, but some features are limited by the mobile environment.
- Install Termux from F-Droid or GitHub (the Play Store build is deprecated).
- Install Termux:API (required for clipboard integration).
- In Termux:
pkg update && pkg upgrade pkg install termux-api git
Pi detects termux-clipboard-get and termux-clipboard-set when standard clipboard access fails.
Note:
pi_agent_rustrequires Rust nightly. If Termux can’t provide nightly easily, build the binary on a desktop and copy it over.
- Text clipboard: Works via
termux-clipboard-get/termux-clipboard-set. - Image clipboard: Not supported on Termux (the
Ctrl+Vimage paste flow will no-op).
- If arrow keys or shortcuts misbehave, configure the extra keys row in Termux settings.
- Some terminals send
Ctrl+Enterinstead ofShift+Enterfor “insert newline” behavior.
- Sessions live in
~/.pi/agent/sessions. - To access shared storage (Downloads/Documents), run once:
termux-setup-storage
Ensure both apps are installed:
- Termux (from F-Droid/GitHub)
- Termux:API
Then install the CLI tools:
pkg install termux-apiRun once to grant storage permissions:
termux-setup-storage