TorHost Documentation

TorHost is a command-line tool that allows you to create Tor v3 hidden services (onion services) with a single command.

It automatically installs Tor, configures the hidden service, and prints the generated onion address.

API Reference

torhost.cli.check_tor_running()
torhost.cli.command_exists(cmd)
torhost.cli.detect_tor_user()
torhost.cli.install_tor()
torhost.cli.is_termux()
torhost.cli.main()
torhost.cli.require_sudo()
torhost.cli.restart_tor()
torhost.cli.run(cmd, check=False, capture_output=True)
torhost.cli.validate_onion_address(onion)