I cobbled together this Frankenstein abomination of a "guide" based on my experiences flailing around blindly, plus a great deal of assistance from another anon that also flailed around blindly, but also drunkenly. YMMV.

Firstly, I did this (and don't forget to make a note of the name of the directory where sillytavern gets installed, it'll be important later)

https://www.reddit.com/r/PygmalionAI/comments/12yl4s3/sillytavern_android_10_quick_step_guide/

  1. Download Termux scroll down and look for download apk, install it.
  2. Type in or copy and paste and hit enter

apt update

Enter, Press y to anything that comes up

  1. Type in or copy and paste and hit enter

apt upgrade

Enter, Press y to anything that comes up

  1. Type in or copy and paste and hit enter

pkg install git

  1. Type in or copy and paste and hit enter

git clone https://github.com/SillyLossy/TavernAI

  1. Optional AFTER you do step 5, to get the most updated stuff add the dev branch, you NEED the main branch first, if you just want it basic just skip this step* Type in or copy and paste and hit enter

git clone -b dev https://github.com/SillyLossy/TavernAI

  1. Type in or copy and paste and hit enter

ls

See what folder the files installed to. You should see either SillyTavern or TavernAI. Depending on which, type

cd TavernAI

OR

cd SillyTavern

The caps and lowercase HAS to specifically be this way. If you get green /TavernAI or /SillyTavern you did it correctly.

  1. Type in or copy and paste and hit enter

pkg install nodejs

  1. Type in or copy and paste and hit enter

npm install

  1. Type in or copy and paste and hit enter {{AS OF MAY 31ST IT SEEMS THIS ONE IS NOT AS FUNCTIONAL AND YOU MAY NEED TO DO THE ONE BELOW}}

node server.js

It should open your browser. You have correctly installed SillyTavern onto Termux. Under the plug you can click this link https://platform.openai.com/account/api-keys sign in and copy paste the link/api key.

If you get an error here

./start.sh

ONCE YOURE IN THERE Make sure to change it to OpenAI for that to work.

Enjoy the free trial then decide if you would want to continue or use poe.com/kobald/colab for future usage of sillytavern.

TO OPEN IT FROM HERE ON YOU WILL cd SillyTavern or cd TavernAI (wherever you installed it in Step 7) then type in node server.js OR ./start.sh

If you want poe access look in the comments below.

I highly recommend you turn on streaming as well.


Then I went to download Termux:Widget to make it so I can just tap one thing and start ST up without having to type out commands on my tablet every time.

Then I ran into a fun little issue and tldr was that I couldn't install until I uninstalled Termux, then after I installed Termux:Widget I had to install Termux using f-droid (just choose the topmost option on the page rather than downloading the APK and installing it manually), and then it worked.

Either way...

Open up termux and type

pkg install nano

You may need to enter in one another command if you get an error here but I googled it easily and then immediately forgot what it was. Good luck!
edit I think it was "pkg update" and pkg "install bash" edit

Next, write this in Termux

mkdir -p /data/data/com.termux/files/home/.shortcuts
chmod 700 -R /data/data/com.termux/files/home/.shortcuts

Tap enter, then write this:

mkdir -p /data/data/com.termux/files/home/.shortcuts/tasks
chmod 700 -R /data/data/com.termux/files/home/.shortcuts/tasks

That should create a ~/. shortcuts folder. Then you need to type this

termux-setup-storage

Make sure to grant it the permissions it needs. There was a bit of weirdness on my device where it let me authorize it right away but then said "make sure to allow on the next screen" when there was no next screen, but whatever.

Then type this

cd ~/.shortcuts

Then this

nano ~/.shortcuts/Silly.sh

Once nano opens up, copy/paste the following, but keep in mind that SillyTavern may have installed into a directory called TavernAI, so you'll need to change the former to the latter in the following text:

!/bin/bash

cd SillyTavern
if git pull I grep -q 'Already up to date.'
then
echo 'No updates found.' git stash pop
else
echo 'Updating...'
npm install
git stash pop
fi
node server.js


Then hit CTRL+O <-- the letter o, not the number 0

It should be saved, but hit CTRL+S just in case. Or whatever.

Then exit out, it should be CTRL+X

Then type

chmod +x Silly.sh

Touch and hold on termux:widget, go to widgets, then swipe down a bit if need be (to select a 1x1 icon size) and hit the button over Termux shortcut and select Add

Tap Silly.sh

Tap "Add"

That should add a Silly.sh icon to your home screen someplace.

You may need to go tap your settings icon and go to apps, then termux, and allow permission to Appear on Top

Settings > Apps > Termux


To copy over your old settings, fire up your PC and copy the following files/folders as necessary(*) from your Sillytavern/public directory

  • Assets
  • Backgrounds
  • Characters
  • Chats
  • Context
  • Groups
  • Group chats
  • Instruct
  • movingUI
  • KoboldAI Settings
  • NovelAI Settings
  • OpenAI Settings (Chat Completion API)
  • TextGen Settings (Text Completion API)
  • QuickReplies
  • Themes
  • User Avatars
  • Worlds
  • User
  • settings.json
  • secrets.json <---- this one is in the base Sillytavern folder, not /public/

(*) 'As necessary' = "If you made any custom content related to those folders".
None of the folders are mandatory, so only copy what you need.

NB: DO NOT COPY THE ENTIRE /PUBLIC/ FOLDER.
Doing so could break the new install and prevent new features from being present.


Also, I had no secrets.json file. I dunno what to tell you, I yoinked this from elsewhere.

ANYWAY, you need to copy that someplace on your Android device:

Create a new folder called Tavernsettings

Navigate to there in termux, typing each of these things then hittinge enter:

cd storage

cd shared

cd Tavernsettings

(Note that below, if you have sillytavern installed in a different directory, you need to enter that instead of TavernAI)

cp - r * ~/TavernAI/public


From other sources, on how to make files visible:

https://www.youtube.com/watch?v=2tFE79EupZ0

https://www.learntermux.tech/2020/10/Termux-File-Manager.html?m=1

"Because it's stored in the root folder, as someone else said, try the termux file explorer, if you have root access try x-plore and manually navigate to (root)/data/data/com.termux/files/home/"

Edit
Pub: 22 Dec 2023 21:51 UTC
Edit: 23 Dec 2023 20:07 UTC
Views: 107