Tutorial Center
Setup Clash in 5 Minutes – Visual Guide for All Platforms
From installation to intelligent split tunneling, we\'ll walk you through all Clash configurations. Supports Windows, macOS, Android, iOS, and Linux. Easy for even absolute beginners.
Complete Clash Setup in Three Steps
The core process is the same regardless of your platform. Platform-specific tutorials below provide more detailed visual instructions.
Download & Install Client
Choose the Clash GUI client for your operating system. For Windows / macOS / Linux, we recommend Clash Verge Rev; for Android, Clash for Android (CFA); and for iOS, Stash or Shadowrocket.
Go to Download PageImport Provider Subscription
Obtain a Clash-format subscription URL from your provider. Copy and paste it into the "Config" or "Subscription" page of the client, then click Update. The client will automatically parse nodes and split-tunneling rules—no manual YAML editing required.
Select Node & Enable Proxy
Choose a low-latency proxy node from the list and enable "System Proxy" (lightweight) or "TUN Mode" (global transparent proxy). Clash will automatically split traffic—high-speed local connections and proxied international access with seamless switching.
Download & Install Clash Verge Rev
Go to the GitHub Releases page and download the latest .exe installer:
- Most users choose
ClashVergeRev_x.x.x_x64-setup.exe(x64, for most Windows desktops/laptops) - For ARM devices like Surface Pro X, choose
ClashVergeRev_x.x.x_arm64-setup.exe
Import Provider Subscription
Open Clash Verge Rev. Click "Profiles" in the left navigation bar, then:
- Click "New" or the input box in the top right
- Paste the Clash subscription URL provided by your service
- Click "Import" or press Enter
- Wait for the download to complete; the configuration will appear in the list
- Click "Use this profile" on the right side of the configuration to activate it
https://your-airport.com/api/v1/client/subscribe?token=xxxxxxxx&flag=clash
View & Select Proxy Nodes
Click "Proxies" in the left navigation to see all available nodes and policy groups:
- Click any policy group (e.g., "Proxy") and choose a low-latency node from the list
- Click the lightning bolt icon on the right for a manual speed test to see real-time latency
- The "Auto Select" policy will automatically switch to the best node based on latency—ideal for users who prefer zero manual management
Enable System Proxy
Find the "System Proxy" switch in the top right of Clash Verge Rev and click to turn it on (it will turn blue).
- System Proxy mode automatically configures Windows settings, taking effect immediately for browsers and other apps that support system proxies
- By default, Clash listens on
127.0.0.1:7890(HTTP) and127.0.0.1:7891(SOCKS5) - Verify: Visit google.com in your browser; if it opens, you\'re all set
Enable TUN Mode (Global Transparent Proxy)
TUN mode proxies all traffic, including games and CLI tools that don\'t support system proxies. Recommended for advanced users:
- In the Clash Verge Rev Settings page, find and enable the "TUN Mode" switch
- A Windows UAC prompt will appear; click "Yes" to grant administrator privileges (required for the virtual network interface)
- Once TUN Mode is active, you can turn off the System Proxy switch; TUN will handle all traffic
Windows Usage FAQ
PROCESS-NAME,xxx.exe,DIRECT rule to the `rules` section of your YAML configuration, or manually add a direct rule in the client\'s proxy rules page.Download & Install Clash Verge Rev
Go to the GitHub Releases page and download the .dmg installer for your architecture:
- For M1 / M2 / M3 / M4 Macs: Download
ClashVergeRev_x.x.x_aarch64.dmg - For Intel Macs (Pre-2020): Download
ClashVergeRev_x.x.x_x64.dmg
After downloading, double-click the .dmg file and drag the Clash Verge Rev icon into the Applications folder to complete installation.
Bypass macOS Gatekeeper Restrictions
When first opening Clash Verge Rev, macOS may say "Cannot be opened because the developer cannot be verified." This is normal. There are two ways to resolve this:
Allow via System Settings
- Open "System Settings" → "Privacy & Security"
- Scroll down to find the Clash Verge prompt
- Click "Open Anyway" and enter your password to confirm
Terminal Command Method
Open the Terminal app, paste and run the following command:
sudo xattr -r -d com.apple.quarantine /Applications/ClashVergeRev.app
Import Provider Subscription
Open Clash Verge Rev. Click "Profiles" in the left navigation bar:
- Click the "New" button
- Paste your provider\'s subscription URL into the input box
- (Optional) Enter a name to help distinguish multiple subscriptions
- Click "Import" and wait for the file to download
- Click the profile to set it as active
Select Node & Enable System Proxy
After selecting a node on the "Proxies" page, turn on the "System Proxy" switch in the top right:
- macOS will prompt for network permissions; click "OK" to authorize
- Clash Verge Rev will automatically configure macOS proxy settings, taking effect immediately for Safari, Chrome, and other browsers
- A Clash status icon will appear in the menu bar for quick node switching
google.com in your browser. If it loads, you\'re all set.Enable Enhanced Mode (TUN)
To proxy all traffic (including CLI tools and games that don\'t support system proxies), enable Enhanced Mode:
- Find "TUN Mode" or "Enhanced Mode" in Settings
- Enable it; you may be asked to install a system extension (confirm with your password)
- Allow the system extension in "Privacy & Security"
- Restart Clash Verge Rev for TUN mode to take effect
macOS Usage FAQ
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890Download & Install Clash for Android APK
Go to the Download Page or GitHub Releases for the latest APK:
- For modern phones (Post-2016): Choose
cfa-x.x.x-arm64-v8a-release.apk - For older devices: Choose
cfa-x.x.x-armeabi-v7a-release.apk - Unsure of architecture: Choose
cfa-x.x.x-universal-release.apk(Larger, but compatible with all devices)
Import Subscription Configuration
Open CFA and click "Profiles" in the bottom navigation:
- Click the "+" button in the top right and select "URL"
- Enter a name in the label field and paste your provider\'s link into the URL field
- Click the save icon in the top right, then click "Update" to download
- Once downloaded, click the dot next to the profile name to set it as active
Select Node & Start Proxy
- Click "Proxies" in the bottom navigation to view and select nodes in the policy groups
- Click the speed test icon next to a node to check latency; choose a low-latency node
- Return to the home screen and click the large "Stopped" button (Play icon)
- A VPN connection authorization prompt will appear; click "OK"
- The status will change to "Running," and a VPN icon will appear in the notification bar
Configure TUN Mode (Global Proxy)
CFA uses the Android VPN API by default, achieving global proxy effects similar to TUN without extra config. For finer control:
- Customize proxy mode (Rule/Global/Direct) in "Settings → Override"
- We recommend enabling "Bypass private networks" to keep local traffic off the proxy
- Set which apps use the proxy in "Settings → Access Control" (per-app filtering)
Android Usage FAQ
Switch to a non-CN Apple ID & Purchase
- Open the App Store, click your avatar in the top right, scroll to the bottom, and click "Sign Out"
- Sign in with a US or HK Apple ID (you can borrow one or register your own)
- Search for "Stash" or "Shadowrocket," purchase, and download
- After downloading, you can switch back to your original Apple ID; the purchased app will remain
Import Subscription in Stash
- Open Stash and click "Home" at the bottom
- Click "Add Configuration File" → "Download from URL"
- Paste your Clash subscription URL and click "Download"
- The profile will automatically become active once downloaded
- Select a node on the "Policy Groups" page or use Auto Select
Import Subscription in Shadowrocket
- Open Shadowrocket and click the "+" icon in the top right
- For "Type," select "Subscribe"
- Paste your provider\'s subscription URL and add a label
- Click "Done" in the top right and wait for the nodes to load
- Choose a low-latency node from the list
Start Proxy
After importing and selecting a node, toggle the switch next to "Not Connected" on the home screen:
- iOS will prompt "Shadowrocket Would Like to Add VPN Configurations"; click "Allow" and confirm with Face ID or your passcode
- The status will change to "Connected," and a VPN icon will appear in the status bar
- Verify: Visit google.com in Safari to ensure it\'s working correctly
iOS Usage FAQ
?flag=clash to the end of the URL.Download & Install Clash Verge Rev
Go to GitHub Releases and choose the installer for your distribution:
- AppImage (Recommended):
ClashVergeRev_x.x.x_amd64.AppImage– Universal for all distros, run without installation - Ubuntu / Debian:
ClashVergeRev_x.x.x_amd64.deb - Fedora / RHEL / openSUSE:
ClashVergeRev_x.x.x_x86_64.rpm - Arch Linux / Manjaro: Install via AUR (see command below)
sudo dpkg -i ClashVergeRev_x.x.x_amd64.deb
sudo rpm -i ClashVergeRev_x.x.x_x86_64.rpm
paru -S clash-verge-rev
# Or use yay
yay -S clash-verge-rev
Running with AppImage
AppImage files require execution permission before the first run:
# Add execute permission
chmod +x ClashVergeRev_x.x.x_amd64.AppImage
# Run
./ClashVergeRev_x.x.x_amd64.AppImage
sudo apt install libfuse2; for Fedora, run sudo dnf install fuse.Import Subscription Configuration
Operations are identical to the Windows and macOS versions:
- Open Clash Verge Rev and go to the "Profiles" page
- Click "New" and paste your provider\'s subscription URL
- Click "Import" and wait for the download to complete
- Click the profile to set it as active
Enable Proxy
Clash on Linux offers two proxy methods:
System Proxy (GNOME / KDE)
Enable "System Proxy" in Clash Verge Rev to automatically configure GNOME or KDE desktop settings.
Terminal Environment Variable Method
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
export all_proxy="socks5://127.0.0.1:7891"
You can also enable TUN Mode for global transparent proxying (requires root). Find the TUN option in settings and toggle it on.
Linux Usage FAQ
gnome-settings-daemon is installed; KDE users should check proxy settings in System Settings. Some distros require manual proxy configuration in network settings: host 127.0.0.1, port 7890.~/.config/autostart/clash-verge-rev.desktop file pointing to your AppImage path.WAYLAND_DISPLAY="" ./ClashVergeRev.AppImageAdvanced Clash Usage Tips
Master these tips to unlock powerful features and meet personalized proxy needs.
DNS Leak Prevention
Set enhanced-mode: fake-ip in the dns field of your YAML config, and configure DoH (https://8.8.8.8/dns-query) or DoT as a fallback DNS to prevent DNS queries from leaking your real IP.
dns:
enable: true
enhanced-mode: fake-ip
nameserver:
- 114.114.114.114
- 223.5.5.5
fallback:
- https://8.8.8.8/dns-query
- https://1.1.1.1/dns-query
Rule Provider Subscriptions
Use Rule Provider to subscribe to remote rule sets, keeping them automatically updated. Clash Meta supports multiple formats like DOMAIN and IPCIDR.
rule-providers:
reject:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
interval: 86400
Proxy Group Configuration
Implement advanced traffic scheduling with Proxy Groups: url-test for auto-selection of lowest latency nodes, fallback for auto-failover, and load-balance for multi-node load balancing.
proxy-groups:
- name: "Auto"
type: url-test
proxies: [Node-HK, Node-US, Node-JP]
url: http://www.gstatic.com/generate_204
interval: 300
External Control Panel (Dashboard)
Clash Meta features a built-in RESTful API for real-time traffic monitoring and node management via a web panel. Visit d.metacubex.one and enter your controller address (default 127.0.0.1:9090) and secret.
Usage Tutorial FAQ
A compilation of the most common configuration and usage issues to help you troubleshoot quickly.
ifconfig.me to see if the IP matches your proxy node\'s region. You can also monitor active connections in the Clash "Connections" tab.allow-lan: true in your config and ensure your firewall allows access to port 7890. Other devices can then point their HTTP/HTTPS proxy settings to your device\'s local IP (e.g., 192.168.1.100:7890).Free Clash Download – Start Configuring Now
Supports Windows, macOS, Linux, Android, and iOS. Completely free and open-source. Complete your setup in 5 minutes with our guide and experience high-speed intelligent proxying.