MIHOMO / CONFIG.YAML

Clash Configuration Reference

This page explains mihomo configuration fields for writing, reviewing, and troubleshooting config files. For your first setup, importing a subscription, or checking a connection, start with the getting-started steps in the Clash User Guide, then return here to look up specific fields. Options in a client interface may not use the same names as the corresponding core fields.

YAML structure and configuration entry points

Top-level mappings and list items

The root of a mihomo main configuration is a mapping: a set of name-value pairs. Listening ports and operating modes are usually scalars; dns and tun are mappings with child fields; and proxies, proxy-groups, and rules are lists. Each proxy list item is a mapping of fields, while each rule list item is usually a comma-separated string. The fact that both use hyphens does not mean they expect the same kind of item.

Indentation defines hierarchy. The examples use two spaces: fields at the same level align, and child fields are indented further. Do not use tabs. In a node list, the first field after a hyphen and the fields that follow belong to the same node; the next hyphen at the same indentation level starts a new node. An empty list [], an empty mapping {}, and an omitted field are not equivalent: the first two explicitly provide empty values, while an omitted field lets the core or client use its default behavior. In an override, that distinction can also determine whether content from the previous layer is cleared.

A space after a colon separates a key from its value, and a hash sign in the right context starts a comment. Quote names, credentials, or rule strings that contain these characters according to YAML string syntax. Use integers for ports and true or false for switches; do not turn every value into a string for formatting. Conversely, node names that look like numbers should remain strings. Use a plain-text editor, and avoid full-width colons, typographic quotation marks, or invisible spaces copied from web pages in indentation.

A standalone direct-connection baseline

mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
rules:
  - MATCH,DIRECT

This example does not depend on a subscription, remote nodes, or rule sets. When the port is free, use it to test the local entry point. Load it as a separate test configuration, then connect an application that explicitly supports proxy settings to the local mixed port. Visit a regular website and check the connection log. If there is a record and the egress is direct, the application is using the core. Close the client and repeat the test to help determine whether the application bypassed the setting. A website loading by itself cannot tell you whether the connection went direct through the core or bypassed the proxy entirely.

Main configurations and provider files have different entry points. A main configuration can declare ports, nodes, groups, and rules; a proxy provider file usually supplies a list of nodes; and rule provider YAML data usually starts with a payload list. The latter two are referenced by the main configuration and cannot directly replace it as complete configurations. Check the root and primary keys before importing a file. Even if its extension is YAML, its contents may be a message from a subscription service, a login page, or a configuration for another client.

Static checks and runtime checks

mihomo -t -f config.yaml

Use the command above to test a specified file with a standalone core. Run it in an environment where both the core executable and configuration file are accessible. If the configuration uses relative paths or local data files, make sure the core uses the same working-directory settings as it does at runtime. For a GUI client, prefer its configuration checker or load logs, and verify which core and configuration it actually uses. Passing this check only means that this check passed; it does not prove that a port can be bound, an upstream is reachable, or traffic has entered through the intended route.

If the log reports a syntax error on a line, first check the indentation, quotes, and colons on that line and above it. A missing quote may not be detected until the parser reaches the next field. After fixing syntax, check which level contains the field, whether the value has the right type, and whether the group names referenced by rules exist. Unknown fields do not always trigger errors. If a check passes but a setting has no effect, it may be at the wrong level or may be overridden by the client at startup.

Listening ports and operating modes

Choose an entry point for local applications

port provides an HTTP proxy listener, socks-port provides a SOCKS proxy listener, and mixed-port accepts both HTTP and SOCKS proxy requests on the same port. A port is where an application hands connections to the core; it is not the port of a remote node. For testing on a single device, one mixed port is usually enough. Set up separate listeners only when different programs need different proxy protocols, and assign a distinct port to each enabled listener.

FieldPurposeCheck
mixed-portLocal HTTP and SOCKS proxy entry pointAddress, protocol, and port match the application settings
allow-lanAllow LAN connections to the proxy entry pointKeep disabled for local use
bind-addressRestrict the listening address when enabling LAN accessUse an address on the current host and avoid unnecessary interfaces
modeApply rules, use a global policy, or connect directlyCheck the client's current runtime state

