1. Clients, Core and Configuration
The client handles the interface; the core handles connections
In everyday discussions, “Clash” can refer to the original project or, more broadly, to clients that support its configuration format. When following installation instructions, distinguish the project, the client and the core. In Clash Verge Rev, for example, the interface displays config profiles, proxy group selections and connection logs. The mihomo core reads the active config, matches rules, resolves domains and establishes outbound connections. Seeing the desktop window does not mean the core has started; a running core does not mean browser requests are reaching it. When something breaks, identify which layer failed and check its logs. That is more useful than flipping several settings at once.
The core can also run without a graphical client. When running mihomo directly on a server, you need to manage the config directory, process user, log output and service startup yourself. Desktop clients often handle these details and may generate the final active config from their settings. If values in a subscription differ from runtime settings, check whether the client applies overrides before assuming the core has loaded the new values. Other projects may import a similar format without using the same core, so do not assume every app supports every advanced mihomo field. If a term is unfamiliar, start with the glossary.
Separate ingress, routing and egress
A request has three parts: how the app sends traffic to the core, how the core matches the request, and which outbound connection handles it. Traffic can enter through an app's proxy settings, the system proxy or a virtual network interface. Routing uses information actually available to the core, such as the domain or IP address. Egress can be a proxy, a direct connection or a rejection. A proxy group gives several outbound options a shared name for rules to target; it does not create proxies. For example, a browser can send a request to a local listener and a rule can route it to DIRECT. The request went through the core, but its outbound connection did not use a remote proxy.
Check DNS and app connections separately. Resolving a domain to an address only confirms that this lookup returned a result; it does not prove the selected outbound can reach the destination. Likewise, an existing connection that still transfers data does not guarantee the next DNS lookup will work. When troubleshooting, note the domain, the app making the request and the current network. Then check whether the connection appears in the connection list. If it does not, investigate ingress first. If it appears but matches an unexpected rule, check the rule conditions. If the match is correct but the request times out, look at DNS and egress. A site failing to load alone cannot tell you whether a subscription expired, a route is congested or the app never reached the core.
Know the three sources of configuration
The installer determines which program runs on your device. A subscription or local file determines which proxies and rules are available to the core. Client settings stored on the device control ports, modes and some overrides. Changing clients does not necessarily mean changing subscriptions, and changing subscriptions does not necessarily mean reinstalling the app. When migrating, document all three separately: an exported config may not include the system proxy toggle, the selected group member or app permissions. Also distinguish a subscription URL from an ordinary web link. It may contain account credentials, and the fact that it opens does not make it safe to share. Review connection logs for domains and local addresses before sending them to anyone.
2. Choose a Client by Platform
Choose an app based on what you need to verify
For everyday subscription imports and manual proxy group selection, consider Clash Plus on platforms listed on the downloads page. If you plan to edit mihomo fields using this handbook, also check whether the app can show the active config, report matched connections and save local overrides. Menu names vary between clients: some call both subscriptions and local files “profiles,” while others put overrides in a separate subscription menu. When trying a client for the first time, verify that it can import your config format. A Clash name alone does not guarantee compatibility. There is no need to use the same client on desktop and mobile just to keep the interface consistent.
On the client downloads page, select your operating system first, then check the version requirements, processor architecture and installer file extension. Include your system architecture in troubleshooting notes; a device brand or operating system name is not enough. A package that worked on an old computer may not run on a new one. For simply toggling a proxy, a graphical client is usually easier. To find out why one rule matched before another, choose a client that shows the destination, matched rule and outbound chain. The table lists download options and selection tips, not a guarantee of every client's features.
| Platform | Options on the downloads page | Check before installing |
|---|---|---|
| Windows | Clash Plus, Clash Verge Rev, FlClash; Clash for Windows is archived | System architecture, installation permissions, and whether another app already manages the system proxy |
| macOS | Clash Plus, Clash Verge Rev, FlClash; ClashX Meta is archived | Intel or Apple silicon, macOS version, and permission prompts for network extensions or helper services |
| Android | Clash Plus、Clash Meta for Android、FlClash、Surfboard | System version, installer architecture, and which app currently controls the VPN |
| iOS | Clash Plus; follow the downloads page link to the App Store | System requirements listed on the store page and device management restrictions |
| Linux | Clash Verge Rev, FlClash; if you don't need a desktop interface, consider the mihomo core | Distribution, package format, processor architecture, desktop session or service account |
Desktop proxy settings and mobile traffic interception work differently
On desktop, the system proxy is a setting offered to apps, not a rule that forces every process to use it. Common terminal tools may have their own settings, and browsers may take a different route because of extensions or policies. On mobile, the system VPN interface usually sends traffic to the app. If you already use a corporate VPN, filtering tool or work profile, check what the system allows before trying to run them together. Don't treat a prompt to replace an existing VPN as a routine permission dialog. When comparing desktop config notes with a mobile client, first check whether the mobile app offers the same setting. If it doesn't, don't assume a similarly named option works the same way.
Keep migration-ready information
If a device still runs Clash for Windows or ClashX Meta, treat it as a source of legacy configuration, not as a current reference for interface or core behavior. Before migrating, export any local config you control and separately note manually added rules, group selections and listener ports. Import a copy into the new client, then quit the old one and turn off traffic interception before testing common scenarios one by one. A successful import only confirms that the format can be read; values temporarily saved by the old interface may not carry over. Clean up the old config only after confirming the new client can start, stop and restore network access.
For a headless device, familiar graphical controls are not the priority. Check who starts the service, where the config is stored, where to find logs and how to restore connectivity if something goes wrong. A machine with only remote access is a poor place to make a one-shot change to the default route, DNS resolution and proxy autostart. Verify the config on a desktop or a device you can access directly before deploying it as a service. Make the choice concrete: note the app, device architecture, config format and request you'll use to verify it—not just the client that appears to have the most features.
3. Installation and First Launch
Desktop: verify the app starts first
On Windows, check the system type in Settings or System Information, then choose the matching installer on the downloads page. After installation, open the app but hold off on enabling startup at boot, the system proxy or TUN. Check the core status or logs for errors such as config loading failures or ports already in use. If the window opens but the core reports that an address is in use, quit any old client and check the system tray for a lingering process. If you need to run two test instances side by side, assign different ports and let only one control the system proxy. If you change the listener address, update any proxy address you entered manually in other apps.
On macOS, choose the package for Intel or Apple silicon on the downloads page. After opening the disk image or extracting the archive, follow the package instructions to move the app to an appropriate location, then launch it from there. Don't keep running it from a temporarily mounted image. When macOS requests permission, identify what triggered it: launching the app for the first time, installing a helper service and intercepting traffic are separate steps. If the device is managed by an organization, ask the administrator about system restrictions rather than changing global security settings just to try a toggle. After launch, quit and reopen the app to confirm it saves local settings before importing a subscription.
On a Linux desktop, check which package formats your distribution supports and which session you are using, then install the app through the appropriate package manager. Proxy settings in a graphical session may not carry over to a terminal session, and launching from a desktop icon can produce a different environment from launching in a terminal. For a headless setup, run the core as a clearly identified user with a dedicated config directory so you know who can read and write each file. If you plan to run it as a service, first test startup in the foreground with the same config. Then configure or enable the service; don't keep restarting it to get past errors such as missing files or insufficient permissions. See Linux Desktop and Command-Line Deployment.
Mobile: distinguish install permissions from traffic interception
For Android, make sure the installer matches your device architecture and system requirements. If Android asks you to allow installation from a source, confirm it is the intended installer and grant only the permission needed for this installation; you can revoke it afterward. When you first open the client, look through the config and log pages, then review the system VPN prompt when you enable a connection. On iOS, install through the store link on the downloads page and follow the app's instructions to authorize its VPN configuration. The VPN icon in the status bar helps confirm interception is enabled, but it does not prove a request reached its destination. Check the active config, mode and selected outbound in the app as well.
Check the listener port and know how to stop it
For a first test, keep the listener bound to localhost; don't enable LAN access just because the option is there. If you already have a command-line build of mihomo, save the following as config.yaml in the current directory and test the config. It has no remote proxies: it listens locally and sends incoming requests directly, making it useful for checking the local proxy entry point. You can replace mihomo in the command with the path to your executable. If you use a graphical client, import a copy instead; there is no need to start a second instance from the command line. Check that the port is free and stop any other instance using it first.
mixed-port: 7890
allow-lan: false
bind-address: '127.0.0.1'
mode: rule
log-level: info
rules:
- MATCH,DIRECT
mihomo -t -f ./config.yaml
mihomo -f ./config.yaml
# After the core starts, run this in another terminal:
curl --proxy http://127.0.0.1:7890 --max-time 10 https://example.com/
After the config check passes, watch the logs during startup. A successful check doesn't confirm the port was bound, and a bound port doesn't confirm that requests work. If the test immediately reports that the local connection was refused, check the process and listening port. If it reaches the local proxy but the destination times out, check whether the sample site is reachable directly and whether its domain resolves. Finally, turn off traffic interception in the client or stop the core you started, then send a request that doesn't rely on the local proxy. Remember how to restore connectivity: if the system proxy still points to a listener you've stopped, apps may keep failing after the client exits.
4. Importing Subscriptions and Applying Configuration
Start with the profile list, not the connect toggle
A subscription URL is where a client fetches configuration; it is not a server address to enter in the system proxy settings. Open the profile or subscription page, choose import from URL, paste the complete address and wait for the client to fetch and parse it. If your provider gave you a local file, import the file instead of pasting its disk path into the subscription field. If a page offers both node share links and a config for Clash or mihomo, choose the format the client explicitly supports. Both links may belong to the same account, but a config usually includes proxy groups and rules that a single share link cannot replace.
A successful download, a successful parse and the active profile are three different states. After importing, check that a new entry appears in the list and select it manually. Then open the proxy groups page and confirm its members look right. Some clients only save the imported file without switching to it; others retain group selections from the previous profile when you switch. If the new profile is in the list but the proxy groups page still shows old names, confirm which profile is active and what config is running. Then check whether a failed load caused the client to keep the previous config. Seeing the subscription name at the top does not prove that new requests are being routed by its rules.
Tell fetch errors, parse errors and unavailable proxies apart
If the client reports a timeout, first check whether it happened while fetching the subscription or testing a connection. For a fetch timeout, check whether the current network can reach the subscription URL, whether the URL has expired and which route the app uses for update requests. For a connection test timeout, check the selected outbound and its connection to the destination. If the provider returns a login prompt or error page, content may have been fetched but still be impossible to parse. For repeated parse errors, confirm the subscription format is compatible with the client, then trace the first reported error back to the relevant parent field. Never paste a full URL containing credentials into a public converter or forum. Before sharing a screenshot, check the address bar and logs for sensitive parameters.
When editing a config locally, common issues include inconsistent indentation, misplaced list hyphens and rules that reference an undefined group. Config files usually use spaces for indentation; aligning items at the same level matters more than counting spaces by eye. The reported line isn't always the root cause: a missing quote on the previous line may only be detected on the next one. Make a copy and reduce it to the smallest structure that reproduces the problem. Check that it loads, then add back the removed sections a few at a time. If the same file imports on one device but not another, note the client and core versions on both, then check for fields supported on only one side. See the Subscription Import Troubleshooting Checklist.
Keep remote content separate from local changes
Refreshing a remote subscription may overwrite its existing contents with a new download. If you only need to keep a few local rules, use the client's override feature if available, and find out whether it appends, prepends or replaces a section. If there is no override feature, save an editable local config and merge changes manually when needed. Keep backups in a directory you control, not a public cloud-sharing folder. Retain a working config and note any external rule files, proxy collections and group selections it depends on. Restoring only a subscription URL may not recover the last working version.
A subscription that uses external proxy or rule collections may trigger additional fetches even after the main config loads. If a proxy group is temporarily empty, check the collection's download and cache status, then confirm the group actually references it. If an old config still connects but refreshes keep failing, leave the working cache in place while checking which URL failed: the subscription or the collection. Conversely, a successful refresh doesn't guarantee that old group members still exist. If the provider changed their names, recheck manual selections and rule references. Finish these checks before changing traffic interception to avoid adding another variable.
5. Traffic Ingress and Proxy Modes
The system proxy controls how traffic gets in
The system proxy usually adds a local proxy address and port to the operating system settings for apps that recognize them. It's a simple way to test on desktop and easy to turn off. But apps can use their own network stack or proxy preferences, or read the system setting only at startup. If a browser works but a terminal tool doesn't, don't change rules right away. First check whether the tool supports an explicit proxy option, then look at the connection list to see if the request reached the core. Also check whether the system has a bypass list: a missing request there doesn't necessarily mean the core is broken.
An explicit proxy is a narrower test: send traffic from one app or command to a local port without affecting the whole system. The proxy type supported by the app must match the listener. For example, mihomo's mixed-port accepts both HTTP proxy and SOCKS connections, but a client may expose separate ports in its interface. Don't infer the protocol from a familiar port number. Use the address and port shown in the active config. If a request works through an explicit proxy but doesn't appear in the connection list with the system proxy enabled, check whether the app reads the system setting, whether the destination is excluded and whether an old setting is cached.
Rules, Global and Direct control where traffic goes
Rule mode selects an outbound based on the order of the rules currently loaded, making it suitable for everyday traffic routing. In mihomo's Global mode, connections that enter the core go to the GLOBAL group. Check which member that group actually selects; the mode label alone doesn't tell you. Direct mode sends traffic entering the core straight out, but it doesn't restore the system proxy setting automatically. Apps may still send requests through the local listener first. These three modes apply to requests that have already entered the core; they don't determine which apps must use it. Switching modes is useful only after confirming that a connection appears in the log.
| Mode | How traffic is handled after it enters the core | What to check after switching |
|---|---|---|
| Rule | Selects a policy using rules | Matched condition, target group and selected group member |
| Global | Uses the selection in the GLOBAL group | The selected outbound in the group, not the mode label in the interface |
| Direct | Sends traffic that has entered the core straight out | Whether connections still enter the core through the local listener |
Verify a mode change with a new connection
Browsers may reuse existing connections, and an app that has been open for a while may not reconnect immediately after a mode change. Before testing, note the original mode and selected outbound. Switch modes and send a new request with a separate command, or restart the app being tested once you know you can restore the session. Check the destination, outbound and failure stage in the new log entry; don't mistake an old entry for a current result. If Global works but Rule doesn't, focus on rule matching and the target group. If neither mode produces a log entry, check ingress. If both produce entries and fail at the same stage, compare the selected outbound and DNS results before testing on a different network.
After troubleshooting, restore the original mode and group selections. Test one destination expected to go direct and another expected to use a proxy group. Global mode can help narrow down a problem, but there is no need to leave every intercepted request on a different outbound just to fix one site. Turning off the system proxy may not restore the original network either: active TUN, browser-specific settings and manually configured command-line proxies can still intercept traffic. If changing the same toggle twice gives different results, record ingress method, rule mode and whether an existing connection was reused separately. For more detail, see How TUN and the System Proxy Work.
6. Rule Order and Proxy Groups
Read from top to bottom; the first match wins
In Rule mode, mihomo checks conditions in the order listed under rules. To handle a subdomain separately, put an exact match before a broader suffix rule. Otherwise, the suffix rule matches first and the more specific rule never runs. DOMAIN matches an exact domain, while DOMAIN-SUFFIX matches a domain and its subdomains. Use MATCH as the catch-all at the end. Check the final order after config merging: some clients append local rules after subscription rules, so a subscription's existing catch-all may shadow them.
Don't paste a full browser URL into a domain rule. Rules match the hostname of the connection target, without a scheme, path or query string. A page's images, APIs and login service may also use different domains. If an app connects directly to an IP address, the core may not know the original domain, so adding only a domain rule may not help. Find the destination and matched rule in the connection details, confirm whether the core is matching a domain or an IP address, then choose the appropriate condition. IP rules can be affected by shared addresses and address changes; don't route every service on an IP address through the same policy based on a single DNS lookup.
Proxy groups: identify the group, then check its members
proxy-groups defines group names and selection methods. Use select for manual selection. Rules reference the group name, and fields such as proxies list its members. Members can be defined proxies or built-in options. When a rule matches a group name, check which member that group actually selected. The experiment below uses only built-in options: it blocks a specified subdomain and sends the other example domains to a manual group. Select Direct in that group, then switch deliberately to Reject and compare the new requests in the logs. The example subdomain doesn't need to exist to demonstrate rule priority. To verify successful access, test a resolvable root domain instead.
mixed-port: 7890
allow-lan: false
mode: rule
proxy-groups:
- name: 'Test Outbound'
type: select
proxies:
- DIRECT
- REJECT
rules:
- DOMAIN,blocked.example.com,REJECT
- DOMAIN-SUFFIX,example.com,Test Outbound
- MATCH,DIRECT
An automatic group is not just a manual group displayed differently. url-test selects based on the configured test destination and results. These mainly reflect access to that test resource at the time; they do not measure large-file throughput or prove that every service takes the same route. fallback focuses on selecting an available member in the configured order. To investigate a consistent issue, pin the group to one member first and reproduce the request. Then compare automatic strategies. Otherwise, the selected member may change between tests, making it hard to tell whether the rule changed or background probing chose a different outbound.
Trace the active config from a match record
When a request takes the wrong route, trace it from the connection details: check the match condition and destination, see which group the rule points to, then check the group's actual selection. If the log shows the final catch-all rule, check whether earlier rules are spelled correctly, were removed by an override or received a domain at all. For IP address or CIDR rules, no-resolve means the rule will not proactively resolve a domain to make a match. It does not disable DNS for the whole config. Avoid changing rules, DNS mode and group persistence at the same time; test each separately to see what changed the result.
When you have many rules, group new entries by category and place them before the relevant existing rules. Add a short note explaining exceptions, required group names and expected results. After changing subscriptions, check whether group names changed and whether rule-set content matches the declared behavior. Syntax checks catch some errors, but don't guarantee routing works as intended. Keep a fixed set of destinations to test exact matches, suffix rules and the default outbound. If a rule already selects the expected outbound but access is still slow, don't keep adding rules. Check latency test metrics and route performance instead.
7. TUN Traffic Interception and DNS
Verify basic ingress before adding a virtual interface
TUN creates a virtual network interface and uses routes to send some traffic to the core. It can cover apps that ignore the system proxy, but actual coverage depends on system routes, exclusions, existing VPNs and device policies. Turning on a toggle alone does not prove all traffic is going through the core. Before enabling TUN, keep a working explicit-proxy test and note local networks and services that must remain reachable. Then pause the system proxy and test what changes with TUN alone. If both methods are enabled at once, an app may already be reaching the core through the proxy listener, so the test won't show whether TUN intercepted it.
A graphical client may need to install a service or request network permissions before it can enable TUN. If permission is denied, check the client logs and the platform's authorization settings rather than granting elevated permissions to every background process. auto-route configures routes automatically, and auto-detect-interface detects the outbound interface. Verify interface selection when switching between wired and wireless networks or using another virtual interface at the same time. If a remote machine's management connection moves to a new route, you may lose access. Keep a local or out-of-band console available and plan a reversible test window. Never test system-wide interception through your only remote session.
DNS: check queries and connections separately
Set dns.enable to enable mihomo's built-in DNS handling. TUN's dns-hijack specifies which DNS query addresses and formats should be handled by the core. Matching a common port does not intercept every kind of encrypted DNS. Apps using secure DNS, their own resolvers or an existing cache may not make the ordinary queries you expect. In fake-ip mode, a domain resolves to a mapped address that the core can identify in later connections. redir-host returns the real resolved address. With mapped addresses, subsequent app connections need to reach the core that holds the mapping; otherwise, DNS can appear to succeed while the connection still fails.
The snippet below is for local testing with mihomo versions that support these fields and a system that allows traffic interception. It uses real DNS resolution and sends the core's DNS queries through the listed resolvers. If your network requires an organization-approved resolver, replace the addresses with an allowed one or internal domains may fail to resolve. When merging the snippet into a config, edit the existing tun and dns sections rather than adding duplicate top-level keys. If the client generates these settings through its interface, check the final config instead of assuming file-level toggles are applied as written.
tun:
enable: true
stack: mixed
auto-route: true
auto-detect-interface: true
dns-hijack:
- any:53
- tcp://any:53
dns:
enable: true
enhanced-mode: redir-host
nameserver:
- 1.1.1.1
- 9.9.9.9
Check the app, DNS and routing in that order
After enabling TUN, send a new request. First check whether it appears as a connection, then check name resolution and outbound. If only one app fails, compare it with another app on the same device. Check whether it reused an old connection, has its own DNS settings or never entered the core. If internal services fail while public domains work, check whether internal domains depend on a local resolver and whether private network ranges are using the wrong route. On a work network, don't hide the problem by expanding traffic interception. Restore a working system state first, then decide whether to add exceptions for specific domains and subnets in line with network policy.
If problems continue after disabling TUN, check the operating system's current default route and DNS settings, and whether another network tool rewrote them. Only clear an app's cache or restart it if your records show the route has been restored and an old DNS result may still be in use. To compare fake-ip with real DNS mode, use the same device, network and destinations, testing each mode separately. Don't compare a cached result from one mode directly with a fresh lookup from the other. For common symptoms, see the Troubleshooting FAQ.
8. Updates, Backups and Troubleshooting
Update the client, core and subscription separately
A client update can change menus or system integration, and may also update the core. Refreshing a subscription may replace proxies, rules and group names. Before updating, note the working config source, proxy mode, commonly used outbound and traffic interception method. If the client updates the core along with itself, treat that as a combined update. Don't refresh subscriptions and rule sets at the same time. After updating, verify the client starts and loads the config, test common requests, then check whether exiting restores network access. If something breaks, identify which batch changed. Change all four at once and even rolling back won't tell you what needs fixing.
A backup is more than a saved URL. Configs you wrote, client overrides, external rule files and local settings are often stored separately. Try loading a backup copy from an independent config directory to check for file paths tied to an old device or dependencies on a remote subscription. Label old copies with the client and purpose so you don't restore an experimental config to your daily setup by mistake. Restrict access to backups containing account information, and share only the fields needed to explain a problem. For server deployments, also record the service account and working directory: the restored files may be readable, but the process may still lack permission to load them.
Narrow down the symptoms before checking logs
If every app loses connectivity, first check whether the device itself can reach the network, then look for a leftover system proxy or virtual interface. If only one app fails, compare its ingress and DNS path with a working app. If only one domain fails, focus on its rule, current outbound and any other domains the service depends on. If the issue appears only after waking from sleep or switching Wi-Fi, note the interface changes and log timestamps before reinstalling the client. The same four words—“connection timed out”—could describe all these cases the next day. Recording what triggered the problem helps narrow it down.
To troubleshoot slow speeds, compare the same destination at the same time and note whether connection setup is slow, transfers slow down midway or connections keep dropping. One latency number in a proxy group can't distinguish these stages. When changing outbounds, keep the rules and network fixed; when changing the local network, try to keep the outbound fixed. If you're testing a rule, send a new request after the config change and check the match instead of running several speed tests at once. Raise the log level temporarily, then restore normal settings after collecting what you need to avoid writing excessive connection data. For more, see Layered Troubleshooting: Proxies, Routes and Local Settings.
Roll back to a state you can test again
The right rollback order depends on the most recent change. If a new subscription won't load, restore a working config copy and confirm the group selections are back to normal. If a client update prevents the core from starting, check the relevant local logs and app settings before deciding whether to reinstall the previous version. If the change involved TUN or DNS, disable the new interception first, check the system network and then restore the config. Don't call rollback complete just because a web page opens again. Check that expected direct connections still go direct, proxied destinations use the right outbound and the network works after the app closes.
When asking the community for help, include your operating system and architecture, client and core details, ingress method, steps to reproduce and errors from the same time period. If the issue is reproducible, share a minimal config with subscription URLs, account parameters and unrelated domains removed. Report which comparisons you've already tried. “Explicit proxy works, but system proxy doesn't” is more useful than a list of ten restarts with no logs. After checking the common troubleshooting index, describe what remains unexplained. Keep one reproducible test result as a baseline for your next update or migration.
9. Config Experiments and Advanced Topics
Split the config into independently testable parts
When local rules become difficult to follow, group related entries into a rule set. Use rule-providers to define its source and reference it in the main rules with RULE-SET. Start with a local file so you don't introduce remote fetching while debugging rules. Common behavior values are domain, ipcidr and classical, for domain lists, IP ranges and collections using rule syntax. The declared behavior must match the file contents. A collection loading successfully doesn't mean the rule that references it is in the right position. The example below uses a classical rule set for a sample domain.
mixed-port: 7890
allow-lan: false
mode: rule
rule-providers:
local-domains:
type: file
behavior: classical
format: yaml
path: ./local-domains.yaml
rules:
- RULE-SET,local-domains,REJECT
- MATCH,DIRECT
payload:
- DOMAIN,example.com
Save the second snippet as local-domains.yaml in the core's working directory. The file may not be found if you start mihomo from some other directory. From the command line, run mihomo -d . -t -f ./config.yaml in the directory containing both files to check them. Then remove -t, start the core and verify the match. A graphical client may use a different working directory from the one containing the imported config, so check its core directory if the file can't be found. This test rejects the sample site and sends other requests direct using the final rule. Switch back to your daily config when done so the example rule doesn't affect regular traffic.
Make remote updates controlled changes
Before switching to a remote rule set, find out which network path the initial fetch uses, whether a local cache is available after a failed download, and what content format the collection contains. If reaching the collection requires a rule from that same collection, startup may create a dependency loop. Verify the fetch using a known-working setup before adding it to your config. There's no need to migrate all DNS and outbound traffic just for this test. Automatic updates suit lists that change often. For exceptions that must stay stable, keep a readable local copy and note whether it belongs before or after the remote collection.
Move from a desktop client to a standalone process
Once you understand the active config, try running mihomo as a standalone process in a test environment. Choose a dedicated working directory and an unprivileged account. Be clear about which files are read-only and which caches need write access. For explicit proxy use, the process does not need permission to change system routes. If you need TUN, handle its permissions separately according to the operating system. If a service manager will run the core, test foreground startup, service startup, restart and shutdown separately, and confirm the config path is consistent. Enable the management API only if needed, and don't expose an unrestricted control port to other devices.
In a headless environment, logs should make clear whether the config is unreadable, a rule set failed to load or a request was sent but could not connect. Automatic service restarts can recover from a crashed process, but they can't fix a wrong outbound selection. Repeated restarts may also bury the first useful error. Stop the restart loop and preserve the full error before checking a specific file or permission. For remote machines, plan a recovery path before changing default routes, interfaces or resolvers. Verify the basic proxy entry point locally first; there's no need to expand traffic interception to other devices in the first round.
Keep an acceptance checklist for everyday configs
Advanced setup isn't about writing the most fields; it's about predicting the effect of a change. Keep a short checklist with a destination expected to go direct, one expected to match a proxy group, a LAN service and a destination that needs special DNS handling. After each update, use a new connection to check the rule and outbound, and note any failures caused intentionally by an experiment. If the checks fail, roll back to the last working state and reproduce the issue with the smallest possible change. Devices that only need a connection can keep using the quick start guide. Return to this handbook when you need to explain a result or change traffic routing.