Configuration Guide · Beginner to Advanced

Complete Clash Configuration Guide

For your first connection, follow the Getting Started guide to install, import a profile, and verify it works. Come back here when you need to understand how traffic is routed or what happened to your changes after an update. The examples below use the Clash Nyanpasu desktop interface and mihomo configuration; menu names and supported features vary by client.

Core Concepts: Clients, Cores, and Profiles

Break the connection path into entry, decision, and exit

The client is the interface for importing profiles, switching policies, and viewing logs. The core handles incoming connections, matches rules, and establishes outbound connections. To troubleshoot a request, ask three questions: Did the app send the connection to the core? What decision did the core make with the current configuration? Could the selected outbound reach the destination? Checking in that order is more effective than switching nodes as soon as a page fails to load. A visible client window or tray icon does not mean browser or background-app traffic has reached the core.

Traffic can enter through a local proxy address configured in an app, the operating system's proxy settings, or a route handled by TUN. Rules can only take effect after a connection reaches the core. A rule matching DIRECT means the core connects to the destination directly. Traffic that never enters the core also goes direct, but without any rule evaluation. These cases can look identical in a browser; only the first appears in the same client's connection log with a matching decision.

Understand profiles, proxies, groups, and subscriptions

A profile is a configuration saved by the client. It may come from a local file or a remote URL. A profile can contain proxies, proxy groups, rules, and core settings. Items with the same name in different profiles may still have different contents. A proxy is a specific outbound option; a proxy group is a selectable target that rules can reference. A rule sends a connection to a group, whose current selection determines the actual route. Changing the selection within a group usually does not require rewriting the rules that reference it.

A subscription URL is an entry point for retrieving a configuration or resources; it is not a proxy itself. Importing a URL into the list, setting the new entry as the active profile, and routing app traffic through the proxy are three separate actions. A successful import only means the client received recognizable content. To see whether it affects connections, check which profile is active and review the connection log. A remote URL may stay the same while the server updates its rules and proxies, so saving the URL does not preserve the configuration as it was at a particular moment. For definitions of specific fields, see the glossary.

Establish a baseline with a new connection

Choose a test website that is easy to reproduce and suitable for public discussion, then open it in the same browser each time. Note the active profile, proxy mode, and system proxy or TUN status. Then open the Connections page and find the destination domain and its policy. Close old tabs or restart the test app so it creates a fresh connection; reloading may reuse an existing connection or serve content from the browser cache. One site loading does not prove all traffic follows the same route, and an exit IP alone cannot show whether a particular rule matched.

Treat DNS resolution as a separate step. Accessing a domain usually requires a lookup, and a resolution failure may happen before a connection to the destination is established. Testing an IP address can help identify which stage is failing, but domain rules, certificates, and virtual hosts often depend on the original hostname, so the two tests are not interchangeable. If only one app fails, keep the current configuration and compare it with an app known to follow the system proxy. Verify the traffic entry point first, then check the policy and outbound route to avoid conflating failures at different stages.

Client Comparison: Platforms, Architectures, and Profile Compatibility

Choose a platform, then decide how you want to use it

For a first install, start with the downloads page. Clash Plus is our recommended option for Windows, macOS, Android, and iOS; on Linux, start with the recommended Clash Verge Rev. To follow the desktop examples in this guide for sections such as Profiles, Connections, and Rules, choose Clash Nyanpasu from the Windows downloads. It is a desktop client; mobile apps are separate options. Don’t send a desktop installer to your phone or assume a setting with the same name on your phone changes the PC’s configuration.

Your platform determines how to install the client and how traffic reaches it. Desktop browsers can often be tested with the system proxy; mobile clients typically use the system VPN interface to handle traffic. If another VPN app is already active on your phone, first check whether the OS allows both to run and whether pausing the existing connection could affect work authentication. If you only need to import a profile and switch policies, there’s no need to start with the most feature-rich option. For rule editing or troubleshooting, check whether the client provides rule-match details, connection information, and logs.

Platform options and pre-install checks
PlatformRecommended optionsCheck before installing
WindowsClash Plus, Clash Verge Rev, FlClash, and Clash Nyanpasu; Clash for Windows is archivedSystem architecture, installation permissions, existing proxy software
macOSClash Plus, Clash Verge Rev, and FlClash; ClashX Meta is archivedApple silicon or Intel; whether the device is managed by an organization
AndroidClash Plus、Clash Meta for Android、FlClash、SurfboardApp architecture, installation permissions, current VPN status
iOSClash Plus, available from the App StoreSystem requirements listed in the store, device configuration restrictions
LinuxClash Verge Rev、FlClashDistribution, package format, processor architecture

