Termux Headless Setup
v3.8.1Last updated: 2026-05-13
Was this page helpful?
Loading OmniRoute...
.
pkg update pkg upgrade pkg install nodejs-lts python build-essential git
Node.js version: OmniRoute requires Node (per in ). Termux's typically ships Node 20 LTS, which is compatible. If reports an older line, install (current) and verify the major matches a supported range.
command above and then retry the OmniRoute install.
npx -y omniroute@latest
npm install -g omniroute omniroute
omniroute
npx omniroute
http://localhost:20128
nohup omniroute > omniroute.log 2>&1 &
pkill -f omniroute
mkdir -p ~/.termux/boot cat > ~/.termux/boot/omniroute.sh <<'EOF' #!/data/data/com.termux/files/usr/bin/sh cd "$HOME" nohup omniroute > "$HOME/omniroute.log" 2>&1 & EOF chmod +x ~/.termux/boot/omniroute.sh
ip addr show wlan0
http://PHONE_IP:20128
http://192.168.1.50:20128
export DATA_DIR="$HOME/.omniroute" omniroute
pkg install nodejs-lts python build-essential
npx -y omniroute@latest
ss -ltnp | grep 20128
pkill -f omniroute
curl http://localhost:20128