osewa vs mosh.
mosh proved that a remote terminal can survive roaming and echo keys before the host answers. osewa takes both ideas from it. They differ in what the host keeps, how the session is carried, and what else the connection can do.
The main difference
mosh synchronizes the visible screen, using a terminal emulator of its own, over its own UDP protocol. Its client and server, in its own words, "last only for the life of the connection", and it suggests screen or tmux on the host for anything longer. osewa keeps the screen with libghostty-vt, Ghostty's terminal engine, in a process that doesn't depend on any connection, so you can detach and attach again from anywhere.
At a glance
| osewa | mosh | |
|---|---|---|
| Transport | QUIC, falling back to TLS WebSocket over TCP | UDP only |
| Port | 7322, TCP and UDP | UDP, from 60000–61000 by default |
| With UDP blocked | Works | Doesn't connect |
| Sleep or IP change | Resumes by itself | Resumes by itself |
| Local echo prediction | Yes | Yes |
| Scrollback | Up to 10 MiB per session | Visible screen only |
| Detach and reattach | Yes, from any enrolled device | Through screen or tmux |
| Several devices at once | Yes: one owner, the rest view | Through screen or tmux |
| Session left alone | Ends after 24 hours with nobody attached and no output | As long as screen or tmux keeps it |
| Port forwards, exec | Yes | No |
| Kitty keyboard and graphics | Yes | No |
| Login | ssh once, then a device key | ssh every time |
| On the host | A server you run as your user | mosh-server, no daemon |
mosh 1.4.0 added true color and OSC 52 copy, so those are no longer gaps. It's the latest release, from October 2022.
Measured
Medians of 5 runs on the same path in the same session, from a Mac in Thailand to a Mac mini in Tokyo over Tailscale, about 125 ms round trip. osewa is over QUIC. Echo is timed with prediction off on both, so it's the real round trip of a key.
| osewa | mosh | |
|---|---|---|
| Connect and run a command | 387 ms | 2,366 ms |
| Echo, idle | 126 ms | 142 ms |
| Echo during a download | 129 ms | 198 ms |
| Host memory, idle session | 14.3 MB | 20.6 MB |
Resuming is a separate test, on a shaped link in Docker: after moving the client to a new IP address following 5 seconds offline, osewa came back in 0.4 s and mosh in 1.1 s. That's one scenario on one rig, not a general figure.
mosh carries only the terminal, so its download ran over a separate ssh connection on the same path, as a mosh user's would. Part of mosh's connect time is that ssh login. Differences under about 20 ms on this path are noise. The memory figure comes from a separate run in a container. Under an output flood, mosh used less memory (20.2 MB against osewa's 35.6 MB). All of it, with the method, is in the paper and the benchmark results.
What the emulator changes
Whatever mosh's emulator doesn't model never reaches your terminal, and when it reads output differently from your terminal, the screen can garble. osewa's engine is the one Ghostty draws with, so hyperlinks, Kitty keyboard and graphics, prompt marks and pointer shapes come through. It doesn't make osewa immune to bugs. It means the host keeps a modern terminal's screen, and sends it whole when you reconnect.
Where mosh is the better choice
- You want nothing running between sessions. mosh has no daemon and no privileged code.
- You'd rather not trust a new login path. mosh leaves authentication to ssh, and osewa adds device keys of its own.
- You need a long-proven tool, packaged nearly everywhere. osewa is young, and its protocol is still at v0.
- Your link is so thin that every byte counts. mosh sends small screen diffs.
- You need Windows or a platform osewa doesn't build for.
Where osewa is the better choice
- UDP is blocked, as on many office, hotel and public networks.
- You want scrollback, and sessions that outlive the client, without tmux on top.
- You want port forwards and commands on the same connection.
- You use modern terminal features, or a full-screen agent TUI.