Clash Rules is a rule set collection for Clash Premium, a proxy routing framework that works with Clash Premium-based GUI clients including ClashX Pro, Clash for Windows, Clash Meta for Android, and OpenClash.
The project solves the problem of configuring traffic routing and filtering in Clash Premium by providing pre-built rule sets that classify domains and IP addresses for different purposes. It aggregates data from multiple upstream sources including v2ray-rules-dat, domain-list-community, dnsmasq-china-list, and china_ip_list, then generates rule sets compatible with Clash Premium's RULE-SET format. The tool automatically rebuilds these rules daily to keep them current.
Anyone adopting this project should understand that it specifically requires Clash Premium, not the standard Clash version, because the rules leverage Premium's TUN mode for intercepting all TCP and UDP traffic on a device. The project suits users who need pre-configured routing rules for common scenarios like blocking ads, handling geolocation-based routing, or managing traffic to Chinese mainland services. It is compatible with multiple Clash GUI implementations across different platforms, making it broadly applicable to users of those clients.
The project maintains an active build schedule with automated daily rule generation. The tool draws from established upstream rule sources rather than creating rules from scratch, integrating data from multiple community-maintained lists. The project provides installation packages and executables in a separate branch due to upstream repository changes in the ecosystem.