The system proxy and listening ports are separate settings. Enabling a port lets the core receive connections sent to it; enabling the system proxy provides its address to applications that follow system settings. Programs with their own network settings may need to be configured separately or may have exception lists. When changing ports, start the core on the new port before updating system or application settings. Before closing the client, confirm that the system proxy is restored as expected so applications do not keep connecting to a closed port.

port: 7891
socks-port: 7892
allow-lan: false
mode: rule
log-level: info
rules:
  - MATCH,DIRECT

This configuration demonstrates separate listeners. Connect applications that support the corresponding protocols to each of the two local ports. If a port is already in use, first check whether another client instance or an old core is still running. Avoid changing every entry point at once: fix only the conflicting one, then check the applications that use it. If the log shows no listener failure but the application still reports a refused connection, check the actual port shown by the client and whether the application connects to the IPv4 or IPv6 loopback address.

If other devices on the same LAN need access, restrict the exposed scope to the intended interfaces and subnet, use the host firewall, and enable proxy authentication if needed. Do not forward a proxy listener to the public internet. The control interface external-controller is for management operations such as reading runtime status and switching policies; it is not a proxy port. Do not expose it to let another device use the proxy. Keep a GUI client's managed control interface on its local settings by default.

Rule, Global, and Direct

rule selects an egress based on the order of rules, global uses the egress selected by the global policy, and direct sends connections already handed to the core directly. These modes control routing after traffic enters the core; they do not replace the system proxy or a virtual network interface. Direct does not mean the client is closed: while the core is running, connections that meet the entry conditions can still enter it and appear in the logs. When you visit a regular website in a browser, this distinction is usually not visible on the page.

For troubleshooting, start with a target that can be reproduced consistently. If both Direct and Rule mode fail, check the target, local name resolution, and entry point. If only Rule mode fails, record the matched rule and egress. If only Global mode fails, check the current global policy selection. After switching modes, close existing long-lived connections and make a new request to avoid connection reuse affecting the result. If the client interface has changed the mode, distinguish its current runtime value from the documented default; do not rely on mode in the file alone.

DNS resolution and domain mapping

Where do DNS queries enter?

dns.enable enables the core's DNS module, and dns.listen can provide a separate listener for local test tools. Enabling the module does not automatically change the resolution path for every application: an application may use the system resolver, make encrypted DNS requests itself, or pass the domain directly to a proxy in an explicit-proxy setup. Before troubleshooting, identify whether you are observing a query from an application, a query the core makes to resolve a destination, or a query the core makes to look up a proxy server's address.

With enhanced-mode, redir-host returns the actual address provided by the upstream, while fake-ip can return a synthetic address to the application and keep a mapping from that address to the domain in the core. When the application then connects, the connection must be handled by a core that knows about this mapping. If only DNS queries enter the core and subsequent connections bypass interception, the application may try to reach the synthetic address directly and fail. For that reason, do not point an entire device's resolver at a test listener and then check only whether an ordinary webpage loads.

dns:
  enable: true
  listen: 127.0.0.1:1053
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  fake-ip-filter:
    - '+.lan'
  nameserver:
    - 223.5.5.5
  nameserver-policy:
    '+.example.org':
      - 119.29.29.29

The example limits the DNS listener to the local machine. You can usually check the returned address with nslookup -port=1053 www.example.org 127.0.0.1; if your local tool does not support this option, use a DNS query tool that allows a custom port. The upstream here is only for demonstrating public-domain resolution, not internal domains. If the test tool returns a synthetic address, that only confirms the module responded as configured; the address alone does not reveal which upstream handled the query.

Default upstreams, policy-based upstreams, and startup dependencies

nameserver provides upstreams for regular resolution, while nameserver-policy allows a different upstream to be selected for matching domains. Internal company domains should use the resolver specified by the administrator. Confirm that the resolver is reachable and check its answers before configuring it. A public resolver returning no record for an internal domain does not mean the DNS module is broken. Under common blacklist behavior, fake-ip-filter can return real addresses for matching domains, but it does not choose their upstream. These settings control different things: the form of the response and where resolution is sent.

When a DNS service uses a domain name as its address, default-nameserver can resolve the DNS server's own hostname. When a proxy node's server is a domain name, proxy-server-nameserver can separately handle resolution of the node server address. To analyze a failure, map out the startup dependencies: if the upstream requires an established proxy connection, but the node's address must be queried through that same upstream, the configuration may form a loop. First verify that these startup queries have a working path before the proxy is established, then adjust the general domain policy.

