This task can be performed using OffCode TorChat
Self-hosted chat server
Best product for this task
OffCode Tor Chat is designed to make secure Tor Hidden Service hosting simple.

What to expect from an ideal product
- OffCode TorChat lets you run a private chat server over Tor without touching a terminal or hiring anyone to set it up.
- Your server gets its own .onion address, keeping conversations off the public internet and away from third-party platforms.
- No reverse proxy, no open ports, no SSL certificates to renew. Tor handles the networking layer so you skip the usual sysadmin headaches.
- Teams that need end-to-end private messaging but lack DevOps staff can go from zero to a live hidden service in minutes.
- Because the server runs as a Tor Hidden Service, your IP stays hidden from users and your users stay hidden from the outside world.
