Docs · Compare

osewa vs ssh.

ssh is on every host and does far more than open a shell. osewa does one part of its job, the long interactive session, and is built for the network dropping out from under it. You still need ssh once, to install osewa.

The main difference

An ssh session is its TCP connection. When your laptop sleeps or changes network, the connection dies and takes the session with it, unless you run tmux or screen on the host. An osewa session is a process on the host. Connections come and go, and the client redials and resumes by itself.

At a glance

osewassh
TransportQUIC, falling back to TLS WebSocket over TCPTCP
Sleep or IP changeResumes by itselfSession dies
Session livesOn the host, in its own processIn the connection
Local echo predictionYesNo
Port forwardsLocal, like -LLocal, remote, SOCKS
Commands without a terminalYesYes
Agent and X11 forwardingNoYes
File transferThrough osewa exec pipesscp, sftp
LoginEd25519 device key, pinned server keyKeys, passwords, certificates, 2FA and more
On the hostosewa, on port 7322 (TCP and UDP)Already there, usually
PlatformsLinux and macOSNearly everything

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.

osewassh
Connect and run a command387 ms1,627 ms
Echo, idle126 ms136 ms
Echo during a download129 ms178 ms
Download alone9.86 MB/s9.82 MB/s
Download while typing9.82 MB/s10.87 MB/s

The gap grows on worse links. On a shaped cellular link with a deep buffer, keys echoed in 138 ms under osewa and 1,714 ms under ssh during a download. On a 1 Mbit/s link with 1% loss, ssh showed no echo within 15 seconds. Part of that is a trade: while you type, osewa leaves room in the queue, so ssh's download kept about 1 MB/s more in the run above.

osewa also costs more host CPU on steady output, because it parses everything to keep the real screen: 302 ms per MB against ssh's 66 ms on a log tail. Idle, it uses less memory on the host (14.3 MB against 27.4 MB). All of it, with the method, is in the paper and the benchmark results.

Where ssh is the better choice

Where osewa is the better choice

They work side by side: osewa login uses ssh once, and a host behind a bastion can be reached through ssh.