Easily create a .onion server via Tor from any local folder. This CLI tool turns the directory where it runs into a globally accessible website over the Tor network.
- Go installed
- Tor installed
- The
torexecutable must be available in your system's terminal (PATHenvironment variable)
- Download and install the Tor Expert Bundle
- Extract the files (e.g. to
C:\Tor) - Add the folder containing
tor.exeto your systemPATH:- Control Panel β System β Advanced Settings β Environment Variables
- Edit the
Pathvariable and add:C:\Tor
- Restart your terminal
- Test it:
tor --version
Install via your package manager:
sudo apt install tor # Debian/Ubuntu
brew install tor # macOS (Homebrew)Then test:
tor --version- Place the compiled
torfolderbinary in a directory that is in your system'sPATH - Navigate to the folder you want to expose in your terminal
- Run the command:
torfolderThe terminal will display something like:
π Your site is available on the Tor network:
http://abc123xyz.onion
- Open the URL in the Tor Browser or a Brave browser session using Tor
- A new
.onionlink is generated each time, unless you preserve the data folder
- The
tor-data/folder and anydata-dir-*folders are automatically protected and not served over HTTP - The embedded Tor process runs silently by default
- The
.onionprivate key is stored temporarily (unless you manually preserve the generated folder)
Made with π» using Go + Tor + Bine