
Installing & setting up Termux on Android
Install Termux from F-droid or official website. Play Store version is outdated.
Change & update repo sources
termux-change-repo
pkg update && pkg upgrade
Install some utilities
pkg install termux-tools openssh wget python iproute2 git curl nano
Why I don’t install termux-api
package?
Termux API was consuming a lot of battery on my Samsung Galaxy Z Fold 5, when I had installed full XFCE Linux desktop environment on Android device with Termux X11
This addon exposes Android device functionality as API to command line programs in Termux. For e.g.
- Vibrate the device when something interesting happens.
- Access the system clipboard from shell scripts.
- Read and send sms messages from your terminal.
- Access device GPS location sensor from scripts.
Complete list of API implementations are available at: https://wiki.termux.com/wiki/Termux:API
If you need this functionality, then only install it.
Access termux files in Android
termux-setup-storage
Use a file manager like Material Files
Setup
- Claude Code and/or Gemini CLI
pkg install nodejs-lts git
npm install -g @anthropic-ai/claude-code
npm install -g @google/gemini-cli
mkdir claude-code
cd claude-code/
claude
gemini
- MCPs in Claude Code and/or Gemini CLI