YAML parse error
Almost always tabs used for indentation or misaligned nesting. YAML only accepts spaces; realign the lines and retry.
Config explained
What base settings, proxies, proxy-groups, and rules each cover in the YAML profile, before you edit one.
Content reviewed · Nov 3, 2026
People who want to read a YAML profile, or need to compare settings while troubleshooting.
The top level has four common parts: the proxies list, proxy-groups, rules, and base settings such as dns and mixed-port.
proxies define nodes: each entry lists the protocol type, server address, port, and credentials. Subscriptions generate this section automatically, so you rarely hand-write it.
proxy-groups define groups: select for manual choice, url-test for lowest latency, fallback for failover. Groups bundle nodes into entry points that rules reference.
rules decide where traffic goes: matched top to bottom, first hit wins. A common layout allows LAN and direct domains first, splits by GEOIP, and ends with MATCH pointing at a group.
Back up before editing: indentation is the classic YAML trap. After editing, use the client’s profile validation or start with a minimal profile to verify.
Almost always tabs used for indentation or misaligned nesting. YAML only accepts spaces; realign the lines and retry.
Confirm you edited the profile that is actually selected. Subscription updates overwrite manual edits with the provider’s version, so check how your subscription refreshes.
For the protocol names used in rules, read the protocols guide.
Read next:What is Clash Meta?