Hermes Agent
Backend on Android phone
Preparations
Install Termux from F-Droid.
Run it, acquire wakelock from the notification.
To get ssh, in Termux run
pkg update
pkg upgrade -y
pkg install openssh termux-servicesExit and restart Termux and enable sshd as a service
sv-enable sshdCopy your public ssh key from the desktop, ~/.ssh/*.pub, into ~/.ssh/ under Termux, e.g. via USB file transfer to enable key-based login.
Everything further can be done via ssh:
ssh <backend-address> -p 8022Use Termux:Boot?
Install Hermes Agent
See Hermes on Android with Termux.
Use manual instructions. Modified to use psutil from a Termux package:
- Install system packages
pkg install -y git python clang rust make pkg-config libffi openssl nodejs ripgrep ffmpeg python-psutil- Clone Hermes
git clone https://github.com/NousResearch/hermes-agent.git
cd hermes-agentNeeded to make some changes, see hermes-termux.patch.
- Create a virtual environment
python -m venv --system-site-packages venv
source venv/bin/activate
export ANDROID_API_LEVEL="$(getprop ro.build.version.sdk)"
python -m pip install --upgrade pip setuptools wheel- Install the tested Termux bundle
python -m pip install -e '.[termux]' -c constraints-termux.txt- Put hermes on your Termux PATH
ln -sf "$PWD/venv/bin/hermes" "$PREFIX/bin/hermes"