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
| osewa | ssh | |
|---|---|---|
| Transport | QUIC, falling back to TLS WebSocket over TCP | TCP |
| Sleep or IP change | Resumes by itself | Session dies |
| Session lives | On the host, in its own process | In the connection |
| Local echo prediction | Yes | No |
| Port forwards | Local, like -L | Local, remote, SOCKS |
| Commands without a terminal | Yes | Yes |
| Agent and X11 forwarding | No | Yes |
| File transfer | Through osewa exec pipes | scp, sftp |
| Login | Ed25519 device key, pinned server key | Keys, passwords, certificates, 2FA and more |
| On the host | osewa, on port 7322 (TCP and UDP) | Already there, usually |
| Platforms | Linux and macOS | Nearly 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.
| osewa | ssh | |
|---|---|---|
| Connect and run a command | 387 ms | 1,627 ms |
| Echo, idle | 126 ms | 136 ms |
| Echo during a download | 129 ms | 178 ms |
| Download alone | 9.86 MB/s | 9.82 MB/s |
| Download while typing | 9.82 MB/s | 10.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
- You need agent forwarding, X11, remote or SOCKS forwards, scp or sftp.
- You can't open another port on the host, or install anything on it.
- You need Windows, or a host that isn't Linux or macOS.
- Your login needs passwords, certificates or 2FA. osewa only has device keys.
- You leave sessions alone for days. An osewa session ends after 24 hours with nobody attached and no output; tmux on the host keeps it.
- Audits matter. OpenSSH has decades of them and osewa has none yet. osewa's device key is a plain file (mode 0600), not behind a passphrase or an agent.
Where osewa is the better choice
- You work from a laptop or phone that sleeps and changes network.
- A long job or coding agent should keep running and stay reachable, without setting up tmux.
- You type on a slow or busy link, and a download shouldn't hold your keys back.
- Several devices should see the same session.
They work side by side: osewa login uses ssh once, and a host behind a bastion can be reached through ssh.