Docs · Compare

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

osewamosh
TransportQUIC, falling back to TLS WebSocket over TCPUDP only
Port7322, TCP and UDPUDP, from 60000–61000 by default
With UDP blockedWorksDoesn't connect
Sleep or IP changeResumes by itselfResumes by itself
Local echo predictionYesYes
ScrollbackUp to 10 MiB per sessionVisible screen only
Detach and reattachYes, from any enrolled deviceThrough screen or tmux
Several devices at onceYes: one owner, the rest viewThrough screen or tmux
Session left aloneEnds after 24 hours with nobody attached and no outputAs long as screen or tmux keeps it
Port forwards, execYesNo
Kitty keyboard and graphicsYesNo
Loginssh once, then a device keyssh every time
On the hostA server you run as your usermosh-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.

osewamosh
Connect and run a command387 ms2,366 ms
Echo, idle126 ms142 ms
Echo during a download129 ms198 ms
Host memory, idle session14.3 MB20.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

Where osewa is the better choice