A lightweight, self-hosted chat server that uses Tor onion routing for anonymous communication.
Client -> Tor SOCKS5 -> Hidden Service -> Whisp Server -> Hidden Service -> Tor SOCKS5 -> Client
- Lightweight: Written in C to keep things simple - feel free to fork
- Anonymous: All traffic routed through Tor - nobody can see your IP
- Ephemeral: Messages exist only during active chat sessions - no persistent storage
- Small groups: Designed for 2-4 people per session - can probably handle many more
- Private: Unless you leak the .onion address
-
Install Tor and Libsodium:
sudo apt update sudo apt install tor libsodium-dev
-
Run Tor:
sudo systemctl start tor
-
Configure Tor hidden service - Follow this guide: https://community.torproject.org/onion-services/setup/
-
Get your onion address from
/var/lib/tor/hidden_service/hostname -
Compile the server:
gcc -pthread server.c utils.c -lsodium -o whisp-server
-
Run the server:
./whisp-server
-
Share your .onion address with friends - DO NOT LEAK IT
- Install Tor:
sudo apt update sudo apt install tor
- Run Tor:
sudo tor
- Create .env with the onion address
echo "WHISP_ONION=your_friends_address.onion" > .env
- Compile the server:
gcc client.c utils.c -o client
- Make run script executable:
chmod +x runClient.sh
- Connect:
./runClient.sh