fallback and fallback-filter are for backup upstreams and answer filtering; they should not be treated simply as a backup server used only when the primary times out. Combining these settings changes the resolution path and decision criteria. If results are unexpected, first reduce the setup to one verified reachable upstream, then add policies for specific domains, and only then introduce backup answer filtering. Changing one decision point at a time makes it easier to connect logs and test results to the relevant fields.

Validate DNS behavior

First test a public domain, then a domain expected to be excluded from synthetic addresses. If internal resolution is required, also choose a known existing internal record. For each test, record the query tool, returned address, client mode, and whether the application has its own secure DNS enabled. After changing DNS configuration, use a new connection and account for application and system caches. An old answer appearing again is not enough to conclude that the new configuration was not loaded. To confirm which egress actually handled resolution, combine core logs with controlled network observations; treat results from web-based tests as clues only. See DNS leak tests and prevention settings for related examples.

Proxy node fields and providers

Node names, protocols, and server addresses

The proxies list defines the nodes the core can dial. name is used to reference a node in a group or rule; type determines which protocol is used to interpret the other fields; and server and port specify the server address and port. This port is unrelated to the local proxy port at the top level of the main configuration. When moving a domain from a subscription to a hand-written configuration, retain both the protocol type and the authentication and transport settings required by that protocol. Changing a field name to a similar-looking field from another protocol does not convert the configuration.

proxies:
  - name: Local test egress
    type: socks5
    server: 127.0.0.1
    port: 1080
    udp: false

This snippet can connect to a standalone SOCKS5 service running on port 1080 at the local loopback address. It does not start that service. If no such service is available, use DIRECT as a baseline. Do not point a node back to the proxy entry point of the same core, or the dial will loop back to itself. An open port does not prove that the listener uses the right protocol. If the connection closes immediately after opening, check the service type and required authentication instead of changing transport parameters at random.

Different node types have different requirements. For example, a Shadowsocks node uses cipher and password, and both must match the server. Some protocols that use TLS need a separate server name; enter the value required by the certificate and protocol. A connection address being an IP does not mean the certificate identifies that IP. If a certificate error occurs, check the name, trust chain, and system clock. Disabling certificate verification removes the check on server identity and is not a general-purpose fix.

udp indicates whether the node enables the corresponding UDP forwarding capability, but end-to-end availability also depends on the protocol implementation, server, and application entry point. A webpage loading only proves that the path for that connection worked. If the same node works in a browser but fails in an application that needs UDP, first confirm that the application's traffic enters the core, then verify that the server supports the required forwarding. Do not attribute UDP failures directly to domain rules, or assume that adding this field gives every node the same capability.

Maintaining local providers and node lists

proxy-providers:
  local-lab:
    type: file
    path: ./providers/local-lab.yaml

A local provider keeps node data separate from the main configuration. The example path points to another file whose top-level key is proxies, where you can put the node list shown earlier. Place the file in a working directory the core is allowed to access. The provider name in the main configuration is used by a group's use field; it is not a node name that can be dialed directly from the group. When a provider adds or removes nodes, group names and routing rules can remain unchanged, making providers useful for managing changing node collections.

When using a remote provider, troubleshoot update failures separately from node dial failures. For an update failure, check whether the response actually contains a node list, whether access has expired, and whether local resolution and connectivity work. For a dial failure, first confirm the list loaded, then check the selected node's address, protocol, authentication, and handshake. A usable old cache does not mean the latest update succeeded, and a successful update does not mean every node can connect. Node parameters and subscription URLs may contain credentials; remove them before sharing logs or configuration examples.

For a batch of failures, start with a single known-working node. Break the problem into stages: name references, address resolution, connection establishment, protocol handshake, and application request. If the configuration says a node cannot be found, check the name referenced by the group. If the log shows a timeout, determine whether it occurred at the node address or the destination. See Common runtime logs and how to diagnose them to distinguish configuration parsing, refused connections, and outbound timeouts.

Proxy groups and egress selection

Keep rule targets stable and manage egress separately

