Comment on Using Termux to create a tiny selfhosted hidden chat server with E2EE.
Profanity for XMPP and gomuks for Matrix are both neat ncurses clients that work pretty well.