Skip to content

Magic Wormhole

Command-line tool for sending files between two computers with a short one-time code

Permissive (OSI) · MIT

Listed by , founder & editor

66

Health

Active

Overview

Stars

23,124

Last commit

today

Nov 2026

Repository age

11 years

since Feb 2015

Latest version

–

Contributors

–

8 active in 90 days

Releases

0

last 12 months

Language

Python

Magic Wormhole is a Python library and command-line tool named wormhole. It moves files, directories or short pieces of text from one computer to another. The sender gets a short code made of pronounceable words, and the receiver types it in. The receiving side offers tab-completion, so you usually type only a few characters.

Codes are single-use and do not need to be memorized. The tool relies on two servers, a mailbox server and a transit relay, whose code lives in separate repositories. Since you can run those yourself, you are not tied to a hosted service, and a hosted plan also exists. It works with Python 3.10 and higher, tested up to 3.12, and many operating systems ship a package for it.

It is MIT licensed. It is useful as a replacement for ad hoc file transfer through email attachments or cloud upload links when both people can use a terminal.

Who it's for

Developers and sysadmins moving files between machines

One command on each side transfers files or directories with no accounts or shared folders.

Skip if: You need a graphical app for non-technical recipients.

Anyone sending a secret or short text to a colleague

A single-use code lets you pass text without storing it in a chat log.

Skip if: You need transfers to run unattended on a schedule.

Python developers who want transfer built into a tool

It ships as a library as well as a CLI.

Skip if: You need a non-Python library.

The problem it solves

Sending a file to someone else usually means email limits, upload links or setting up SSH access. You want to move data between two machines quickly, with no accounts. This tool uses a short code you read out or type.

Strengths

  • Transfers files, directories of any size, or short text
  • Short, pronounceable, single-use codes with tab-completion
  • Library and CLI in one package
  • MIT license; packaged for many operating systems
  • Mailbox and relay servers can be self-hosted

Trade-offs

  • Both sides need a terminal and the tool installed
  • Depends on a mailbox server and transit relay
  • No releases in the last year

Self-host Magic Wormhole

Self-hostable
Yes
Hosted plan
From $4/month · pricing

In the community

Frequently asked questions

Is it free?

Yes. It is MIT licensed. A hosted plan is also listed for those who want one.

What does it need to run?

Python 3.10 or higher, tested up to 3.12. Many operating systems also provide a package.

Can I send folders?

Yes. It handles files and directories of arbitrary size, plus short text.

Can I run the servers myself?

Yes. The mailbox server and transit relay have their source in separate repositories.

Similar tools in File sharing and transfer tools

slskd

File sharing and transfer tools

Web-based Soulseek client you run as a daemon or Docker container

4.3k 199 2 days ago Thriving AGPL-3.0

QRcp

File sharing and transfer tools

Command-line tool that moves files to and from your phone by scanning a QR code

11k 551 2 days ago Active MIT

Unison

File sharing and transfer tools

Two-way file synchronizer for Windows, macOS and Linux that handles edits on both sides

5.6k 278 2 months ago Slowing GPL-3.0

Filestash

File sharing and transfer tools

Self-hosted web file manager that connects to SFTP, S3, SMB, WebDAV and more

15k 1k today Active AGPL-3.0

Replaces DropboxGoogle Drive

FileGator

File sharing and transfer tools

Self-hosted web file manager with multi-user roles and chunked uploads, no database needed

3.1k 460 19 days ago Thriving MIT

miniserve

File sharing and transfer tools

Single-binary CLI that serves files and folders over HTTP for quick sharing

8.2k 422 20 days ago Active MIT