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 self-host a team chat server as a Tor hidden service without touching a single firewall rule or port forwarding setting.
- Your server gets a .onion address, so no IP address is ever exposed and no DNS provider can log or leak your team's location.
- Setup takes minutes because OffCode TorChat bundles Tor routing directly into the product instead of making you configure a separate Tor instance by hand.
- Every message stays off third-party infrastructure, which matters for teams handling legal, journalistic, or confidential work that cannot touch commercial chat platforms.
- Because the hidden service runs on your own machine, you control retention, deletion, and access with no vendor able to hand over logs under a subpoena.
