One YAML file,
all your routing rules.
Clash describes nodes, policy groups, and routing rules in one clean, readable config file. Edit a line, reload, and it takes effect—no restart needed.
- Policy Groups: Organize nodes into groups for manual selection, auto speed tests, or failover.
- Rule Engine: Match every connection by domain, IP range, GEOIP, or process.
- Subscriptions & Providers: Pull nodes and rule sets remotely with automatic scheduled updates.
mixed-port: 7890
mode: rule
proxies:
- name: "Hong Kong 01"
type: ss
server: hk.example.com
port: 8443
cipher: aes-256-gcm
proxy-groups:
- name: "PROXY"
type: select
proxies: ["Hong Kong 01", "DIRECT"]
rules:
- DOMAIN-SUFFIX,google.com,PROXY
- GEOIP,US,DIRECT
- MATCH,PROXY