- Sets the macOS system HTTP/HTTPS proxy to httpmon
- Installs the CA certificate if not already trusted (may prompt for sudo)
- Opens the URL in your default browser
- Pre-populates the TUI filter with the URL’s hostname
Browse mode is currently supported on macOS only. It uses
networksetup to configure the system proxy on the active network interface.How it works
When you pass--browse, httpmon detects your active network interface (e.g. Wi-Fi), snapshots the current proxy settings, and configures the system HTTP and HTTPS proxy to point at 127.0.0.1:<port>. Your default browser then opens the given URL, and all its traffic flows through httpmon.
The TUI filter is automatically set to the hostname from the URL, so you only see relevant traffic — no noise from other applications.
Cleanup
When httpmon exits normally (viaq or Ctrl+C), the original proxy settings are restored automatically.
httpmon also registers signal handlers for SIGTERM and SIGHUP to ensure cleanup happens even if the process is killed externally.