Rules determine which target receives a type of traffic; a proxy group determines which egress that target selects at a given time. Point domain rules to a group name with a stable meaning so you do not need to rewrite every rule when adding or replacing nodes. A select group is for manual selection and can contain custom nodes, other groups where nesting is supported, and built-in egress options such as DIRECT. Avoid names that conflict with nodes or built-in egress options, and avoid numeric labels whose purpose is only clear after reading the entire subscription.

proxy-groups:
  - name: Site test egress
    type: select
    proxies:
      - DIRECT
      - Local test egress
rules:
  - DOMAIN-SUFFIX,example.org,Site test egress
  - MATCH,DIRECT

This snippet references the local test node from the previous section. If that node is not configured, remove the corresponding group member first and verify the group reference using only direct access. After loading the full configuration, visit a matching domain with a new connection. First confirm that the matched rule points to this group, then compare results with different group egress selections. Logs show both the target group and the actual node; do not rely on only one of these two details. The same rule can keep matching the same group while the final dial target changes with the group selection.

The group's proxies field lists named egress options, while use imports a set of nodes from a proxy provider. To include the local provider from the previous section, add use: [local-lab] within the proxy group entry. Do not put local-lab in the group's proxies list. When checking an empty group, verify both its static members and whether the provider loaded. Even if the group definition is valid, it cannot provide the expected egress without available members. If groups reference one another in a cycle, restructure them as one-way dependencies.

Manual selection, probing, and ordered fallback

Group typeDecision methodUse case
selectManually choose one optionReproduce a failure or keep a fixed egress
url-testSelect based on probe results; tolerance can reduce switchingCandidate nodes with similar roles
fallbackChoose the first candidate that passes a probePrimary and backup priorities are known
proxy-groups:
  - name: Ordered fallback
    type: fallback
    proxies:
      - Local test egress
      - DIRECT
    url: https://example.org/
    interval: 600

This snippet demonstrates checking the local node and then direct access in order, in a test scenario where falling back to direct is explicitly allowed. Choose a lightweight, predictable URL for url that can be reached consistently. interval is the probe interval in seconds. A probe is a request to a specific address; it does not cover every application destination or represent video quality, upload performance, or long-lived connection stability. If a destination requires a fixed egress or must not fall back to direct, do not add DIRECT to its candidate list.

tolerance in url-test is measured in milliseconds and can reduce repeated switching when latency differences are small. Shortening the probe interval continuously does not necessarily improve stability. It may increase network requests and make the probe service's own fluctuations part of the decision. When observing behavior, record the probe URL, group members, and conditions for reproducing the application issue. If probes succeed but the application fails, first pin one node in a manual-selection group and reproduce the issue. Then determine whether it is due to insufficient probe coverage, destination restrictions, or a difference in resolution paths.

Some clients remember manual selections, so the interface may not return to the first item after a reload. During validation, check the running group and selected member rather than inferring the selection from list order. To review a configuration, trace from the application group down until you reach a specific node or built-in egress option. If several nearly identical groups must be traversed to explain one connection, simplify their roles. A shorter reference chain makes test results, logs, and override behavior easier to check.

Rule syntax and match order

Select a target from the first matching rule

In Rule mode, the core checks rules in list order and usually uses the first match to select a policy. Most rules use the format “type, match value, target”; MATCH needs only a type and target. Put special handling for a domain before a general suffix rule. If the general rule comes first, later exceptions may never take effect even if their syntax is valid. Before adding a rule, identify where it belongs in the list and check that its target group exists.

rules:
  - DOMAIN,status.example.org,DIRECT
  - DOMAIN-SUFFIX,example.org,Site test egress
  - IP-CIDR,192.0.2.0/24,DIRECT,no-resolve
  - MATCH,DIRECT

DOMAIN matches a complete hostname, while DOMAIN-SUFFIX matches that domain and its subdomains. Do not include a URL scheme, port, path, or query string in the target. DOMAIN-KEYWORD matches a word in a hostname and has broader coverage, so short words can cause unintended matches. The example loads fully only if the proxy group is defined. Its test address range illustrates network prefix notation and does not represent a public service. Organizing rules by how broadly they match is easier to maintain than relying on repeated keyword rules.

Sometimes a connection carries only a destination IP, for example when an application resolves the domain outside the core. In that case, whether a domain-based rule can match depends on whether the core has usable domain information. Do not assume that the browser's address bar proves a domain was submitted. Conversely, an application using a proxy protocol may pass the original hostname to the core. For domain-dependent configuration, check the destination shown in connection records and compare rules using the same application and entry point. This avoids mixing different entry-point behavior into one test.

