⚠️ Article May Be Outdated
This article was last updated 1 year 2 months ago. The content may no longer be accurate or relevant.
Recently I got into SillyTavern, commonly known as Tavern. The AI models used are generally not locally deployed, so it’s quite suitable for playing on mobile. So I looked for tutorials online and figured it out myself, found it’s actually quite simple, so I’m writing this.
Installing Termux
Termux is a Linux terminal emulator app, you can think of it as running a Linux system.
You can get it from Github. https://github.com/termux/termux-app/releases
Download the installation package corresponding to your Android architecture. Generally, for newer phone systems, just download the arm64-v8a version in Android 7+.
Installing Environment
Tips
May require magic.
Open your installed Termux, first update packages with apt update and apt upgrade. If asked Y/N during the process, always choose Y.
Next is Git and Node.js. Enter pkg install git and pkg install nodejs.
Then clone the SillyTavern repository. Enter git clone https://github.com/SillyTavern/SillyTavern.git.
Enter the SillyTavern directory and install dependencies. Enter cd SillyTavern and npm install.
Start Playing
Enter ./start.sh to run SillyTavern. Next it should automatically open the browser. If it doesn’t, manually visit 127.0.0.1:8000.
If you reopen Termux, you need to cd SillyTavern first.
About Another Way to Play
There’s a very simple way to play Tavern on mobile, which is to run it on computer and access from mobile.
First modify config.yaml, set listen: true, then add 192.168.*.* to whitelist (you should know how to add this without detailed explanation, in some cases you might need to fill in different values).
On mobile, you can generally just use the computer’s IP address in the LAN, the port should default to 8000.