Nov 19 2025
Have you ever wondered how to make an anonymous website without enabling JavaScript in Tor Browser? Onionshare makes it easy to host your own static .onion site from home!
One of the best ways to run Onionshare today is within snapd. First, we'll install snapd.
sudo apt install snapd
Next, we'll use snapd to install the most recent version of Onionshare.
sudo snap install onionshare
Upon completion, you should be able to run Onionshare using this command:
/snap/bin/onionshare
For the command line version of Onionshare, try this command instead:
/snap/bin/onionshare.cli
For advanced Onionshare command line usage when launching a website:
/snap/bin/onionshare.cli --website --public --config /path/to/your/onionshare.json --persistent /path/to/your/persist.json /path/to/your/Website/
Note: After your first time launching a website in Onionshare, the persistence file and the config file are generated. The config file is generated here: '/home/user/snap/onionshare/current/.config/onionshare/onionshare.json' and the persistence file is generated here: '/home/user/snap/onionshare/current/.config/onionshare/persistent/insert-random-name.json'
You can copy these two files and keep your onion address if you move to a new computer.