Outlives client & daemon
Each session runs in its own process under ~/.tyd/live/. It keeps running across a tyd up restart — the next daemon adopts it again.
A daemon holds PTY / shell sessions on a machine. A client pairs by token, then creates or attaches. Sessions outlive both the client and the daemon — close your laptop, kill the daemon, come back from another device, and the shell is still there.
// not an AI agent · not a VPN · not a file-transfer tool · not related to ttyd
↑ This is a real run: same commands, session id, and output as verified on 2026-11-11 — including tyd down and the restart. Sessions keep running under their live agents; the next tyd up adopts them again.
Why tyd
Most remote shells die with the connection, the client, or the daemon. tyd is built around the opposite assumption.
Each session runs in its own process under ~/.tyd/live/. It keeps running across a tyd up restart — the next daemon adopts it again.
No account to create. The host mints a single-use invite, the peer runs tyd accept TOKEN. Invites expire after 10 minutes.
The same binary is daemon and client. No SSH / VPN stack to configure — it layers on the network you already trust.
Control Panel and relay are both self-hostable, and --relay takes a list — you're not tied to one rendezvous point.
tyd session watch follows a session read-only. Name sessions with aliases and reattach with a shortcut like tyd jammy.laptop.
LAN, WireGuard, or Tailscale — tyd layers on top. Direct when it can, relay as a dual-NAT fallback when it can't.
How it works
Three pieces, one idea: the shell's lifetime is independent of everything that connects to it.
tyd up listens on ~/.tyd/tyd.sock locally by default. It holds the sessions and gates remote peers.
Each shell lives in its own process under ~/.tyd/live/. Detach, disconnect, or restart the daemon — it keeps running.
Pair once with a token, then create or attach from any paired device. Ctrl-\ detaches and leaves the shell running.
# after install — the installer registers this host tyd approval pre # read by the daemon at start tyd up tyd invite # mint a token (10 min); waits for the peer tyd invite --no-wait # mint & exit immediately
tyd accept TOKEN --as laptop tyd --peer laptop session create tyd session alias jammy tyd jammy.laptop # reattach, from anywhere tyd session list / watch / close
Honest positioning · Security
tyd doesn't claim to replace tmux + ssh, mosh, or Tailscale SSH. Read the full comparison — including where tyd adds nothing — in the docs.
| Tool | What it's great at | Where tyd differs |
|---|---|---|
| tmux + ssh | Battle-tested multiplexing inside an SSH session you already have. | Sessions also survive a daemon restart, and pairing is by token — no SSH stack to configure. |
| mosh | Roaming, high-latency, flaky networks. | tyd is about session lifetime & remote attach, not link resilience. |
| Tailscale SSH | Identity & access inside a tailnet. | tyd layers on Tailscale / WireGuard / LAN instead of replacing the network. |
Read docs/alternatives.md — including where tyd adds nothing →
~/.tyd; every connection runs challenge-response against the peer's trusted.json. A new key needs explicit pairing.full (default), pre (approve each request — start here for a new peer), post.--audit-log FILE) records control events only — never terminal content.tyd up --sandbox docker --sandbox-image IMAGE --sandbox-workdir DIR runs the shell in a container that sees only the workdir.Local boundary, stated plainly in the README: a session runs as the same user as the daemon, so approval modes gate a remote peer — not code already running inside a session.
Install · Docs
Per-user install to ~/.local/bin/tyd, state in ~/.tyd. The installer verifies the archive against the release checksums.txt and refuses a mismatch. Windows is not supported.