Check architecture, package format, and device permissions

A single operating system can support multiple processor architectures. On Windows, check System type under Settings → System → About. On macOS, open About This Mac and check whether it lists a chip or an Intel processor. On Linux, run uname -m to see the architecture reported by the system; x86_64 commonly corresponds to AMD64, while aarch64 corresponds to ARM64. Linux packages must also match the distribution’s package manager. Even with the same architecture, you can’t substitute a package for another distribution just by changing its file extension. If the downloads page has no matching package, choose another client that supports your architecture on the same platform.

Archived clients can be useful for checking compatibility with older setups, but they’re not a good default for a new configuration. An older app may read an existing subscription but fail to recognize newer fields or protocols. Before migrating, export anything you need to keep; don’t rely on the old app’s data directory as your only backup. The mihomo core is for users who want to manage configuration, services, and logs themselves. Running the core alone does not provide a desktop settings interface. For simply importing a subscription and toggling the proxy, a GUI client is a better fit.

Test compatibility with an existing profile

An Import button doesn’t mean a client supports every subscription format. Check that the provider offers Clash or mihomo output, look for a client-specific option, and test with a copy. After importing, check that proxy groups appear, rules load, and each group has a selectable outbound. When moving between desktop clients, also check whether overrides, startup options, and group selections are stored locally by the client. For a closer look at the differences, see Desktop and Mobile Client Comparison.

When switching devices, keep one verified setup and compare results on the new device using the same destination. Don’t uninstall the old client, replace the subscription, and change the system proxy all at once. A proxy group with the same name in a new client only proves that the profile contains that name; it doesn’t prove the group chose the same outbound. If the old device works and the new one doesn’t, first compare supported profile formats and traffic entry methods, then check ports, group selections, and permissions. Identifying the missing capability is more useful than repeatedly reinstalling clients.

Installation and Setup: Startup, Permissions, and Local Ports

Treat installation and traffic handling as separate steps

Choose your operating system and architecture on the downloads page. After installation, open the client without enabling launch at startup or automatic traffic handling. Check that the main window opens, Settings is accessible, and the logs show no core startup errors. Confirm that the interface and core work with standard permissions first; grant additional permissions only when you need TUN or mobile traffic handling. If the device is managed by your organization, check its policies on app installation, system proxies, and VPNs. Don’t weaken global security settings just to complete an installation.

On Windows, open the client from the Start menu and note where its icon appears in the notification area. On macOS, follow the installer’s instructions and launch the app from Applications. If macOS blocks it, read the alert and identify whether the package is incompatible, permissions are restricted, or the app failed to launch. On Linux, use the package manager for your distribution. If dependencies are missing, read the error and verify that the package format matches your system before launching from the app menu or another supported method. Fix installation issues first; don’t edit subscription contents while the app won’t open.

Check listening ports and keep them local

Desktop clients commonly provide local HTTP, SOCKS, or mixed proxy ports. mihomo’s mixed-port accepts both HTTP and SOCKS connections on the same port, but system proxy or app settings still need to use a supported protocol. The local example below illustrates the fields; it is not a remote subscription and contains no proxies. A GUI client may override ports through its own settings, so check the effective configuration and actual listening status. If you don’t need to share access with other devices, keep allow-lan: false.

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

The example’s fallback rule sends traffic that reaches the core directly, making it useful for checking the entry point and connection log; it does not create a proxy outbound. If the logs report that an address is already in use, check whether another proxy tool is still running in the tray or background. On Linux, use the command below to inspect TCP sockets listening on the example port; process details depend on your permissions. If you change the port, update any proxy address entered manually in the OS or an app. Don’t kill an unfamiliar process just to free the port.

ss -ltnp 'sport = :7890'

Test one entry point at a time and keep changes reversible

If you already have an older client, note the system’s original proxy settings before quitting it and check for leftover local addresses or automatic configuration scripts. After starting the new client, either point an app with manual proxy settings at the example port or enable the client’s system proxy feature—start with one method. Make a new connection and check the Connections page or logs for the destination. Seeing the request confirms the entry point works, but you still need to check resolution and outbound results; a listening port does not prove an internet connection was established.

