macOS: first setup
For a first test on macOS, run Yuhaiin locally and configure just one app. TUN and system-wide network routes can be enabled later.
Install
Section titled “Install”Download the matching release from Yuhaiin releases: darwin-arm64 for Apple Silicon (M-series), darwin-amd64 for Intel. Alternatively, if you use Homebrew:
brew tap yuhaiin/yuhaiinbrew install yuhaiinFor a downloaded standalone executable, rename it to yuhaiin, open Terminal in its folder and run:
chmod +x ./yuhaiin./yuhaiin -host 127.0.0.1:50051macOS may warn that an unsigned app cannot be verified. Confirm the file came from the official repository before making a deliberate security override. The backend README also describes quarantine and ad-hoc signing for manual installations.
Open http://127.0.0.1:50051. Avoid running the management listener on 0.0.0.0 unless you want and have secured remote access.
Use the local proxy
Section titled “Use the local proxy”Open Traffic entry → Inbounds and use the existing enabled mixed inbound (fresh-install default 127.0.0.1:1080). Create a new listener only if the existing one is unavailable; the React new Local preset uses 127.0.0.1:9002 as its initial value. Set this as the HTTP or SOCKS proxy for one application, or use Settings → Configuration → System proxy integration for applications that follow macOS proxy settings. Check a page load and the Connections list.
Do not enable both Yuhaiin and another app’s automatic system proxy control without checking which settings were applied.
System-wide capture
Section titled “System-wide capture”To use a virtual utun interface, follow TUN. On macOS this commonly requires elevated permissions. Routes may conflict with an existing VPN or managed-device policy; test with one network at a time.
Recover
Section titled “Recover”Disable TUN first, then turn off system proxy integration. Quit the manual process with Ctrl+C. In macOS network settings, remove any stale HTTP/SOCKS proxy pointing to the actual inbound address (typically 127.0.0.1:1080 on a fresh install) if it remained enabled after the process exited. Restarting Yuhaiin is not a substitute for removing a stale OS proxy.
See Network diagnostics for the next check.