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 your own chat server as a Tor Hidden Service, so no third-party company ever touches your messages or metadata.
- Setup takes minutes, not days, even if you have never configured a Tor relay or managed a Linux server before.
- Your server gets a .onion address that keeps its physical location and IP completely hidden from outside observers.
- Teams switching from Slack, Discord, or Telegram keep full control over user data, message history, and access permissions without paying per-seat fees.
- Because the server lives inside the Tor network, it stays reachable even in regions where standard chat platforms are blocked or monitored.