On Android and iOS, you can leave the client open at first and wait to start the connection until after importing and selecting a profile. The OS may ask to add a VPN configuration. After granting permission, return to the client and check its status, then verify with a regular request. To disconnect, stop the connection in the client first and confirm in system settings that the VPN session has ended. On desktop, turn off the system proxy or TUN before quitting. If only the browser loses access after you exit, check whether it still points to a local port that is no longer listening. Practice this shutdown sequence before moving on.

Subscriptions and Profiles: Import, Switch, and Override

Check the format, then add the profile to the list

Open the client’s Profiles page and follow the Getting Started import steps. Use the client’s URL import option for a remote subscription and its file import option for a local profile. Keep the full URL when copying it, but don’t paste it into chats, online formatters, or public support threads. The path and query parameters in a remote URL may grant access. If you have several URLs, prefer the one the provider explicitly labels for Clash or mihomo. If you’re unsure, ask which format it provides instead of repeatedly trying third-party subscription converters.

After import, a new entry should appear in the list, usually with its name, source, and status. Give it a clear local name to distinguish your everyday profile, backup subscription, and test copy. Use the entry menu or list selection to make it the active profile, then check whether the expected proxy groups appear on the Proxies page. Keep the old profile until the new one passes testing. If several entries have similar names, don’t rely on the displayed name alone; confirm the source type and the client’s active-profile indicator.

Tell download, parsing, and application errors apart

If a download fails, check the logs for a timeout, certificate warning, or HTTP status code. Expired credentials, denied access, and an incorrect URL may return a web page instead of YAML. Even a successful request might return a login page or content meant for a different client. Check the subscription status in the provider’s account page, and verify that the system clock and network are correct. If subscription requests are configured to use the proxy, consider whether a broken active profile could create a dependency loop. Restore access with a verified profile, or use the client’s supported direct-update option if the network allows it.

If the received content triggers a YAML error at a specific line and column, check the indentation, list markers, and colons on that line and the one before it. Use spaces consistently. Parsing successfully doesn’t guarantee the profile can load: it may reference a missing proxy group, provider, or rule set, or include a field the current core doesn’t recognize. Find the first configuration error in the logs, then decide whether to fetch the correct subscription again or fix the reference in a local copy. If parsing succeeds but a group is empty, check whether its remote provider loaded successfully.

Manage remote updates and local changes

A remote update usually replaces the subscription’s original content with the latest content from the provider. To keep port, rule, or policy changes, first check which override or extension methods your client supports. Merge behavior differs between clients: entries aren’t necessarily appended at the end, and overrides don’t necessarily follow rule priority. If there’s no suitable override option, keep a separate local copy for testing and remember it won’t update with the remote subscription. Keeping these approaches distinct prevents changes from disappearing at the next update.

Before enabling automatic updates, do one update manually. Note the old profile’s active group and selection, then review the update report and confirm that the groups and rules you need are still present. Make two fresh, representative requests. If the upstream renames a group, an override that references the old name may stop working, and the client may restore its default selection. When saving a local copy, include its source and the latest test result so it won’t be mistaken for a live subscription later. For migrating and switching between profiles, see Getting Started with Profile Management.

Proxy Modes: Rule, Global, and Direct

Set traffic handling and proxy mode separately

The system proxy and TUN determine whether traffic reaches the core; the mode determines what happens after it gets there. Switching from Rule to Global won’t make an app that ignores the system proxy start using it. Likewise, enabling the system proxy won’t switch the mode to Global. In a desktop client, first check traffic handling in the main window or tray, then check the current mode on the Proxies page. For apps with their own proxy settings, make sure they haven’t been configured with a different address that bypasses the OS settings.

Rule mode is a good default: start by understanding how the profile distinguishes direct from proxied traffic. Global mode is useful for a brief comparison because it sends traffic entering the core to the global policy, removing rule matching as a variable. The global policy may still select DIRECT or an unavailable outbound, so check its current selection after switching. Direct mode helps test whether a destination is reachable without a proxy outbound. To fully restore the system’s normal network path, disable traffic handling instead of switching to Direct.

Where traffic goes after entering the core
ModeHow it worksUseful for checking
RuleMatches rules in order and sends the connection to the policy that matchesWhether a specific domain reaches the expected proxy group
GlobalUses the global policy and its current selectionWhether the issue still occurs with a fixed outbound
DirectThe core attempts to connect directly to the destinationWhether the destination is reachable without a proxy outbound

Compare modes using the same destination

