User Guide / Rules & Routing

rule-providers: community-maintained rule sets

Rules & Routing · Updated 2026-01-12 · ~2 min read

Writing rules one by one does not scale — routing lists for common sites run to tens of thousands of entries. rule-providers externalizes rules into remote files, community-maintained and auto-updating, referenced from your profile:

rule-providers:
  reject-ads:
    type: http
    behavior: domain
    url: "https://example.com/rules/reject.yaml"
    path: ./ruleset/reject.yaml
    interval: 86400

rules:
  - RULE-SET,reject-ads,REJECT
  - GEOIP,CN,DIRECT
  - MATCH,Proxy

Key fields

Popular community sets cover ad blocking, domestic domains, streaming services and Telegram IP ranges. Note that RULE-SET is a Premium-core feature — the core bundled with Clash for Windows is Premium, so it just works. Combined with Mixin, rule sets let you build a fully custom routing scheme without touching the subscription.