CLI tool
magic-wormhole/magic-wormhole avatar
magic-wormhole/magic-wormhole

Magic Wormhole moves files with a one-time spoken code, and depends on two servers it does not ship

get things from one computer to another, safely

23,130 stars770 forksPythonMIT

At a glance

What is it?
magic-wormhole is a Python library and a wormhole command that transfers files, directories or short text between two computers using a single-use pronounceable code. Its mailbox server and transit relay live in separate repositories.
Who is it for?
Use magic-wormhole when you need to hand a file or a snippet to another person or machine right now and can read a short code to them over a call or chat. It is a poor fit for unattended or scheduled transfers, since the code is single-use and must be typed by the receiver, and you should check the docs for how the mailbox server and transit relay are reached before using it in a restricted network.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 26, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • magic-wormhole/magic-wormhole23,130 ★ · +159
Star history
Repository2026-10-082026-11-26
magic-wormhole/magic-wormhole23k23.1k

159 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

A single-use code pairs the sender and the receiver

The package provides a library and a command-line tool named wormhole. It transfers arbitrary-sized files and directories, or short pieces of text, from one computer to another. The two endpoints are identified by identical wormhole codes. In general, the sending machine generates and displays the code, and the receiving machine's user types it in.

The codes are short and human-pronounceable, drawn from a phonetically distinct wordlist. The receiving side offers tab-completion on the codewords, so usually only a few characters need to be typed. Wormhole codes are single-use and do not need to be memorized.

That design has a direct consequence for how you use it. Someone has to read the code from one screen and give it to the other side, by voice or chat. Because the code is single-use, a second receiver cannot reuse it, and a transfer that fails after the code is consumed means generating a new one. There is no account, no address book and no stored recipient in the README description.

Two separate servers do the rendezvous and the relaying

The program uses two servers whose source code is kept in separate repositories: the mailbox server, magic-wormhole-mailbox-server, and the transit relay, magic-wormhole-transit-relay. The main repository contains the client and library only.

This matters for planning. The two computers do not need to reach each other directly to agree on a code, because the mailbox server is where they meet. The transit relay name indicates a relay for the data itself, but the README does not say when it is used. The documentation at magic-wormhole.readthedocs.io, and the docs directory in the repository, are the places to read how the client finds these servers and what you need to run your own.

If you work in a network that blocks outbound connections to unknown hosts, test a transfer before you depend on it. The README gives no list of default hostnames or ports, so the firewall question has to be answered from the docs.

The entry points are wormhole and magic-wormhole, plus shell completions

setup.py defines two console scripts that call the same function: wormhole and magic-wormhole. A comment in the file says it is advantageous to have an entry point that matches the package name, for things like uv tool run. The packages listed are wormhole, wormhole.cli, wormhole._dilation and the test packages, which means a dilation module is part of the library.

Completion scripts ship for three shells: wormhole_complete.bash, wormhole_complete.zsh and wormhole_complete.fish. setup.py installs them to share/bash-completion/completions, share/zsh/site-functions and share/fish/vendor_completions.d. The Makefile regenerates them with the _WORMHOLE_COMPLETE environment variable set to bash_source, zsh_source or fish_source, then applies bash-completions-version-4.patch so that bash older than 4.4, as found on macOS, still works.

The README does not show a single transfer command, so the basic send and receive usage has to come from the documentation. Use `wormhole --help` once installed to see the subcommands.

Python 3.10 is required, tests stop at 3.12, and the status is Beta

The library is compatible with Python 3.10 and higher, tested against versions up to 3.12. setup.py sets python_requires to >=3.10 and lists classifiers for 3.10, 3.11 and 3.12 on CPython, with Development Status 4 - Beta. A newer interpreter may work, but the project only states testing through 3.12.

The classifiers also place it under Security :: Cryptography, Networking, Systems Administration and Utilities. The README itself says only that it gets things from one computer to another, safely. It gives no description of the cryptographic protocol, the key exchange or the threat model, so the claim of safety rests on the documentation and the PyCon 2016 presentation, whose slides and video the README links.

If you must decide whether the tool is trustworthy for sensitive data, read those, and read the source in src/wormhole, since this article cannot vouch for the protocol. The license is MIT. The versioning is handled by versioneer with git tags and no prefix.

Installation comes from OS packages, with the Installation docs for everything else

The README says Magic Wormhole packages are included in many operating systems, and shows a Repology badge listing the versions. To install without an OS package, it points to the Installation section of the welcome page in the documentation. No pip command appears in the README.

The repository does include a snapcraft.yaml, so a snap build is defined there, though the README does not say whether a published snap exists. The package is also on PyPI, as the badge indicates.

On Windows, the build badge points to AppVeyor, so Windows is part of continuous integration. The README has no per-platform instructions for Windows, Mac or Linux. For mobile platforms and for a browser version, nothing in the repository mentions an app or a web client. Treat any such app as a separate project and check its source before trusting it with files.

Releases are signed by hand, and the repository has no GitHub releases

The repository has no GitHub releases. Release history is in NEWS.md, and the Makefile documents the release procedure. The release target checks that the checkout is clean, installs the build extras, tests the README with python3 setup.py check, signs NEWS.md with GPG, runs update-version.py to bump the version and tag it, then builds and signs a wheel and a source distribution. A comment says only certain maintainers may do the upload to PyPI.

The last push was on 31 October 2026, and the repository is not archived. The signatures directory holds signature files for released versions, which you can check against the maintainers' keys if you install from a downloaded archive.

The Makefile also gives the developer commands: make test runs python3 -m pytest, and make lint runs tox -e flake8less. Tests live in src/wormhole/test.

Editorial conclusion

Use magic-wormhole when you need to hand a file or a snippet to another person or machine right now and can read a short code to them over a call or chat. It is a poor fit for unattended or scheduled transfers, since the code is single-use and must be typed by the receiver, and you should check the docs for how the mailbox server and transit relay are reached before using it in a restricted network.

Frequently asked questions

What is Magic Wormhole?

A Python library and a command-line tool named wormhole that transfers files, directories or short text between computers, using a short single-use code shown by the sender and typed by the receiver.

How to install Magic Wormhole?

Use your operating system's package if one exists, since packages are included in many operating systems. Otherwise follow the Installation docs on magic-wormhole.readthedocs.io. It needs Python 3.10 or higher.

Is Magic Wormhole secure?

The project describes itself as getting things between computers safely and classifies itself under Security :: Cryptography. The protocol details are in the documentation and the PyCon 2016 talk, not in the README.

Official sources

  1. Issues
  2. License: MIT
  3. magic-wormhole/magic-wormhole on GitHub
  4. Project website
  5. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/magic-wormhole-magic-wormhole.svg)](https://hysenlabs.com/projects/magic-wormhole-magic-wormhole)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/magic-wormhole-magic-wormhole.svg)](https://hysenlabs.com/projects/magic-wormhole-magic-wormhole)

Was this useful?