In Rule mode, test and note the matched rule, proxy group, and actual outbound. Keep the traffic entry method and profile unchanged, switch to Global mode, select a known-good outbound, and make a fresh connection. If Global works but Rule doesn’t, switch back and check whether the request matched an unintended DIRECT or REJECT rule, or a different group. If both tests happen to use the same outbound but produce different results, check whether an old connection was reused or a redirect changed the destination domain.

If neither mode produces a connection entry, check the app’s proxy settings or TUN routing first. If an entry appears but both tests fail, check whether the group has a usable selection and whether the logs show a resolution error, connection timeout, or remote rejection. A failure on one website doesn’t mean the whole client is broken; one app may send separate requests to domains for login, static assets, and APIs. Find the requests around the failed action in the Connections page, then test the destination most likely to be causing the issue. For a step-by-step checklist, see Connected but No Internet: Troubleshooting Checklist.

Distinguish sessions, speed tests, and real requests

Changing the mode or proxy group mainly affects new connections; existing downloads, long-lived connections, and background tasks may keep using the old route. Save any work in progress before switching, and end only the relevant app sessions when testing—you don’t need to close every connection to check one website. When troubleshooting is done, restore your everyday mode and verify a service that should go direct. Leaving a temporary Global policy active can cause unexpected behavior for company services, printer pages, or LAN admin pages that normally bypass the proxy through rules.

Proxy speed tests usually measure whether the client can reach a specific probe and how long it takes. A successful test doesn’t mean every service domain will work, and a failed test doesn’t mean every real request will fail. If you use an auto-select group, its selection may change between tests. For short-term troubleshooting, choose a fixed, known-good option as a baseline, then restore the original setting. Record the test destination, mode, and actual outbound so you can tell what changed next time.

Rule-Based Routing: Match Order, Proxy Groups, and Verification

Read each rule as “condition → policy”

A typical domain rule has three parts: type, match value, and target policy. DOMAIN matches an exact domain; DOMAIN-SUFFIX matches a domain and its subdomains. IP-CIDR matches an IPv4 range, while IP-CIDR6 is for IPv6. DIRECT and REJECT can be used as actions, or a match can be sent to a proxy group defined in the profile. Group references must match the name exactly, so watch for spaces and easily confused characters.

Rule mode checks rules in the order they appear in the profile. A broad rule near the top can handle requests across its entire range, making a more specific exception below it ineffective. Before editing, find the rule currently matching the request, then put the more specific exception above it. MATCH catches traffic that didn’t match anything earlier and usually belongs last. The snippet below shows domain-rule order; its example traffic goes direct. To add it to an existing profile, find the insertion point in the current rules list instead of adding another top-level key with the same name.

rules:
  - DOMAIN,example.org,REJECT
  - DOMAIN-SUFFIX,example.com,DIRECT
  - IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
  - MATCH,DIRECT

Understand the limits of domain, IP, and DNS rules

Domain rules match the domain the core uses to make a routing decision, not the entire URL shown in the address bar. Don’t include the protocol, path, query string, or port in the domain field of a DOMAIN rule. If an app connects directly to an IP address, resolves the domain outside the core, or makes a request after a redirect, the core may not know the hostname originally entered. Check the connection log for the host or destination address it actually recognized. Then decide whether to add a domain rule, an IP rule, or fix the traffic entry and resolution path first.

The no-resolve option on an IP rule tells it not to actively resolve a domain to an address for that rule. It doesn’t disable global DNS or guarantee the connection won’t be resolved. If the destination is already a recognizable IP address, the rule can still match. If the destination is only a domain, don’t assume the rule can determine its final address range. An exception involving both IPv4 and IPv6 may need to account for both address families. For basic DNS terminology, see Networking and DNS Terms.

Make the smallest change and verify each match

Keep three types of test case: a destination that must be rerouted, a nearby destination that must stay on its current route, and one that should use the default policy. Add one rule to a local copy, apply it, and confirm there are no loading errors. Then make each destination establish a fresh connection. Record the matched rule, not just whether the site loaded: if the fallback happens to use the same outbound, a successful request can hide a non-working exception. If the connection shows the expected action but the request still fails, investigate DNS, the outbound, or the destination service instead of moving the rule again.

With a remote rule set, the rules section references the name of its provider. The download URL, data format, and rule behavior are defined by that provider. Before adding one, verify that the source is trustworthy and its behavior type is appropriate, then confirm the core actually loaded it—not just that the definition was saved. Even a successful update can let a broad rule set take precedence over a fine-grained exception, so check the order. Before removing an old rule, check whether it handles a less common but important use case. Keeping test notes and the original order makes rollback faster than rebuilding from memory.

