Do take a look at https://gitlab.com/darnir/matrix-shell-suite
It's a basic matrix client written in pure POSIX sh.