Most file-sharing services put a company in the middle. OnionShare doesn't. It starts an onion service on your own computer, gives you an address, and anyone with that address and Tor Browser can connect straight to your machine. When you close the app, the address dies and nothing is left on anyone's server, because there was never a server.

The project was started by Micah Lee in 2014 and is free software. It runs on Windows, macOS and Linux, comes preinstalled in Tails, and has mobile versions as well. Download it from onionshare.org or, on Linux, through Flatpak or Snap.

The four modes

When you open OnionShare you get four tabs to choose from.

Share Files

Drag files or folders into the window and click Start sharing. After a few seconds you get an address ending in .onion and a private key. Send both to the recipient over a channel you trust, ideally a different one for each. They paste the address into Tor Browser, enter the key when the browser asks, and download a zip (or the single file).

By default the share stops after the first complete download. That's sensible for one-off transfers. Untick "Stop sharing after files have been sent" if several people need the same files.

Receive Files

This flips it around: you get an address where other people can upload to you. Journalists and researchers use it as a lightweight drop box. Uploads land in a folder you choose (by default ~/OnionShare). You can also allow text messages to be submitted alongside, or instead of, files.

Treat anything that arrives as hostile. Open uploaded documents in a disposable VM, in Tails, or on a machine you don't care about. OnionShare doesn't scan files, and a receive address shared publicly will attract junk.

Host a Website

Point it at a folder of HTML, CSS and images and it serves them as a static site. No PHP, no databases. If there's an index.html it's used as the home page; otherwise visitors get a directory listing. It's handy for a quick private page or testing, less so for anything that needs to stay up, since it's only online while your computer is.

Chat Anonymously

Starts a temporary chat room on your computer. Everyone who has the address and key can join with Tor Browser, pick a name, and talk. Nothing is logged, and the room disappears when you stop it. It's crude compared with a real messenger, but there's no account, no phone number and no app for the other side to install.

The private key and public mode

Current versions of OnionShare protect shares with client authorization by default. The address alone isn't enough; the visitor also needs the private key. Older versions used a random password in the URL path instead, which some guides still describe.

There's a checkbox, "This is a public OnionShare service (disables private key)", for when you actually want anyone with the address to connect. Use it for a public receive box or a website. Leave it off for private transfers.

The address is the secret. If you paste it into a chat app that generates link previews, or an email that ends up in someone's cloud inbox, you've widened the circle of who knows it. That's another reason to send the key separately.

Things that go wrong

Laptop sleep is the big one. Close the lid, the computer suspends, Tor disconnects, and the person downloading a 4 GB file sees it stall. Keep the machine awake for the duration of the transfer.

Speed is Tor speed. Both sides go through onion service circuits (six relays in total), so large files take a while. A few hundred megabytes is fine. Tens of gigabytes is a test of patience.

If Tor is blocked on your network, OnionShare can use bridges. The settings (the gear icon) let you choose built-in obfs4 or Snowflake bridges or paste your own. Persistent addresses are another setting: by default every share gets a new address, but you can save a tab so it keeps the same one across restarts, which is what you'd want for a long-running receive box.

The command-line version

There's also onionshare-cli, which is useful on a headless server or for scripting:

onionshare-cli ~/Documents/report.pdf
onionshare-cli --receive
onionshare-cli --website ~/site
onionshare-cli --chat

Run onionshare-cli --help for the full list, including --public, --persistent and auto-stop timers.

What it doesn't hide

OnionShare hides your IP from the recipient and hides the transfer from anyone watching the network. It doesn't strip metadata from the files you send. A Word document still carries the author's name, and a photo still carries its EXIF data. Clean files first; our guide to metadata in photos and documents covers how. And anyone watching your connection can see that you're using Tor, if not what for.

For high-stakes leaks to a newsroom, a dedicated system like SecureDrop is the better tool, because it's built around protecting the source over a long relationship. OnionShare is the quick, flexible option for when you just need to move something privately today.

#onionshare #file-sharing #onion-services #anonymous-upload