Docs · Compare

osewa vs ET.

Eternal Terminal (ET) is the closest tool to osewa: a reconnecting terminal with forwards and sessions that outlive the network. ET makes a TCP connection that can't die and replays what you missed. osewa keeps the screen on the host and sends you the current one.

This page comes from reading ET 7.1.1's source and running it beside osewa on one host.

The main difference

ET puts a layer under the TCP socket. Each side numbers what it sends and keeps it, encrypted, in a buffer. After a reconnect the two sides swap sequence numbers and resend whatever the other missed, so your terminal gets every byte, in order, as if the link had never dropped. Your terminal does the rendering, and its own scrollback holds the output.

osewa runs the program under libghostty-vt on the host, which keeps the screen. A reconnect sends that screen as one snapshot, however much you missed. The output in between stays on the host, in the session's scrollback, rather than in your terminal's.

That shapes what each does badly. While the link is down, ET holds up to 64 MiB of new output, then stops reading from the program, which pauses it until you're back. And a client that starts fresh, after a crash or a reboot, resets the stream: et --attach gets the shell back, but no replay and no screen, so you see only what comes next. osewa's cost is that it has to parse everything the program writes, and it can only show what its engine understands.

At a glance

osewaET
TransportQUIC, falling back to TLS WebSocket over TCPTCP
Port7322, TCP and UDP2022, TCP
EncryptionTLS 1.3, pinned keys on both endslibsodium secretbox, with a key sent over ssh
Loginssh once, then a device keyssh for each new session
On the hostA server you run as your useretserver, usually a root service
After a reconnectA snapshot of the screenEvery byte you missed
After a client crashThe screen, from any enrolled deviceThe shell, on that client, with no screen
ScrollbackOn the host, up to 10 MiBYour terminal's own
Local echo predictionYesNo
Several devices at onceYes: one owner, the rest viewOne client per session
Session left aloneEnds after 24 hours with nobody attached and no outputLasts until the shell exits, by default
Port forwardsLocalLocal, reverse, SOCKS, stdio, Unix sockets
Agent forwardingNoYes
Commands without a terminalYes, osewa execYes, et -T
VS Code and Cursor Remote-SSHNoYes
tmux control modeNoYes, through its multiplexer, HTM
PlatformsLinux and macOSLinux, macOS, FreeBSD, WSL

Measured

One host and one path: a 1-vCPU, 1 GB Linode in Tokyo, from a Mac in Thailand over the public internet, about 104 ms round trip. Medians of 5 runs in the same session. These numbers describe this path, not every network. Echo is timed with prediction off.

osewa QUICosewa WebSocketET
Connect and run a command316 ms520 ms2,145 ms
Echo, idle104 ms103 ms102 ms
Echo during a download106 ms109 ms132 ms
Download alone39.0 MB/s26.4 MB/s18.5 MB/s
Download while typing37.9 MB/s26.5 MB/s18.8 MB/s

On an idle link there's no difference in echo. ET's connect includes an ssh login and a login shell, which osewa's doesn't. Its download ran through a forward on the terminal's connection, and swung between 12.8 and 24.1 MB/s across the runs. ET also keeps its kernel send queue small, which is why its keys held up far better during a download than ssh's on the same run (208 ms).

A second test cut the link both ways for 15 seconds, then timed how long after it came back each tool caught up. Two rounds, so read these as rough.

osewaET
First new output0.9 s1.8–2.2 s
Caught up after 22 MB of output1.0 s, reading 2 kB3.3–3.5 s, reading 22.5 MB
Caught up after 240 MB of output36 s, reading 1.1 MB50–52 s, reading 241 MB

The gap in resuming comes from how each looks for the link: osewa retries every 500 ms, and ET once a second, after a keepalive that can take up to 10 seconds to call the link dead. The 240 MB case is slow on both sides for different reasons. osewa sent only 1.1 MB, so the time went on the small host working through the output, not the network. ET had to carry all of it, and paused the program at its 64 MiB limit. Our test read as fast as it could, so a real terminal drawing ET's replay would take longer. The method and raw output are in the benchmark results.

Where the transport matters

ET sends everything down one TCP connection: terminal output, your keys and every forward, in one line. osewa gives each forward its own QUIC stream, so a lost packet in one doesn't hold up the others, and it holds bulk data back while you type. ET does take care over floods, though: it keeps pending output in a buffer of its own, so Ctrl-C can throw the rest away.

ET needs one open TCP port, while osewa wants UDP as well. With UDP blocked, osewa falls back to TCP and loses what QUIC adds.

Where ET is the better choice

Where osewa is the better choice