Pairing Mode
Pairing Mode is designed for everyday use. The sender broadcasts its presence over mDNS and UDP, and the receiver listens for an announcement that matches the shared code phrase. When a match is found, Hayate opens a QUIC connection and performs a cryptographic handshake — no IP address entry required. The code phrase does more than help peers find each other. During key derivation, Hayate mixes the phrase bytes directly into the HKDF input keying material. This means only a peer that knows the exact phrase can derive the correct session key and decrypt your transfer.--code on the sender, Hayate auto-generates a random 4-word phrase and prints it to the terminal for you to share verbally or via a side channel.
Direct Mode
Direct Mode skips discovery entirely. You provide the receiver’s IP address and port as ahost:port argument, and Hayate connects immediately. This is the right choice when you already know the receiver’s address, when you are scripting automated transfers, or when your network administrator has disabled multicast.
--bind and --port. In Direct Mode there is no passphrase, so authentication relies on network locality — only a host that can actually reach the receiver’s address can initiate a transfer.