Configuration reference
Clash Glossary
Find configuration fields by their names in the interface. Compare client menus with YAML settings and log terminology, and distinguish protocol types, traffic entry points, and outbound selection.
Proxy protocols
Start with the node's type field. The protocol determines how the proxy connection is established; a node label or proxy group name is no substitute.
- Shadowsocks(SS)
- Shadowsocks is a proxy protocol that uses symmetric encryption. Its node
typeis usuallyss. If a connection fails after import, check the server address and port, then make sure both sides use the same encryption method. Entries labeledSSRuse a different protocol and cannot be imported by simply changing the name.
- VMess
- VMess comes from the V2Ray ecosystem and typically identifies users with a UUID. A valid UUID alone does not guarantee a connection; the transport and its parameters must also match the server. Some authentication steps depend on the system clock, so check that the device time is synchronized if you see related errors.
- VLESS
- VLESS and VMess can both use UUIDs, but they are not interchangeable. The node type is
vless; the transport and connection security settings are specified by their respective fields. To check whether a client can import a node, verify that its core supports VLESS and the required settings.
- Hysteria2
- Hysteria2 is based on QUIC and requires a working UDP path between the client and server. In mihomo configurations that support Hysteria2, set the node type to
hysteria2. If TCP nodes work on the same device but Hysteria2 nodes keep timing out, check UDP connectivity separately.
Cores and clients
When troubleshooting compatibility, note the client name and core version separately. The installer version alone usually does not tell you which configuration fields the core supports.
- Clash client
- A client is an app for importing configurations, choosing proxy groups, switching modes, and viewing logs. Different apps may use different labels for the same setting, or require some options to be edited in YAML. When moving a configuration to another client, start by comparing the configuration, proxy, and log screens.
- mihomo
- mihomo is the proxy core from the Clash.Meta project. It parses configurations, matches rules, handles DNS, and establishes outbound connections. The client interface is only the control surface, not the core itself. If an app shows a separate core version, use the version actually running to determine field support.
- Clash.Meta
- Clash.Meta is a name previously used by the mihomo project, and it still appears in older guides and client documentation. An app with Meta in its name does not necessarily include the same core version used in current examples. When following an older guide, check whether its fields are still supported before relying on screenshots.
- Configuration compatibility
- Configuration compatibility means the target core can read fields and apply them as expected. A successful YAML parse only means the document structure is readable; an import success message does not mean every setting is enabled. When migrating, check node types, rule sources, and DNS behavior separately instead of relying on the configuration name appearing in a list.
Configuration fields
Field names are shown exactly as they appear in the configuration. If validation fails, check the key spelling and nesting level first, then verify the value's type.
- YAML
- YAML is a text format that uses indentation to represent hierarchy. It is commonly used to organize nodes, proxy groups, rules, and DNS settings. Use spaces for indentation and align items at the same level. If parsing fails, check not only the reported line but also the colon on the previous line and the indentation of nearby list items; the original mistake may be elsewhere.
proxiesproxiesdeclares proxy nodes directly in a configuration. Each entry typically includes a name, type, server address, and port. Under a proxy group'sproxiesfield, the same key lists the names of available outbounds rather than defining servers again. If you rename a node, update its references too.
mixed-port(mixed port)- The mixed port is a local listener on the core that accepts both HTTP proxy requests and SOCKS5 connections on the same port. It is separate from a node's remote server port. If you see an “address already in use” error, check whether another client instance is listening on that port locally before changing remote node settings.
proxy-providers(proxy providers)- Proxy providers keep node lists separate from the main configuration, allowing the core to load them from a remote URL or local file. Proxy groups reference a provider by name with
use, rather than listing every node individually. A provider file containing only nodes serves a different purpose from a full configuration with rules and proxy groups, so they are not interchangeable.
Routing and rules
Rules determine where a connection goes; proxy groups choose among available outbounds. These decisions happen in sequence.
- Rule-based routing
- In rule mode, the core checks conditions such as domain names and destination IPs in list order. The first matching rule usually determines where the connection goes, and later rules do not override it. To route a specific domain through a particular outbound, check whether a broader rule matches it first.
- Proxy groups
- A proxy group organizes nodes, other proxy groups, or built-in outbounds into a set of options. Use
selectfor manual selection orurl-testto choose automatically based on probe results. Changing the node in a group only affects traffic already routed to that group; check the matching rules to route other connections through it.
- GeoIP
- GeoIP matches a destination IP to a geographic category using the configured database; it does not track a device or server in real time. When a domain resolves to different addresses through a content delivery network, it may match different GeoIP rules. When troubleshooting, check the actual destination IP and the database used by the rule, not just the domain suffix.
MATCHMATCHis a catch-all rule for connections not matched earlier, so it usually belongs at the end of the rule list. It can point to a proxy group or a built-in outbound such asDIRECT. If placed too early, it prevents ordinary rules below it from being checked.
Network modes
First distinguish how traffic enters the core, then look at how domains are resolved. System proxy and TUN are traffic-entry settings; Fake-IP is a DNS handling method.
- System proxy
- The system proxy is provided by the operating system and mainly affects apps that read and honor the setting. Some apps use their own proxy options or connect directly, so enabling the system proxy does not route all traffic from the device. If a browser works but a particular tool bypasses the proxy, check whether that tool uses the system proxy setting.
- TUN mode
- TUN mode uses a virtual network interface to receive IP traffic routed by the system, then passes it to the core for processing. It can cover some apps that ignore system proxy settings; the actual coverage depends on platform permissions and routing configuration. TUN changes how traffic enters the core; it does not automatically switch rule mode to global mode.
- Fake-IP
- Fake-IP lets the core answer some DNS queries with synthetic addresses and store the address-to-domain mapping. When a later connection targets one of those addresses, the core can recover the original domain for rule matching and further processing. A synthetic address is not the server's real IP and cannot be used to determine which node or deployment location it belongs to.
- DNS leak
- A DNS leak occurs when domain queries take an unexpected route or are handled by an unexpected resolver. Even if web traffic goes through a proxy, that does not prove DNS queries follow the same route. First identify the intended resolver, then check whether the browser's secure DNS settings, system settings, and core DNS settings are consistent.
Subscriptions and nodes
A subscription determines where a configuration comes from; a proxy group determines which node to use. Latency tests and traffic multipliers measure probe time and plan usage, respectively, and are not interchangeable.
- Subscription
- A subscription typically distributes a configuration through a URL, which the client can fetch again to get updates. The response may contain a full YAML configuration or just a node list, depending on the import formats the client supports. Subscription URLs may contain access credentials, so redact them before sharing logs, screenshots, or public support requests.
- Proxy node
- A node is an outbound proxy entry made up of a protocol, server address, port, and related parameters. Similar names in a subscription may refer to different routes or the same server. A display name can help with organization, but it does not prove the route, exit location, or connection quality.
- Latency test
- A client latency test usually accesses a test endpoint over a specified route and records the probe time. Different clients or proxy groups may use different endpoints and measurement methods, so results for the same node are not always directly comparable. The result reflects that particular probe, not actual download speed.
- Traffic multiplier
- A traffic multiplier is the factor a provider uses to convert actual traffic into the amount deducted from a plan; it is not a performance metric measured by the core. For example, a route billed at twice the rate typically deducts 2 GB from the plan for 1 GB of metered traffic. Check the provider's terms for which traffic counts and whether usage is calculated separately by route.