Clash Tutorials
Install · Subscription · Config · Advanced · FAQ
From download and installation to importing subscriptions, configuring rule splitting, and enabling TUN global proxy, master Clash on all platforms. Covers Clash Verge Rev, FlClash, and Mihomo core.
5-Minute Clash Quick Start
Whether you're on Windows, macOS, Android, or Linux, follow these 5 steps to complete your Clash setup and start using proxy services.
Download Client
Go to the Download Center. Choose Clash Verge Rev for Windows/macOS, or FlClash for Android.
Install & Launch
Double-click the installer to install. Once launched, the Clash icon will appear in the system tray or notification bar.
Import Subscription
Open the "Config / Subscription" page, paste your provider's subscription URL, and click import/update.
Select Proxy Node
Click "Speed Test" in the proxy panel and select a node with latency below 200ms.
Enable System Proxy
Toggle the "System Proxy" switch. Your browser will now access blocked sites via Clash.
Clash Installation by Platform
Choose your operating system to view detailed installation steps and recommended clients.
Clash Verge Rev · Windows Installation
Download Installer
Download Clash Verge Rev for Windows x64 (.exe) from the Download Center. Choose ARM64 for Qualcomm Snapdragon PCs.
Run Installer
Double-click the .exe file. If Windows SmartScreen appears, click "More Info → Run Anyway" and follow the prompts.
Install Service Mode (Recommended)
After launching, go to "Settings → System Settings → Service Mode" and click "Install" (requires admin rights). This unlocks TUN global proxy features.
Import Subscription
Click "Subscriptions" on the left → "+" button → paste URL → click "Import". Your node list will appear shortly.
Select Node & Enable Proxy
Switch to the "Proxies" page, click "⚡ Speed Test", and select a low-latency node. Finally, toggle "System Proxy" in the top right.
Clash Verge Rev · macOS Installation
Check Mac Chip Type
Apple Menu → "About This Mac": choose arm64 for Apple M1/M2/M3 chips; choose x64 for Intel processors.
Download & Install DMG
Open the .dmg file and drag the Clash Verge Rev icon into the "Applications" folder.
Bypass Gatekeeper
When opening for the first time, Right-click the icon → select "Open" → click "Open" again to bypass macOS Gatekeeper verification.
Import Subscription
Click "Subscriptions" → "+" → paste URL → click "Import". Your nodes will be listed under the subscription.
Select Node & Enable Proxy
Select a low-latency node in "Proxies" and toggle "System Proxy". All system-proxy-aware apps (Safari, Chrome, etc.) will use the proxy.
FlClash · Android Installation
Download APK
Download the FlClash APK. Most Android phones should use the Universal version; flagships after 2018 can use arm64-v8a for better performance.
Allow Unknown Sources
Android blocks apps outside Google Play. Locate the APK file and select "Allow from this source" when prompted.
Install & Open FlClash
Launch FlClash after installation; a quick guide will help you with the basic setup.
Add Subscription Config
Click "Configs" in the left menu → "+" in the top right → select "Import from URL" → paste link → click "Save".
Start & Grant VPN Permissions
Return to the home page, select a proxy node, and click the "Start" button in the bottom right. Click "OK" when the system prompts for VPN connection authorization.
Clash Verge Rev · Linux Installation
Choose the Right Package Format
Clash Verge Rev offers multiple Linux formats: .deb (Debian/Ubuntu), .rpm (Fedora/openSUSE), and .AppImage (Universal). Use the one matching your distro; choose .AppImage if unsure.
Install Package
Debian / Ubuntu (.deb):
sudo dpkg -i clash-verge-rev_*.deb
sudo apt-get install -f
AppImage (Universal):
chmod +x clash-verge-rev_*.AppImage
./clash-verge-rev_*.AppImage
Install Service Mode (Required for TUN)
After launching, go to "Settings → System Settings → Service Mode" and click "Install". This requires sudo; enter your password in the prompt. This unlocks TUN global transparent proxy.
sudo apt install policykit-1 and try again.
Import Subscription
Click "Subscriptions" on the left → "+" → paste URL → click "Import". Wait for the nodes to load.
Select Node & Enable Proxy
Run a speed test in "Proxies", select a low-latency node, and toggle "System Proxy". For terminal or system-wide traffic, also enable TUN Mode.
GUI clients (Clash Verge Rev, FlClash) have this built-in. This guide is for advanced users running core on servers, routers, or headless Linux.
Mihomo Core · Linux Server / Headless Installation
Download Mihomo Binary
Visit Mihomo GitHub Releases to download the binary for your architecture. Common server versions:
mihomo-linux-amd64-*.gz(x86_64 Servers)mihomo-linux-arm64-*.gz(ARM Servers / Raspberry Pi)
Extract & Grant Permissions
gunzip mihomo-linux-amd64-*.gz
mv mihomo-linux-amd64-* /usr/local/bin/mihomo
chmod +x /usr/local/bin/mihomo
Create Config Directory & Add config.yaml
mkdir -p ~/.config/mihomo
# Place your config.yaml in this directory.
cp config.yaml ~/.config/mihomo/config.yaml
The config format is identical to GUI clients; you can reuse your provider's YAML content.
Run Core / Setup systemd
Temporary Run:
mihomo -d ~/.config/mihomo
Configure Autostart (systemd): Save the following to /etc/systemd/system/mihomo.service
[Unit]
Description=Mihomo Proxy Service
After=network.target
[Service]
ExecStart=/usr/local/bin/mihomo -d /root/.config/mihomo
Restart=on-failure
[Install]
WantedBy=multi-user.target
systemctl enable --now mihomo
Manage via Web Dashboard (Optional)
Enable external controllers in config.yaml to manage nodes via Yacd or MetaCubeX dashboards in your browser:
external-controller: 0.0.0.0:9090
secret: your-api-secret # Recommended: Set an access secret.
After launching, visit http://<Server-IP>:9090/ui to access the dashboard.
The most established proxy tool on iOS. Supports SS, VMess, Trojan, VLESS, and more. Compatible with Clash subscriptions. Requires a US Apple ID.
A powerful advanced proxy tool supporting custom JS scripts and complex rules. Also compatible with Clash subscriptions. Ideal for pro users on iOS.
Clash Client Tutorials
Choose the client you use to view its download, installation, subscription import, node selection, proxy activation, and connection verification guide.
How to Add Subscriptions in Clash
A Subscription URL is an online config link from your proxy provider. Clash uses it to automatically fetch and update all available nodes.
Get Subscription URL
Log in to your provider's dashboard, find "Clash Subscription", and copy the full URL starting with https://.
Open Config/Subscription Page
Locate "Configs" (Clash Verge Rev) or "Subscriptions" (FlClash) in the sidebar.
Add New Subscription
Click "+" or "New" in the top right, paste the copied URL, and add a recognizable name.
Click Import & Wait for Update
Click "Import" or "Save". Clash will fetch and download the node configuration. Wait for the list to populate.
Select Config & Speed Test
Switch to the new config, go to "Proxies", click "Speed Test", select a low-latency node, and enable system proxy.
https://. Try enabling an existing proxy before importing.
Clash Config Deep Dive
YAML Format Guide
Clash uses YAML files. Understanding core fields helps you customize proxy behavior, from ports to split rules.
Mixed Proxy Port
Listens for both HTTP and SOCKS5. Default is 7890; can be changed in settings to avoid conflicts.
Node List
Defines all proxy nodes (SS, VMess, Trojan, VLESS, Hysteria2, TUIC, etc.). Automatically populated via subscription.
Proxy Groups
Groups multiple nodes for strategies like url-test (auto-select), fallback, or load-balance.
Rule-based Splitting
Directs traffic based on Domain, IP, or GeoIP. The core of "Direct for Local, Proxy for Global."
DNS Configuration
Configures local and international DNS groups to prevent pollution and ensure accurate resolution. Essential for TUN mode.
Advanced Features Guide
Master these advanced features to maximize Clash efficiency and flexibility.
TUN Mode (Global Transparent Proxy)
System proxies only work for proxy-aware apps. TUN mode uses a virtual NIC to capture all system traffic, perfect for games and non-proxy apps.
- Clash Verge Rev: Install Service Mode first, then enable in "Settings → TUN Mode."
- FlClash (Android): VPN mode is global by default; no extra setup needed.
- We recommend configuring DNS alongside TUN to prevent leaks and protect privacy.
Proxy Group Strategies
Group nodes into different strategies for intelligent switching.
- url-test (Auto-select): Periodically tests speed and switches to the fastest node.
- fallback: Automatically switches to a backup node if the primary one fails.
- load-balance: Distributes traffic across multiple nodes to increase total bandwidth.
- select: Manually specify a node in the proxy panel.
Rule-based Splitting (Direct for Local, Proxy for Global)
Precisely control traffic flow via the rule engine, enabling direct connections for local sites and proxies for international services to balance speed and privacy.
- DOMAIN-SUFFIX: Matches domain suffixes, e.g.,
.google.com. - IP-CIDR: Matches IP ranges, used for local IP direct rules.
- GEOIP,CN,DIRECT: Automatically connects Chinese IPs directly while others use the proxy.
- RULE-SET: References community-maintained rulesets (e.g., ACL4SSR).
Rule Provider (Online Rulesets)
Reference externally hosted ruleset files via rule-providers to avoid manual maintenance. One config for a constantly updated rule list.
- Supports YAML/text rule files with customizable auto-update intervals.
- Recommended community rulesets: Loyalsoldier/clash-rules, ACL4SSR.
- Reference multiple rulesets simultaneously and match them in priority order.
DNS Anti-Pollution Config
Proper DNS configuration prevents pollution and leaks, ensuring accurate resolution—crucial for TUN mode.
- Use local DNS (e.g., 223.5.5.5, 119.29.29.29) for domestic domains.
- Use encrypted DNS (e.g., 8.8.8.8, 1.1.1.1) for international domains.
- Enable
fake-ipmode to accelerate DNS response times. - Use with
nameserver-policyfor rule-based grouped resolution.
External Controller & Monitoring
Clash features a built-in RESTful API for real-time traffic monitoring, node switching, and connection management via Web dashboards.
- Default controller port is 9090, configurable via
external-controller. - Supports third-party Web dashboards like Yacd and MetaCubeX.
- Remotely manage Clash cores deployed on routers or servers.
- View real-time rule matching for every connection, perfect for debugging.
Clash FAQ & Troubleshooting
A curated list of common installation, configuration, and connection issues with their solutions.
Why can't I access the internet after installing Clash?
Please follow these troubleshooting steps:
- Confirm that "System Proxy" is toggled ON in the client.
- Check if node latency is normal (run a speed test in the proxy panel).
- Chrome users can try the SwitchyOmega extension, setting the HTTP proxy manually to
127.0.0.1:7890. - If system proxy doesn't work, try enabling TUN Mode for global traffic.
Subscription import failed or zero nodes found?
Common causes and solutions:
- Subscription expired: log in to your provider's dashboard for a new link.
- Network error: enable an existing proxy or VPN before importing.
- Incomplete URL: ensure it starts with
https://and has no extra spaces. - Incompatible format: ask your provider if they offer Clash-compatible subscriptions.
What is "Service Mode" in Clash Verge Rev? Is it safe?
Service Mode is a system component for Clash Verge Rev that enables TUN Global Transparent Proxy without requiring admin rights every time. It's an official feature and completely safe.
You'll need to enter your admin password during installation, similar to installing a driver. You can skip this if you only need the basic system proxy mode.
How to enable TUN Mode for games and desktop apps?
Clash Verge Rev (Windows / macOS):
- First, install Service Mode in "Settings → System Settings" (requires admin rights).
- Once installed, find "TUN Mode" in "Settings" and toggle it ON.
- All system traffic, including games and non-proxy apps, will now go through Clash.
FlClash (Android): VPN mode is global by default; no additional setup is required.
How to fix "Port 7890 is already in use"?
This usually happens because a previous Clash process didn't exit correctly or another app is using the port. Solutions:
- Fully exit Clash and restart.
- Go to "Settings → Ports" and change the Mixed Port to an unused one (e.g.,
7891). - Remember to update your browser extension (like SwitchyOmega) with the new port number.
How to set Clash to autostart on boot?
Clash Verge Rev (Windows): Toggle "Start on Boot" in "Settings → System Settings".
Clash Verge Rev (macOS): Toggle "Start on Boot" in "Settings → System Settings" to add it to Login Items.
FlClash (Android): Enable "Autostart" in system settings and disable battery optimization for FlClash to prevent it from being killed in the background.
Troubleshooting high latency or frequent disconnections?
- Run "Speed Test" and switch to a node with latency below 200ms.
- Update your subscription—your provider may have updated node addresses.
- Congestion during peak hours (8-11 PM) is normal; try switching regions.
- Switch protocols—Hysteria2 and TUIC perform better in high packet-loss environments.
- Check your local network: ensure stable Wi-Fi or test with a wired connection.
Difference between a Config File and a Subscription Link?
A Subscription Link is a remote URL hosted by your provider. Clash fetches and updates it automatically—ideal for most users.
A Local Config is a YAML file on your machine that you can manually edit for custom rules and strategies—best for advanced users.
Both use the same YAML format; a subscription link is essentially a remote YAML config.
Are there any free Clash clients for iOS?
There are currently no fully free, feature-complete Clash-compatible clients on iOS. Development and maintenance costs mean the top choices are paid:
- Stash: ¥30 (CN Store), feature-rich and Clash-compatible.
- Shadowrocket: $2.99 (US Store), the most popular proxy tool.
A one-time purchase provides lifetime access, making them great value.
Android security warning when installing FlClash APK?
This is a standard Android warning for apps outside Google Play, not a real security threat. Steps:
- Click "Install Anyway" if Google Play Protect warns you.
- Or enable "Install unknown apps" for your file manager/browser in system settings.
FlClash is fully open-source on GitHub; the code is public and contains no malicious content.
Haven't downloaded Clash yet?
Free and open-source. Supports Windows, macOS, Android, iOS, Linux, and core engine deployment. Download and start now.