Ultimate Clash YAML Guide: Nodes, Groups, and Rules Explained
Learn the structure of Clash config files from scratch. Includes detailed breakdowns of proxies, groups, and rules with real-world examples.
Clash Routing & Subscription Setup
Rule-based Routing
Clash supports multi-dimensional rule matching (DOMAIN, GEOIP, IP-CIDR) combined with Proxy Groups for auto-selection, failover, and load balancing. Enjoy low-latency direct connections for domestic traffic and stable proxies for overseas services—perfect for developers, remote collaboration, and cross-border browsing.
Why Developers Trust Clash
Global Cumulative Downloads
Covering 150+ countries and regions
Supported Proxy Protocols
Full coverage for Shadowsocks, VMess, Trojan, VLESS, and more
Cross-Platform Clients
Windows, macOS, Android, iOS, and Linux
Kernel Stability
Long-term verification by millions of users in production environments
Core Feature Analysis
Clash features a powerful matching engine supporting DOMAIN, DOMAIN-SUFFIX, IP-CIDR, and GEOIP. By keeping domestic traffic direct and routing overseas traffic through proxies, it ensures low latency and high speed only where needed.
Fully compatible with DOMAIN, IP-CIDR, GEOIP, and MATCH rule types
View Routing Rules DocumentationUse Proxy Groups to automatically select the lowest latency node, switch to backups during failures, or balance load across multiple nodes. With url-test, your nodes stay optimal without manual intervention.
Supports url-test, fallback, load-balance, and select group types
View Policy Group DocumentationSupporting Base64, Clash YAML, and SIP008 formats. Just paste your airport URL to pull all node configs. Auto-updates ensure you're always connected without touching a single YAML file.
Compatible with all mainstream airport formats; supports one-click import
View Subscription GuideClash (Mihomo core) supports almost every mainstream protocol: Shadowsocks, VMess, Trojan, VLESS, Hysteria2, TUIC, Reality, SSR, and standard HTTP/HTTPS/SOCKS5. One client to rule them all.
Regularly updated to support the latest protocols from the Mihomo community
Download Clash Client NowClash features a built-in RESTful API and Web dashboard. Monitor all connections, traffic stats, and node latency in your browser. Fully compatible with external dashboards like Yacd and MetaCubeX.
Compatible with Yacd, MetaCubeX, and other open-source Web consoles
View API & Console DocumentationFrom ultra-fast proxy mechanisms to complex routing solutions, we've got you covered.
Setup in 3 Minutes
Whether you're a Windows beginner or a Linux power user, follow these steps to install Clash and start browsing freely.
Pick the installer for your device (Windows, macOS, Android, iOS, or Linux) and complete the installation.
Paste your airport URL into the client's config page to pull all nodes, or import a YAML file directly.
Choose a policy group, enable System Proxy or TUN Mode, and enjoy a stable, high-speed connection.
Modernize your proxy management with custom YAML configurations, saving time and simplifying complex setups.
Common FAQs
Clash is an open-source, rule-based proxy client supporting SS, VMess, and Trojan. Unlike traditional VPNs, Clash excels in granular control—routing domestic traffic directly while using nodes for overseas sites. This routing-on-demand results in faster speeds, lower resource use, and far more flexible configuration.
Clash supports all five major platforms: Windows 10/11 (x64/ARM64), macOS 10.13+ (Intel/Silicon), Android 5.0+, iOS 12+, and all major Linux distros. We provide ready-to-use installers for every environment.
In the Config page, paste your airport's subscription URL and tap download. You can set it to auto-refresh (e.g., every 24h). Many providers also support one-click import via the clash:// protocol.
The Mihomo core supports Shadowsocks, SSR, VMess, VLESS, Trojan, Hysteria2, TUIC, Reality, HTTP/HTTPS, SOCKS5, Snell, and Wireguard. One client can handle almost any modern airport configuration.
Original Clash development stopped in 2023. Mihomo (formerly Clash Meta) is the active community branch that added VLESS, Hysteria2, Reality, and other new protocols. We recommend using Mihomo-based clients like Clash Verge Rev for the best support.
TUN Mode creates a virtual network card to proxy all TCP/UDP traffic, including apps that don't respect system settings (like games, Steam, or some CLI tools). Use it for a true "global" proxy experience. Note: requires Admin/Root privileges.
Tutorials & News
Learn the structure of Clash config files from scratch. Includes detailed breakdowns of proxies, groups, and rules with real-world examples.
A visual guide to downloading, installing, and importing subscriptions on Windows, featuring common error fixes.
Step-by-step instructions for ClashForAndroid installation and subscription setup for all major Android brands.