TUN Mode: Use Cases, Routing, and DNS

Use TUN when an app doesn’t follow the system proxy

The system proxy depends on whether an app reads and follows the operating system’s settings. TUN uses a virtual network interface and routes to send eligible traffic to the core. It’s commonly used for desktop apps that have no proxy option of their own and don’t follow the system proxy. TUN expands which traffic can enter the core; it doesn’t add usable proxies or mean all traffic received by the core uses a proxy outbound. In Rule mode, traffic is still routed according to the profile. Whether UDP works on a given route depends on the protocol, policy, and outbound support.

Start with a baseline you can restore: turn off TUN and confirm the client opens and the profile works on a normal network. Then use the system proxy to test an app that follows the configured settings. When switching to TUN for comparison, turn off the system proxy if it isn’t needed for the test, and make sure the test app isn’t manually pointing at another local proxy. On desktop, look for TUN mode in Clash Nyanpasu’s settings or tray. Follow the client’s instructions if it requests permission for a trusted component. If a work VPN, virtual machine, or container network is already in use, note its status and any internal destinations you need to reach.

Understand automatic routing and outbound selection

This snippet shows common fields in a mihomo configuration for matching the client’s traffic handling, automatic routing, and outbound interface detection. It is not a complete configuration. auto-route lets the core set up the routes needed for traffic handling, auto-detect-interface detects the outbound interface, and stack selects the network stack used to process incoming traffic. The fields’ behavior depends on the OS, permissions, and client integration. If the client has its own TUN settings, enable TUN there first to avoid the interface and configuration file both changing the same option.

tun:
  enable: true
  stack: mixed
  auto-route: true
  auto-detect-interface: true

On a computer with only one active internet route, automatic detection is often a good starting point. When Wi-Fi, Ethernet, or a VPN are active at the same time, the default route may change when you switch networks. The result can be a setup that works initially but fails after waking from sleep or connecting Ethernet. Check whether the failure coincides with an interface change, then compare with only one controlled network active at a time. If internal services become unreachable with TUN enabled, a DIRECT rule in the core only determines the outbound method; it may not restore the original system route or internal DNS resolution. Check the permitted routing exceptions and DNS settings for your organization.

Troubleshoot DNS and routing separately

If only domain access fails after you toggle TUN, first check the logs for resolution errors and compare the same destination with TUN off. The client may use the core’s DNS settings or handle some requests through DNS interception. Browser Secure DNS, the system resolver, and other VPNs may also be involved. DNS leaks concern who actually sends queries and where they go; a “connected” proxy status or a website failing to load cannot tell you that on its own. Identify which layer handles that app’s DNS queries before changing any settings.

If traffic handling stops working, turn off TUN in the client first. Confirm that any mobile VPN session or desktop virtual interface handling has stopped, then restore the entry method you previously verified. If the issue remains, check for leftover system proxy settings, another VPN handling the default route, and problems with the network itself. Don’t reset all network settings to test one toggle. Once you can reproduce the issue, change one condition at a time and record results before and after switching networks, waking from sleep, and restarting the app. Keep the original profile as a rollback point.

Maintenance: Updates, Backups, and Troubleshooting

Update the app, core, and subscription separately

Client updates can affect the interface, permission integration, and local settings. Core updates can change how fields are interpreted, network behavior, and protocol compatibility. Subscription updates may change proxies, rules, and group names. If the client updates the app and core together, treat it as one change. Keep the current working profile and avoid changing routing rules or switching subscription sources on the same day. Don’t troubleshoot during a period when you need a stable connection. Run a baseline test before the update and repeat it with the same app and destination afterward to make the results easier to compare.

A useful backup must be restorable, not just an installer saved for later. Keep track of remote subscription sources, local overrides, standalone YAML files, and client-specific settings; subscription exports often don’t include local selections. Store backups in controlled local or encrypted storage, and don’t put profiles containing credentials in a public repository. Test reimporting a copy and confirm the proxy groups and rules you need are still there. If the backup depends on remote providers, make sure those sources are available during recovery. Keep at least one previously verified profile instead of overwriting the same copy each time.

Choose a troubleshooting path based on the scope

