Profiles: Configuration Sources and the Active Configuration
A Profile is a configuration managed on the Clash Verge Rev “Profiles” page. Remote Profiles fetch YAML from a subscription URL; local Profiles use YAML that you import or create. Once you select a Profile as the active one, the client processes it along with any applicable extensions before passing it to the Mihomo core. The source YAML on disk, the generated runtime configuration, and the currently selected node in a proxy group are three different things to check.
Switching Profiles replaces the entire base configuration, so nodes, proxy groups, and rules may all change. Switching nodes on the “Proxies” page changes only the selection in the current proxy group. Rule, Global, and Direct are the core’s outbound modes. If you only want to change routes within the same subscription, switch nodes instead of importing the subscription again or changing Profiles.
| Source | Update method | Best for |
|---|---|---|
| Remote subscription | Manually or on a schedule, request the subscription URL again | Nodes and rules maintained by the subscription provider |
| Local YAML | Edit the local configuration managed by the client, or import an updated file | Custom rules, isolated testing, and keeping a rollback version |
Import a Subscription and Set Its Refresh Interval
Remote subscriptions: verify a manual update first
- Open “Profiles,” paste the Clash- or Mihomo-compatible link provided by the subscription service into the URL field, and click “Import.” A web dashboard URL, a view-only share page, or a link to a single node is not the same as an importable YAML subscription.
- Give the new Profile a name that makes its purpose clear, such as “Work” or “Daily backup.” First confirm that it appears in the list, then select it and check the proxy groups on the “Proxies” page. This helps distinguish “the configuration was downloaded” from “the core has loaded the configuration.”
- In “Profiles,” right-click the relevant entry and open “Edit info” to find the “Update interval” field. Its location may vary between 2.x versions. If the field is in minutes, enter
360for every 6 hours or1440for every 24 hours. Save, then use the entry’s menu to run a manual update and confirm that the URL is reachable and its contents can be applied.
Set the refresh frequency according to the subscription provider’s update cycle and rate limits. If an update fails, first determine whether the error is a network timeout, an abnormal HTTP response, or a configuration parse failure. Then decide whether to check the network, renew the subscription, or change its format. Subscription URLs often contain access tokens; redact the full URL, especially its query parameters, in screenshots, error logs, and shared notes.
Local YAML: confirm which file you are maintaining
Use the local-file import option on the “Profiles” page, or choose the local type under “New,” then add the YAML to the corresponding configuration. After importing, use the client’s entry menu to open the configuration and check whether it matches the source file on disk. Do not assume that editing YAML in its original directory will update an imported Profile. If the client manages a copy, edit that copy or import the updated file again.
Use spaces for YAML indentation. After renaming a proxy group, also check the outbound targets in rules and references to that name in other proxy groups. If a rule points to a group name that does not exist, the core may fail to load the configuration even when the YAML syntax is valid.
Global Merge: Keep Shared Settings in an Override Layer
The source content of a remote Profile is replaced when the subscription updates. Changes made directly to a remote entry’s YAML may be lost on the next refresh. To share fixed settings across multiple configurations, open “Global Extension Configuration” (Merge) on the “Profiles” page and put the changes in a separate YAML layer. After saving, select or reapply the target Profile, then check the result.
This Merge example enables Mihomo’s proxy-group selection memory. It demonstrates a narrow override: include only the fields you want to change instead of copying the entire subscription.
profile:
store-selected: true
Saving this setting does not migrate the previous Profile’s selected nodes to a new Profile. After switching Profiles or refreshing a subscription, check the selections on the “Proxies” page again if a group name has changed or a node has been removed from its group. Global Merge affects other Profiles that use this extension layer. If you only want to modify a self-managed configuration, maintain the changes in that local YAML instead.
Global Script: Insert Rules Conditionally
Use “Profiles” → “Global Extension Script” (Script) when you need to check existing fields, avoid duplicate entries, or change list order. The client passes the configuration object to main; the script must return the modified configuration object. The example below uses the reserved domain probe.example to place an exact-domain rule before the existing rules while keeping their order intact.
function main(config) {
const rule = "DOMAIN,probe.example,DIRECT";
const rules = Array.isArray(config.rules) ? config.rules : [];
config.rules = [rule, ...rules.filter((item) => item !== rule)];
return config;
}
In Rule mode, Mihomo checks rules in order. If this rule comes after the fallback MATCH, a request may hit the fallback before reaching it. DIRECT is a built-in outbound and does not depend on both subscriptions having a proxy group with the same name. probe.example is only for checking whether the rule was generated correctly, not for testing connectivity. To verify real traffic, replace it with a domain you are authorized to test and that is reachable.
Where possible, maintain each field in only one extension layer. If both Merge and Script handle rules, back up their contents first, then remove one change at a time and reapply the configuration to identify which layer introduced the problem. If a script errors, restore the last working version first, then check that the function returns the configuration and that the rules field is an array. Use only extension scripts from trusted sources whose contents you can review.
Switching Between Profiles: Verify, Isolate, and Roll Back
- Keep the old Profile. Import the new configuration as a separate entry and note the old entry’s name, current proxy mode, and selected nodes in commonly used groups. Do not overwrite your only working configuration with a test file.
- Change one variable at a time. When switching to the new entry on the “Profiles” page, leave the system proxy, TUN, and outbound mode unchanged at first. Confirm that the configuration loads, then test traffic handling separately. This helps distinguish YAML or extension errors from traffic that is not reaching the core.
- Check proxy groups and matched rules. On the “Proxies” page, confirm that the target group exists and the selected node is still in it. In Rule mode, open an accessible test site, then check the domain, matched rule, and outbound route on the “Connections” page. A latency test only shows that a node responds to the test address; it does not prove that an application’s request used that node.
- Roll back both layers if needed. Switch back to the old Profile and make a new request instead of using an existing long-lived connection to judge the result. If the old configuration also stopped working after the same change, check Global Merge and Script. Switching back to the old Profile does not undo global overrides, so also restore the last working extension version.
If the rules and proxy groups are present but you cannot see the test request, check the traffic entry point first. The system proxy only affects applications that follow that setting. TUN uses a virtual network interface to capture traffic covered by its routing configuration. To set a proxy manually in an application, check the actual listening port under “Settings” → “Parameters.” For example, if the mixed port is 7897 and the application and client are on the same machine, you can point an application that supports HTTP proxies to 127.0.0.1:7897. If the interface shows a different port, use that value; do not treat the example number as fixed.
For future maintenance, keep three easy-to-identify records: the active Profile, the last working extension configuration, and a repeatable test request. If a subscription update causes a problem, check first whether the core loaded the configuration, then whether traffic reached it, and finally the rules and proxy-group selections. Troubleshooting in this order avoids reimporting a subscription, switching nodes, and changing TUN all at once.