dgamelaunch is a program that manages user logins, game viewing and launching NetHack on nethack.alt.org and some other servers. It was originally written by Drew Streib, but has been expanded by several other people.
You can download the sources from ftp://ftp.alt.org/pub/dgamelaunch/ or you can get the development version from the svn repository by using the following command
svn co svn://triplehelix.org/dgamelaunch/trunk dgamelaunch
Dgamelaunch supports autologin. For example, the following would connect to nethack.alt.org and automatically login with username user and password pass.
telnet nethack.alt.org -l user:pass
Dgamelaunch also supports dgamelaunch mail.