Skip to content

RTTY

Your terminal anywhere

By Evan Tanner

Skills

I created RTTY so I could easily access long-term terminal sessions remotely; especially those of my autonomous coding agents. My agents have their own hardware (PC or Mac Mini), so they can run indefinitely. However, I needed a simple way to connect to those sessions using any device. Remote access via screen sharing/IP KVM allows users to access the whole desktop, but requires more bandwidth and configuration than simply accessing the terminal. Additionally, screen sharing/IP KVM is often difficult to use over slow connections/networks with no port forwarding capabilities. I wanted direct access to the terminal through a lightweight browser interface, and without streaming a display.

RTTY is a single executable program written in Rust. It may be run on most Unix/Linux operating systems, as well as on any system running a virtual machine. When started, RTTY will create a lightweight web server and provide a complete terminal session. Using WebSockets, the terminal input/output are sent from the host machine to the browser. The browser then displays the terminal using xterm.js, providing the user with responsive input, clear text, and the ability to interact with the terminal in the way they normally would. Any command executed will be run with the privileges of the user that created the terminal session, as well as administrative privileges if configured correctly. I can connect to my RTTY instance via its local IP address, via Tailscale for remote connections, or via a Cloudflare Tunnel for exposing my instance publicly. In addition to being able to authenticate with a password, I developed a six-digit PIN system which allows a trusted device to produce a PIN for authentication on another computer. This prevents me from having to enter my main password on a shared device. This PIN can be changed immediately after authentication or retained for subsequent authentications. I also implemented bidirectional file transfer capability into the RTTY interface. My coding-agent skills allow my agents to transfer files via RTTY, and I can also transfer files back to my agents using the same interface. Finally, support for clipboard functionality, terminal bell sounds, and completion sound effects assist in bringing many of the daily terminal workflows into the browser environment.

I made RTTY into an installable progressive web app (PWA) for iOS and Android so I would have the same environment when working on either my phone or tablet. The mobile shortcut bar allows me to quickly use modifier keys and commands like Ctrl-C, which can be difficult to type on a touchscreen keyboard. By keeping the interface focused primarily on terminal input and output, I created a very lightweight version of RTTY that can run successfully on devices with limited resource capabilities and slow connection speeds. RTTY is now open source, combining the Rust host, browser terminal, mobile interface, authentication methods, and file-sharing workflows into a single project. RTTY provides a real-world method for checking on an agent, responding to a running process, or transferring files from another device while the main task continues to execute on the host machine.

All projects