This is a for of the original repo which seems unmaintained. I rely on the random url prefix feature for "securing" shared bash sessions. The only way to retrieve the random prefix, is to read the log ... I've added the /path api endpoint to get the random prefix.
install
one-liner for osx/linux:
curl -Ls https://github.com/lalyos/gotty/releases/download/v2.0.0-alpha.4/gotty_2.0.0-alpha.4_$(uname)_amd64.tar.gz | tar -xz -C /usr/local/bin