01 / OVERVIEW
What is ClashFX?
ClashFX is an open-source rule-based proxy client for macOS powered by mihomo. It supports HTTP/HTTPS, SOCKS, VMess, VLESS, Trojan, Shadowsocks, Hysteria2, and other protocols. Your configuration determines how each connection is handled.
Core capabilities
- System-wide TCP and UDP capture with Enhanced Mode (TUN)
- Domain, IP-CIDR, GeoIP, and process-based routing
- Fake-IP and secure DNS policies
- gVisor userspace network stack
- Stable and Lab release channels
02 / INSTALL
Install ClashFX
- Download the latest release from the official GitHub repository.
- Open the package and move ClashFX to Applications.
- Confirm the macOS security prompt on first launch.
03 / CONFIGURATION
Configuration files
The default configuration directory is shown below. The default file is config.yaml, and you can switch between custom files inside ClashFX.
$HOME/.config/clashfxImport a remote configuration
Open the configuration import screen and paste the subscription URL supplied by your provider. ClashFX is a client and does not provide proxy servers or subscriptions.
04 / ENHANCED MODE
Capture system traffic
Enhanced Mode uses a TUN interface to capture TCP and UDP traffic, including traffic from apps that ignore macOS system proxy settings.
- Click the ClashFX menu bar icon.
- Find Enhanced Mode and enable it.
- Grant administrator access on first use.
05 / ROUTING
Send each connection the right way
mihomo rules can match domains, IP ranges, locations, and process names. Rules run from top to bottom, and the first match wins.
Direct routing for mainland China apps
The built-in option uses the community-maintained cn-apps-direct process list, updated every 24 hours. Read the full guide.
06 / RELEASE CHANNELS
Stable and Lab
Stable is the recommended default, with fixes grouped and tested before release. Lab delivers fixes sooner and may include experimental features.
ClashFX → Settings → Debug → Update Channel07 / URL SCHEMES
System integration
Import a remote configuration
clashfx://install-config?url=http%3A%2F%2Fexample.com&name=example
clash://install-config?url=http%3A%2F%2Fexample.com&name=exampleReload the active configuration
clash://update-config08 / BUILD
Build from source
You need macOS 10.14+, Xcode 15.0+, Python 3, and Go 1.21+.
brew install golang
bash install_dependency.sh
open ClashFX.xcworkspaceSelect a target in Xcode and press Cmd + R to build and run.