How Are Profiles, Subscription URLs, and Local YAML Files Different?

A profile is a configuration that the client manages and lets you switch between; a subscription URL is just one possible source for it. Importing two subscriptions usually creates two profile cards. Switching normally uses one profile as the active configuration—it does not automatically combine the proxies, proxy groups, and rules from both. To change only the proxies in the current profile, go to the Proxies page. To switch rules and proxy groups too, switch profiles from the Subscriptions or Profiles page.

Configuration source and update behavior
TypeHow it works in the clientWhat happens when it updates
Remote profileFetched from a subscription URL and saved as a selectable profileRefreshing fetches the latest remote content; edits made directly to the subscription file may be overwritten
Local profileImported from a YAML file on disk; useful for keeping a fixed configuration or testing rulesChanging the original file does not necessarily update the copy in the client; behavior depends on how it was imported
Configuration overrideAdditional changes the client applies when loading the base configurationWhether overrides follow a profile and how lists are merged depends on the client and the override method

“Subscription” can mean different things: some URLs return a complete Clash YAML file, while others provide only a proxy list or a format for another client. A .yaml extension is not a reliable indicator; URLs without a file extension can still return valid configurations. After importing, make sure the core can load the file. For example, older Clash cores may not recognize fields or protocols supported only by Mihomo.

Import two subscriptions and switch between profiles

  1. Keep a copy of your current configuration first. In Clash Verge Rev, open the Subscriptions page and note the name of the active profile. If you have edited its rules, save that YAML file locally. Subscription URLs may contain access tokens, so do not include the full URL in screenshots, public logs, or online conversion tools.
  2. Import each subscription separately and give it a name. On the Subscriptions page, paste the first URL into the import field and click Import. Once it succeeds, import the second URL. Use Edit in each card’s menu to rename the profiles—for example, “Daily” and “Backup.” Menu labels may vary by version. Make sure you are editing a subscription card, not renaming a proxy on the Proxies page.
  3. Select the backup profile and check its proxy groups. Click the backup subscription card and make sure it becomes active; check the logs for loading errors. Then open the Proxies page and verify the group names, available proxies, and selected proxy. Even if both subscriptions have a group named PROXY, its members and default selection may differ. Switching profiles does not select a proxy for you.
  4. Test with a new connection. Leave the system proxy or TUN setup unchanged so you are not changing two variables at once. Confirm the client is in Rule mode, then reopen a test page or reconnect the app. Check the matched rule and outbound connection on the Connections page or in the logs. Existing connections may keep using the route they started with, so they are not a reliable way to test the new configuration.

If you suddenly lose connectivity after switching, switch back to the profile that was working. If the old profile restores access, check the new profile’s loading errors and proxy group selections first. If neither profile works, check the system proxy, TUN, and port settings. On Windows 11, go to Settings → Network & internet → Proxy and confirm that the manual proxy port matches the port the client is actually listening on.

What subscription update interval should you use?

First, manually update the new profile from the Subscriptions page. After it succeeds, open Edit for that card and check whether an update interval is available. If the current version uses minutes, 1,440 minutes equals 24 hours—a reasonable starting point for long-term use when the subscription changes infrequently. Check the unit shown in the interface and follow the provider’s update limits. If you rarely use the backup profile, update it manually before switching instead of setting it to the same interval as your main profile.

  • Updating and activating are separate actions. After updating the backup card, check which profile is still active. After updating the active card, confirm that the new content has reloaded and that your previously selected proxy is still available.
  • Check the timestamp instead of guessing. Do not assume scheduled desktop updates run while the client is closed or the system is asleep. After resuming, check the last successful update time and refresh manually if needed.
  • Distinguish subscription updates from core resource updates. In Mihomo configurations, the interval under proxy-providers or rule-providers is measured in seconds; for example, 86400 seconds is 24 hours. This controls how often that resource refreshes, not the update interval for a subscription card in the client.

If a manual update fails, first determine whether the error occurred during download or parsing. HTTP 403 means the server rejected the request; check whether the URL has expired or the provider restricts access. An HTTP 200 response might still be a login page rather than a configuration. If the logs report a YAML parsing error on a specific line, shortening the update interval will not help. Check the subscription format and core compatibility instead.

How do you import and maintain local YAML files?

Save configurations you manage yourself in a separate folder, such as clash-config/local-test.yaml, rather than editing a subscription copy in the client’s cache directory. Whether the client copies the file depends on how you import it. With a copy-based import, changes to the original require reimporting it or applying them through the client’s configuration editor. Cards with identical names are easy to confuse, so add a purpose or revision number when importing.

Verify that your local configuration works with two rules

This Mihomo configuration is for local testing only and does not require proxy nodes. 7890 is an example port; the client’s own port settings may override it. Use the listening port shown in the client for testing. If the port is already in use, choose an available one, such as 7891, and update the manual proxy settings to match.

mixed-port: 7890
allow-lan: false
mode: rule
rules:
  - DOMAIN,example.com,REJECT
  - MATCH,DIRECT

Save the file as UTF-8 and use spaces for indentation. On the client’s Subscriptions or Profiles page, use the file import option. If your version only lets you create a local profile, create one, paste this content into the editor, and save it. Select the profile, confirm that browser traffic is reaching the core, then open a new connection to https://example.com/. The logs should show the domain matching REJECT. Next, visit https://example.org/; it should use DIRECT. Check the matched rule and outbound connection, not whether the page loads: direct access also depends on your network. Switch back to your original profile when you finish.

How can you preserve custom rules with overrides?

If you only need to add a few rules to a subscription, keep those changes outside the subscription. If the client supports per-profile extra rules or overrides, add them to the relevant card. If it only offers global overrides, first confirm that they also apply to the backup profile. Merge behavior varies between versions. In particular, do not assume that adding a rules: list will automatically prepend its entries to the existing list; some operations replace the entire list.

  1. Test rule placement with a built-in policy first. For example, add an exact rule for a test domain that points to DIRECT. Mihomo evaluates rules from top to bottom and uses the first match. If your new rule comes after an existing MATCH, the request will never reach it. If you use a prepend-rules feature, make sure it does not take precedence over more specific rules that should match first.
  2. Then reference the subscription’s proxy groups. Before setting a rule’s target to a proxy group, check the group name character for character. A group in your main subscription may not exist in the backup. For a shared override, start with DIRECT and REJECT rules that work with both profiles, and keep rules that reference specific groups with the profile they belong to.
  3. Refresh once, then switch back and forth. Manually update the main subscription and start a new connection to confirm your custom rule still matches. Then switch to the backup and repeat the test. If the rule disappears, check the active card, the scope of the override, and the order of the merged rules—in that order. If the rule is still there but does not match, check the operating mode and confirm that test traffic is actually reaching the core.

If your current client does not provide a suitable override option, save a separate local YAML copy and make your rule changes there, while keeping the remote subscription as the update source. This preserves your edits but does not automatically add new remote proxies. You will need to compare and merge changes manually, especially references to proxies in proxy groups.