A magic-wormhole client that switches to iroh when both peers run wyrmyon
  • Rust 76.4%
  • Dart 19.1%
  • Kotlin 1.9%
  • Shell 1.6%
  • Python 0.6%
  • Other 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-26 08:24:55 +01:00
.claude/skills [feature/mobile-finish] docs: the review's fixes, the APKs on the release, and what the review left for later 2026-11-24 07:08:29 +01:00
.github/workflows [feature/mobile-bridge] ci: an Android job analyzing, testing and building the APK 2026-11-21 09:55:55 +01:00
apps/mobile [fix/apk-install] test(mobile): Open on home and after a transfer says when no app opens the file 2026-11-26 08:24:55 +01:00
assets [feature/emblem-v2] chore(assets): the 1280x640 social preview with the emblem and the tagline, drawn by a script that reuses the logo's cut-out 2026-10-14 03:46:28 +02:00
brain [fix/apk-install] docs: the APK install fix in the changelog and the brain 2026-11-26 08:24:55 +01:00
crates [feature/mobile-finish] test: a zip over iroh into a missing cache, bidi names, and the app's cancel and failure paths 2026-11-24 07:08:29 +01:00
packaging [master] chore(release): 0.9.0 2026-11-24 07:52:31 +01:00
scripts [feature/mobile-finish] feat(release): the app's version follows the release, and apk-publish attaches the signed APKs to it 2026-11-24 07:08:29 +01:00
.gitignore [master] chore: workspace skeleton and licence 2026-10-08 21:49:22 +02:00
.mise.toml [feature/mobile-finish] feat(release): the app's version follows the release, and apk-publish attaches the signed APKs to it 2026-11-24 07:08:29 +01:00
Cargo.lock [master] chore(release): 0.9.0 2026-11-24 07:52:31 +01:00
Cargo.toml [master] chore(release): 0.9.0 2026-11-24 07:52:31 +01:00
CHANGELOG.md [fix/apk-install] docs: the APK install fix in the changelog and the brain 2026-11-26 08:24:55 +01:00
CLAUDE.md [feature/mobile-bridge] docs: the Android app, its bridge and build hook, its tests and CI job, and the toolchain pins 2026-11-21 09:56:53 +01:00
icon.png [chore/project-icons] chore: link the project icon at the root 2026-11-07 00:30:09 +01:00
LICENSE [master] chore: workspace skeleton and licence 2026-10-08 21:49:22 +02:00
pyproject.toml [feature/m7-packaging] build: release archives, installers and PyPI wheels 2026-10-09 02:54:25 +02:00
README.md [master] docs(release): 0.9.0 README status with the Android app 2026-11-24 07:49:48 +01:00
ROADMAP.md [feature/mobile-collections] docs: trees in the transfer library, the app's folders and bundles both ways, their tests, M11 done 2026-11-23 07:21:13 +01:00
rust-toolchain.toml [chore/coverage-gate] chore: llvm-tools in the pinned toolchain 2026-10-08 23:50:40 +02:00
TODO.md [feature/mobile-finish] docs: the review's fixes, the APKs on the release, and what the review left for later 2026-11-24 07:08:29 +01:00

wyrmyon

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.