IP-CIDR is for IPv4 ranges, and IP-CIDR6 is for IPv6 ranges. Some IP-based rules can trigger resolution when a connection has only a domain name. In the example, no-resolve means this rule does not actively resolve a domain to determine whether it matches; it can still match when a usable destination IP is already available. It is not a global DNS switch and does not undo resolution triggered by an earlier rule. To distinguish domain categories reliably, check domain rules first, then assess the scope and resolution cost of IP rules.

Rule providers and data contents

rule-providers:
  docs-domains:
    type: file
    behavior: domain
    format: yaml
    path: ./rules/docs-domains.yaml
rules:
  - RULE-SET,docs-domains,DIRECT
  - MATCH,DIRECT
payload:
  - '+.example.org'

The two code blocks above belong to the main configuration and the referenced rule file, respectively. With behavior set to domain, each data item is a domain match expression. ipcidr is for network prefixes, and classical lists match conditions with rule types. The format must also match the file's encoding. Provider data should not include main-configuration policy targets; specify the egress on the RULE-SET line that references it. This lets different configurations apply different handling to the same match data.

Rules such as GEOIP also depend on local geographic data files and update results. If a destination that previously went direct uses another egress after an update, first check the matched rule and available IP in the connection record, then confirm whether the data version actually changed. Shared addresses, shifting domain resolution, and rule order can all change behavior. For a small number of exceptions that must behave consistently, use conditions with a clear scope near the start of the list rather than relying on broad data classifications.

Check order with positive, negative, and fallback cases

After each edit, test at least three destinations: one that should match a special exception, one that should match a general rule but not the exception, and one that should reach the final MATCH. When a policy uses REJECT, the application may show a connection failure; use match records to distinguish an intentional rejection from a network issue. To verify that a rule took effect, start a new connection and confirm that the core is in Rule mode. A destination being reachable alone does not prove that it used the intended policy.

TUN interception and routing boundaries

Virtual interfaces, routes, and policies are separate layers

The system proxy depends on applications reading the proxy address. TUN receives packets routed by the system into a virtual network interface, then the core processes them according to its mode and rules. Enabling TUN does not mean all packets enter the core. Existing routes, other VPNs, excluded interfaces, and operating-system handling of specific packets can all affect its scope. Rule mode also does not mean that only proxied connections enter the virtual interface: a connection that enters the core and matches DIRECT still uses direct egress.

tun:
  enable: true
  stack: mixed
  auto-route: true
  auto-detect-interface: true
  dns-hijack:
    - 'any:53'
    - 'tcp://any:53'

stack selects the network stack used to process traffic. mixed combines the system stack and a user-space stack; system and gvisor are also available for testing based on platform and compatibility. auto-route lets the core configure routes for interception; auto-detect-interface detects the egress interface. One determines how connections enter the core, while the other helps determine which interface is used for outbound traffic. Automatic detection still needs to be checked on devices with multiple network adapters and default routes, especially when switching often between wired and wireless networks.

dns-hijack matches regular DNS requests that have already entered the interception path. The example lists common UDP and TCP port 53 formats; in practice, you also need to configure the core's DNS module and reachable upstreams. This is not a universal interception method for all resolution protocols, and it does not decrypt encrypted DNS inside applications into regular queries. If you enable synthetic addresses and interception together without validating the resolution path, a webpage failure could be caused by a route that missed the connection, a missing address mapping in the core, or an unresponsive upstream.

Check runtime requirements by platform

PlatformPermissions or conditions to checkRuntime observations
WindowsClient service or network-management permissions granted by the operating systemVirtual adapter, routes, and core logs
macOSClient network permissions and component authorizationVirtual interface actually used for this run
LinuxTUN device availability and permission to configure routes in the runtime environmentInterface, policy routing, and service logs
Android / iOSClient request and system approval to establish a VPN or tunnelSystem connection state and configuration options supported by the client