If only one app fails, first check whether it appears in the connection log and compare its entry method with that of an app that works. If only one destination fails, check its domain and matched rule, then retry using the same outbound. If no apps can connect, turn off traffic handling and test the normal network. If that fails too, troubleshoot the network or system first. If the normal network works but traffic handling breaks it, check the local listener, system proxy, TUN, DNS, and proxy groups in sequence. This is faster than testing every proxy in the list first.

If every proxy times out, first check that the subscription is still valid, the client updated successfully, and the system date and time zone are correct. Then check the port and traffic entry point. A probe address can also be unreachable on its own, so test at least one real destination. If two independent networks are available, compare them with the same settings, but don’t connect a managed device to an untrusted network just to test. For a step-by-step order, see Troubleshooting When All Proxies Time Out.

Capture logs from a minimal reproduction, then roll back

Start with the current log level, note the test window, and reproduce the issue once. Find the first clear failure, such as a profile load error, port conflict, resolution failure, or connection timeout; many later retries may have the same cause. Raise the log level briefly only if you need more detail, then restore the usual setting so a flood of messages doesn’t hide other events. When reporting an issue, include the OS, client version, traffic handling method, mode, expected behavior, and actual result. Redact private information. The site’s FAQ is a useful first stop for similar symptoms.

Rollback should restore a working state; you don’t have to undo every setting you tried at once. Stop the failing entry method, switch to a known-good profile, restore the port or proxy settings if needed, then verify with a fresh connection. If the remote profile has since updated, switching back to the same entry won’t restore its old contents—use a saved local copy instead. Record which change actually helped and how you verified it. If the issue disappeared but you can’t identify why, note that too rather than treating a coincidental improvement as a proven fix.

Advanced Topics: Maintainable Profiles, Retesting, and Migration

Keep one profile for daily use and another for experiments

Keep only verified settings in your everyday profile. Use an experimental profile to test rules, overrides, and TUN options. Give each test an observable goal, such as routing one domain to a specific group while keeping nearby domains on their existing routes. Record the current mode, traffic entry method, and group selection before and after the test. Switching profiles doesn’t necessarily reset the whole environment: the client may manage ports, system proxy settings, and service permissions globally, so switching back may not restore them.

Organize configuration into three layers: the source layer retrieves proxies or the original subscription; the policy layer organizes outbound choices; and the rules layer maps traffic to policies. If the client supports it, keep your rules separate from upstream content. When the upstream updates, first check whether group names or referenced resources changed, then see whether new entries now match ahead of your local rules. Before adding a group, ask whether it represents a distinct routing need or simply adds another selection point for the same set of outbounds. Clear group names make connection logs easier to interpret.

Turn test scenarios into a repeatable checklist

Don’t just check whether a website loads. Prepare at least one destination expected to go direct, one expected to use a specified policy, and one app that depends on a different traffic entry method. Add internal services to your acceptance tests if needed, but don’t put real internal domain names in public documentation. For each scenario, record the steps, expected match, and rollback method. When testing multiple conditions, hold one baseline constant—for example, the same app, domain, and network—then change the policy group or entry method separately. Otherwise, different results may come from a network switch, cache, or setting, and you won’t know which.

To investigate DNS, trace one domain end to end: who sends the query, which resolver handles it, whether the core sees a domain or an IP address, and which rule matches. If the destination remains reachable after changing DNS, check whether the new resolution path was actually used. Add advanced settings in response to a symptom or a specific need, such as separating internal DNS from regular lookups, rather than adding several resolvers all at once. Every additional layer of complexity should have its own test and a way to turn it off.

Move from a GUI client to the core only when there’s a clear need

A GUI client is suited to frequent switching and interactive troubleshooting. Consider the standalone mihomo core if you need long-running operation, system service management, or startup and shutdown steps integrated into an operations workflow. Before migrating, list what the client has been doing for you: selecting a profile, overriding ports, downloading rule resources, setting up traffic handling, saving group selections, and managing service permissions. The standalone core only runs the configuration and startup options it receives; it won’t automatically reproduce the other settings managed by a GUI client.

In a controlled environment, first verify startup, listening, and shutdown with a minimal configuration. Then add one known-good policy, one exception, and the resources you need. For long-running use, plan log retention and retesting after network recovery. If other devices will use it, design access controls and device boundaries separately instead of reusing desktop troubleshooting settings. A successful migration means more than a process that stays running: you need repeatable test results for key apps and a reliable way to stop traffic handling and restore the original network. That gives you a baseline for adding rules or changing sources later.