- Rust 76.4%
- Dart 19.1%
- Kotlin 1.9%
- Shell 1.6%
- Python 0.6%
- Other 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .claude/skills | ||
| .github/workflows | ||
| apps/mobile | ||
| assets | ||
| brain | ||
| crates | ||
| packaging | ||
| scripts | ||
| .gitignore | ||
| .mise.toml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| icon.png | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| ROADMAP.md | ||
| rust-toolchain.toml | ||
| TODO.md | ||

wyrmyon
The magic-wormhole, with a wyrm in it.
wyrmyon speaks the magic-wormhole protocol, so it sends to and receives from the
Python wormhole CLI and every other client on the public network. When both
ends run wyrmyon, it moves the data over its own iroh-based transport instead:
QUIC with hole-punching, relay fallback, one stream per file, verified and
resumable transfers. You never pick a protocol or a server, and codes keep the
familiar 7-guitarist-revenge shape.
Status: 0.9.0. Text, files,
directories and several paths at once work with any magic-wormhole client,
directly or through the transit relay, and over iroh between two wyrms,
verified chunk by chunk and resumable after an interruption, on Linux, macOS
and Windows. Between two wyrms, a directory travels file by file with no zip,
either side dialling is enough, and the transfer says whether it went direct.
Run as wormhole (wyrm shim links it), wyrmyon takes the Python client's
command line, and the packages are signed. wyrm ssh hands an SSH public key
over, with the Python client on either side, wyrm send --delete-source
deletes what was sent once the receiver confirms it, and wyrm forward
carries TCP ports from one wyrm to another until either side stops it. An
Android app sends and receives the same way, over iroh with a wyrm and over
classic transit with any other client, and scans or shows the codes as QR
codes.
Usage
The package installs two identical binaries, wyrmyon and the short wyrm.
wyrm report.pdf photos/ # paths: send (several go as one bundle), prints a code
echo "hello" | wyrm # piped stdin: send text
wyrm # no arguments: prompt for a code (Tab completes), receive
wyrm 7-guitarist-revenge # a code: receive
wyrm receive --new # receiver first: allocate a code and wait
wyrm send --code CODE FILE # use a code the receiver allocated
wyrm send --times 3 FILE # one code, three receivers in turn
wyrm send --delete-source FILE # delete FILE once the receiver confirms it got it
wyrm send -R /etc/x/y.conf # keep the path: `wyrm receive -o / CODE` puts it back at /etc/x/y.conf
wyrm netcheck # how this network lets peers connect directly
wyrm ssh invite # add the SSH public key `wyrm ssh accept CODE` sends to authorized_keys
wyrm forward 8080 # share localhost:8080 with another wyrm, prints a code
wyrm forward CODE 18080:8080 # listen on 18080 here for their port 8080, until Ctrl-C
wyrm send and wyrm receive take every option (--accept-file, -o,
--overwrite, -R, --code-length, --text); several paths land side by
side on another wyrm, merged into the directories already there; wyrm --help lists the global ones
(--relay-url, --transit-helper, --no-listen, --force-classic,
--iroh-relays, --hide-progress, --ascii...). wyrm send --qr also shows the code as a
QR code for a phone to scan, and wyrm receive --new --qr shows one that asks
the phone to send.
Run as wormhole, wyrmyon takes the Python client's command line
(wormhole send --text hi, wormhole rx CODE, the QR code on by default),
so the common sends and receives a script makes still work. A few options
are refused by name instead (--verify, -0, Tor), and the output is
wyrm's, not the Python client's word for word. wormhole ssh invite and
wormhole ssh accept CODE (or wyrm ssh ...) hand over an SSH public key,
with either client on the other side. wyrm shim links wormhole to
wyrmyon when no other wormhole is on PATH, and wyrm shim --remove takes
that link back.
| Sender | Receiver | Transport |
|---|---|---|
wormhole (Python) |
wyrmyon | classic transit |
| wyrmyon | wormhole (Python) |
classic transit |
| wyrmyon | wyrmyon | iroh-v1 |
Install
From the latest release, on x86_64 and arm64:
| System | Install |
|---|---|
| Debian, Ubuntu | sudo apt install ./wyrmyon_X.Y.Z_amd64.deb |
| Fedora, RHEL, openSUSE | sudo dnf install ./wyrmyon-X.Y.Z-1.x86_64.rpm, once rpm trusts the key below (rpm 6, from Fedora 45, refuses a package it cannot check) |
| Arch | sudo pacman -U the package's URL, once pacman trusts the key below, or makepkg -si from the PKGBUILDs in wyrmyon-vX.Y.Z-pkgbuild.tar.gz |
| Windows | the .msi (unsigned: SmartScreen asks once), or the script below |
| Any Linux, macOS | the script below, or a .tar.gz |
| Android 10 and newer | wyrmyon-X.Y.Z-android-arm64-v8a.apk (armeabi-v7a on older 32-bit phones), opened on the phone |
curl -fsSL https://raw.githubusercontent.com/Arzaroth/wyrmyon/master/scripts/install.sh | sh
powershell -c "irm https://raw.githubusercontent.com/Arzaroth/wyrmyon/master/scripts/install.ps1 | iex"
The RPMs, the Arch packages (a .sig beside each) and SHA256SUMS (in
SHA256SUMS.asc) are signed with the release key
packaging/wyrmyon.asc, fingerprint
D399CF355EE4767B49F8C76E76B59B8342D88151. For an RPM, trust it once:
sudo rpm --import https://raw.githubusercontent.com/Arzaroth/wyrmyon/master/packaging/wyrmyon.asc
For Arch, the same:
curl -fsSL https://raw.githubusercontent.com/Arzaroth/wyrmyon/master/packaging/wyrmyon.asc | sudo pacman-key --add -
sudo pacman-key --lsign-key D399CF355EE4767B49F8C76E76B59B8342D88151
The APKs are listed in SHA256SUMS.android and signed with the app's own key,
whose certificate has the SHA-256
6b4a50d7008361cc105a66f18d5b45568633ed04dbc582c2d8847804cc046fca
(apksigner verify --print-certs shows it). Android only installs an update
signed with the same key.
The script checks the download against the release's SHA256SUMS and installs
into ~/.local/bin, with man pages and shell completions
(%LOCALAPPDATA%\Programs\wyrmyon on Windows, binaries only). The Linux binaries are static, so they run on any
distribution. PyPI, Homebrew and the AUR come later. When no wormhole is
on PATH, the scripts also add one that runs wyrmyon (a symlink, a hard link on
Windows); the packages and the MSI do not, to stay clear of the
distributions' magic-wormhole, so run wyrm shim after them.
A copy installed by the script or from a .tar.gz updates itself with
wyrm --update. The packages and the MSI are upgraded the way they were
installed, and --update says so rather than going around them.
How it works
Both peers meet on the public magic-wormhole mailbox and run SPAKE2 on the code,
like any other client. wyrmyon then advertises iroh-v1 in the encrypted
version message. If the peer advertises it too, the file data moves over iroh;
otherwise over classic transit. The advert is authenticated by the code, so a
mailbox server cannot downgrade the connection. The details are in
brain/.
Development
cargo fmt --all
cargo clippy --all-targets -- -D warnings
cargo test
brain/ documents how everything works, ROADMAP.md what comes next and
TODO.md the small things.
Licence
MIT, see LICENSE.