Interface names such as utun on desktop systems may change with the runtime environment. Finding an interface with the same prefix already in the system does not prove it belongs to the current client. On Linux, also check whether a container or restricted service has been granted device access and permissions by its runtime environment. Mobile clients and the operating system usually manage the tunnel lifecycle; do not copy desktop interface names, auto-route parameters, or permission steps directly to mobile. Supported options depend on the chosen client and its core.

Before testing, save a configuration that works in system-proxy mode. After enabling TUN, do not change rules, groups, and DNS at the same time. Start a new connection from an application that has no explicit proxy configured, and use interface activity and logs to confirm its path before checking which egress the core selected. Then test a LAN resource and a domain resolved through the system. If a LAN service works only outside TUN, first check the interception scope, existing routes, and local DNS. Do not expose every entry point to conceal a routing problem.

Repeat the same test after switching networks, disconnecting another VPN, or restarting the client to confirm connectivity when the default egress changes. To roll back, disable TUN, then check that virtual routes have been removed and the system proxy still works as expected. If you maintain the machine over a remote session, prepare a local recovery method first so you do not lose access after changing the default route. See TUN virtual network interface setup for setup steps and TUN vs. system proxy for a comparison of how they work.

Configuration overrides, merging, and validation

Separate source configuration, local intent, and runtime state

A subscription is the source configuration, an override declares local changes, and the final file passed to the core is the effective configuration. A GUI client may also send ports, modes, or group selections from its interface or runtime state to the core. When troubleshooting, first identify which layer you are viewing. Direct edits to a subscription cache may be lost on update; direct edits to a generated final file may be overwritten the next time you switch configurations. For long-term maintenance, use the client's supported local override entry point, or manage a separate main configuration and provider files.

Clients do not all support the same operations. A shallow mapping merge may replace an entire existing dns section with the new one, while a recursive merge may change only a few keys inside it. Lists may be replaced entirely, prepended, appended, or edited by name. YAML describes data; it does not define how two separate files should be merged. A client-specific override instruction also does not mean the core can interpret it. Do not import an override template for one client into another client as a complete configuration.

Determine the final order of the rules list first

rules:
  - DOMAIN,health.example.org,DIRECT
  - DOMAIN-SUFFIX,example.org,Site test egress
  - MATCH,DIRECT

This is the final list intended for the core, not a general-purpose override syntax. For example, suppose the subscription already contains a suffix rule and a fallback rule, and you need to add a domain exception locally. If the client supports prepending, put the exception before the existing list. If it only supports full replacement, write out the complete final list. If you append the exception after MATCH, it will not participate in the decision. Check the order in the effective configuration exported by the interface, then verify that each of the three rules matches its intended destination.

When node or group names change, update all references as well. An override that matches by name may no longer find an object after the subscription renames it; an edit by position may target a different node after the list is reordered. A more stable approach is to keep local business group names unchanged and have them depend on a stable entry point such as a provider, while checking that the provider still has available members after an update. For mappings such as DNS, confirm that required upstreams, filters, and ports have not been removed by replacing an entire section in an override.

Review before loading and use new connections afterward

Before making a change, save a recoverable copy of the local configuration and overrides, and note the current mode, entry point, and group selection. Change one type of behavior at a time. First inspect the differences in the final file, then run a configuration check, and finally load it. Confirm which keys were added, which lists were replaced, and whether references can still be resolved. Validate runtime behavior in order: entry point, resolution, routing decision, and connection result. Only with clearly defined validation conditions can you determine whether a problem comes from the override mechanism rather than the subscription, network, or runtime state.

After a subscription update, first confirm that the new content is valid, then check whether the local override ran, whether the order changed, and whether any proxy groups are empty. If an error occurs, temporarily switch to a known-working complete configuration and reproduce the issue independently with the same application and destination. If the baseline works, restore the changes one at a time. Changes that require listeners or virtual interfaces to be recreated may need a reload or restart, as required by the client. Validate in a new session; refreshing the configuration screen does not necessarily recreate listeners and routes.

If you need to switch GUI clients, check available versions for your platform on Get a Client; on platforms that offer Clash Plus, consider that option first. During migration, prioritize portable core fields and recheck the target client's override support, working directory, and permission flow. Switches in the old interface are not reliable configuration references for the new client. See the Glossary for common terms, or return to the User Guide for steps from installation through connection setup. When reporting an issue, provide a redacted minimal snippet, the expected egress, and the actual match record so others can reproduce it without exposing subscription data.