Cross-Platform Installation
& Configuration Tutorials
From installation to subscription import and TUN mode setup, we'll teach you step-by-step how to get started with Clash on Windows, macOS, Android, iOS, and Linux.
Windows Installation Tutorial
Clash client installation and configuration guide for Windows 10 / 11. We recommend Clash Verge Rev or FlClash, both of which are actively maintained and support TUN global proxy and subscription management.
Find Clash Verge Rev on the download page and choose the version matching your computer's architecture:
· x64 (Recommended): For the vast majority of Windows PCs with Intel / AMD processors
· ARM64: Only for Copilot+ PCs powered by Qualcomm Snapdragon processors (e.g., Surface Pro X)
Double-click the downloaded .exe installer and follow the wizard's "Next" prompts to complete the installation. Once finished, the program will launch automatically, and its icon will appear in the system tray (bottom right).
After launching Clash Verge Rev, configure your subscription:
1. Click the "Profiles" menu on the left.
2. Paste your Clash subscription link into the top input box.
3. Click the "Import" button and wait for the configuration file to be parsed.
4. Click the new profile card to set it to the Active state (the card border will turn blue).
1. Click the "Proxies" menu on the left to see available nodes.
2. Select a node within a strategy group, or select a single node directly in "Global" mode.
3. Return to the home page and turn on the "System Proxy" switch.
A system proxy only handles applications like browsers that support proxy settings. To proxy all programs (including command-line tools, game clients, etc.), enable TUN Mode:
1. Click "Settings" on the left.
2. Find the "TUN Mode" option and click to enable.
3. A system UAC request will pop up; click "Yes" to authorize (TUN requires administrator privileges to create a virtual network interface).
Get the FlClash Windows x64 version (.exe installer) from the download page, double-click to run, and follow the prompts to install. A shortcut will appear on your desktop; double-click it to launch.
1. Launch FlClash and click the "Profiles" tab or the "+" icon at the bottom left.
2. Select "Import from URL."
3. Paste your subscription link, click "Confirm," and wait for the download to complete.
4. Click the profile to activate it.
Go to the "Proxies" page, select an available node within a strategy group, and then click the "Enable" switch at the top or top right. FlClash will automatically configure the Windows system proxy.
Download the Clash Nyanpasu Windows x64 installer and double-click the .exe to install. On the first run, the program will automatically download the required kernel files (internet connection required).
Go to "Settings → Kernel" to switch between:
· Clash.Meta (Recommended): Latest features and widest protocol support
· Clash Premium: Better compatibility
· Clash.rs: Rust implementation for higher performance
On the "Profiles" page, paste your subscription link to import. Once the profile is active, turn on the system proxy switch on the home page.
Run the downloaded Setup.exe to install. Once launched, the program will appear in the system tray.
Click the tray icon to open the interface, go to the "Profiles" tab, paste your subscription link into the URL box, and press Enter to download. Click the profile name to activate it after a successful download.
On the "General" tab, turn on the "System Proxy" switch. You can also switch to "Rule" mode on the "Proxies" page to automatically route domestic and international traffic according to rules.
macOS Installation Tutorial
Clash client installation and configuration guide for macOS, supporting both Apple Silicon (M-series chips) and Intel architectures.
· Apple Silicon (Recommended): For Macs from 2020 and later with M1, M2, M3, or M4 chips
· Intel x64: For Macs with Intel processors from 2019 and earlier
Double-click the downloaded .dmg file and drag the Clash Verge Rev icon into the Applications folder in the popup window. After dragging, eject the disk image, find the app in Launchpad or /Applications, and double-click to launch.
When first opened, macOS might say "cannot be opened because the developer cannot be verified." To fix this:
· Method 1: Right-click the app icon → select "Open" → click "Open" again in the dialog.
· Method 2: Go to System Settings → Privacy & Security → find the blocked app in the Security section → click "Open Anyway."
1. Click "Profiles" on the left.
2. Paste your subscription link into the top URL input box and click "Download."
3. Click the imported profile card to activate it.
Turn on the "System Proxy" switch on the home page, and Clash Verge Rev will automatically configure your macOS network proxy settings. It may request network setting permissions on the first run; click "OK" to authorize.
Enable it in "Settings → TUN Mode." macOS will prompt you to install a Helper Tool; enter your system password to authorize. TUN Mode can take over network traffic for all apps, including terminal tools, for true global routing.
Choose the Apple Silicon or Intel .dmg version based on your Mac's chip type and drag the app into the Applications folder.
As with Clash Verge Rev, right-click the app → "Open" to bypass Gatekeeper restrictions.
Go to the "Profiles" page and import your subscription via URL. Once active, click the "Enable" switch on the main interface, and FlClash will automatically set the system proxy.
Download ClashX.Meta.zip, double-click to unzip, and drag ClashX Meta.app to the /Applications folder.
Right-click the app → "Open" to launch ClashX Meta. On the first run, it will request to install a Helper Tool; enter your system password to grant permission to modify network settings.
Click the ClashX Meta icon (the cat icon) in the macOS menu bar and select "Config → Remote Config → Manage." In the popup window, click "Add," paste your subscription link, and click "OK" to download and activate the configuration.
Click the menu bar icon and enable "Set as System Proxy." You can select "Rule" mode in "Proxy Mode" for intelligent routing.
Android Installation Tutorial
Install APK directly without Google Play. Enable "Allow installation from unknown sources" in system settings before installing.
· arm64 (Recommended): For the vast majority of Android phones released after 2016
· armeabi-v7a: For older devices released before 2016
Since the APK is not from Google Play, you need to manually enable installation permissions:
· Android 8+: Settings → Apps → Special app access → Install unknown apps → find "File Manager" or "Browser" and enable permission.
· OnePlus / Xiaomi / Huawei, etc.: The system will automatically show a prompt during installation; follow it to enable the permission.
Find the downloaded APK file in your file manager and tap to install. Once finished, find FlClash in your app drawer and open it.
After opening FlClash:
1. Tap the "Profiles" tab at the bottom.
2. Tap the "+" in the top right → select "Import from URL."
3. Paste your Clash subscription link and tap "Confirm."
4. Wait for the download to complete, then tap the profile to activate it.
1. Go to the "Proxies" page and select a node.
2. Tap the "Enable" button on the home page.
3. Android will prompt a VPN connection request; tap "OK" to authorize.
4. A VPN icon will appear in the status bar, and the proxy is successfully enabled.
· arm64-v8a: For most modern Android phones (Recommended)
· armeabi-v7a: For 32-bit older devices
· Universal: Compatible with all architectures, larger file size
As in step 2 for FlClash, enable the "Install unknown apps" permission in system settings and then install the APK.
Open Clash Meta, tap "Profiles" → "New Profile → Import from URL," then paste your subscription link to download. After activating the profile, tap "Enable" on the home page and authorize the VPN connection.
Download the Universal APK, enable unknown sources permission, and install.
Open Surfboard, go to "Profiles" → "+" → "Download from URL," and paste your Clash subscription link. Surfboard fully supports the Clash YAML format without needing conversion.
After enabling the VPN connection, you can view all HTTP/HTTPS traffic in real-time on the "Requests" tab, which is convenient for debugging and troubleshooting connection issues.
iOS Tutorial
iPhone / iPad users need to install proxy clients compatible with the Clash configuration format from the App Store. The following apps fully support Clash subscription links.
Why is there no direct APK download for iOS?
Due to Apple's iOS security mechanisms, iPhone / iPad cannot install applications from sources other than the App Store. iOS users must use a non-mainland China Apple ID to log in to the App Store and purchase the following proxy clients. These apps all support importing standard Clash subscription links and YAML rule sets directly, with no extra configuration needed.
- Purchase and download Stash from the App Store using a non-mainland China Apple ID
- Open Stash and go to "Profiles"
- Tap "+" → select "Download from URL," then paste your Clash subscription link
- Tap the downloaded profile to activate it
- Return to the home page, tap "Enable," and when iOS prompts for VPN authorization, tap "Allow"
- Download Shadowrocket from the App Store
- Purchase and download Shadowrocket from the App Store using a non-mainland China Apple ID
- Open Shadowrocket and tap the "+" in the top right corner
- Select "Type → Subscribe"
- Paste your Clash subscription link into the URL field and tap "Done"
- Subscription nodes will be automatically parsed and imported
- Download Quantumult X from the App Store
- Purchase and download Quantumult X from the App Store using a non-mainland China Apple ID
- Open Quantumult X and tap "⚙️ Settings" in the bottom right
- Under the "Server" section, select "Subscription"
- Paste your Clash subscription link to import nodes
- Tap "Policy" to configure routing rules
- Return to the home page and tap the icon to enable the VPN; it will take effect after authorization.
Linux Installation Tutorial
Applicable to major Linux distributions like Ubuntu, Debian, Fedora, and CentOS, with both .deb and .rpm package formats available.
· Ubuntu / Debian / Linux Mint: Download the .deb package (amd64 or arm64)
· Fedora / CentOS / RHEL / openSUSE: Download the .rpm package (x86_64)
Open a terminal and use your package manager to install:
sudo dpkg -i clash-verge-rev_linux_amd64.deb
# Fedora / CentOS / RHEL — install .rpm
sudo rpm -i clash-verge-rev_linux_x86_64.rpm
Once installed, find Clash Verge Rev in your application menu (GNOME, KDE, etc.) and click to launch. Alternatively, run via terminal:
The steps are identical to the Windows version: Go to "Profiles" → paste your subscription link to download → activate the profile → enable System Proxy.
Enable it in "Settings → TUN Mode." On Linux, you may need to grant permissions or run the helper process as root. Some distributions require the iproute2 dependency:
sudo apt install iproute2
Launch FlClash from your app menu; the steps are the same as the Windows/macOS versions—go to "Profiles" to import your subscription URL, and enable the proxy after activation.
Mihomo Core Engine Deployment Tutorial
Command-line deployment guide for the Mihomo (formerly Clash.Meta) kernel on Linux servers, Docker, software routers (OpenWrt), and headless environments. Regular PC users can use a graphical client and do not need to read this section.
Choose the version matching your server's architecture on the download page:
· amd64: x86_64 architecture (most VPS / cloud servers)
· arm64: ARM64 architecture (Raspberry Pi 4/5, some ARM VPS)
· armv7: ARMv7 older devices
· mips-softfloat: Some MIPS architecture routers
wget -O mihomo.gz https://clashsky.com/assets/clients/core/mihomo-linux-amd64.gz
gunzip mihomo.gz
# Grant execute permission
chmod +x mihomo
# Move to system path (optional)
sudo mv mihomo /usr/local/bin/mihomo
mkdir -p ~/.config/mihomo
# Create a minimal config.yaml
cat > ~/.config/mihomo/config.yaml << 'EOF'
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
external-controller: 127.0.0.1:9090
# Add your proxy-providers or proxies below
proxy-providers:
my-sub:
type: http
url: "https://your-subscription-url"
interval: 86400
health-check:
enable: true
url: https://www.gstatic.com/generate_204
interval: 300
EOF
https://your-subscription-url with your actual Clash subscription link.
mihomo -d ~/.config/mihomo
Once started, Mihomo listens on port 7890 (HTTP/SOCKS5 mixed proxy). The Web management interface is accessible via http://127.0.0.1:9090/ui (requires a Dashboard).
sudo cat > /etc/systemd/system/mihomo.service << 'EOF'
[Unit]
Description=Mihomo Proxy Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/mihomo -d /root/.config/mihomo
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
# Enable and start the service
sudo systemctl daemon-reload
sudo systemctl enable mihomo
sudo systemctl start mihomo
# Check service status
sudo systemctl status mihomo
Create a local config directory and add the config.yaml file (see step 3 of the Linux Server section for content):
--name mihomo \
--network host \
--restart unless-stopped \
-v ~/mihomo/config:/root/.config/mihomo \
metacubex/mihomo:latest \
-d /root/.config/mihomo
--network host to let the container use the host network directly, facilitating TUN mode and transparent proxy configuration.
docker logs mihomo
# Check running status
docker ps | grep mihomo
Log in to OpenWrt via SSH and check the architecture info:
# mipsel / mips / arm / aarch64 / x86_64
· mipsel / mips: Download mips-softfloat version
· arm / armv7: Download armv7 version
· aarch64: Download arm64 version
· x86_64: Download amd64 version
scp mihomo-linux-mips-softfloat.gz [email protected]:/tmp/
# SSH into router, extract and install
ssh [email protected]
gunzip /tmp/mihomo-linux-mips-softfloat.gz
chmod +x /tmp/mihomo-linux-mips-softfloat
mv /tmp/mihomo-linux-mips-softfloat /usr/bin/mihomo
Create /etc/mihomo/config.yaml on your router, fill in the proxy-provider configuration (refer to the Linux Server section), and then start:
/etc/init.d/ mechanism or use an integrated solution like OpenClash to simplify the setup.
FREE DOWNLOAD
ALL PLATFORMS.
Go to the download page to get installers for all platforms—Windows, macOS, Android, iOS, Linux, and the Mihomo core engine. All are open-source and free.
Go to Download Clash Client