· Getting Started · 8 min read

What Is a Clash Profile? Manage Multiple Subscriptions and Local Configs

Learn how Clash profiles, subscriptions, and local YAML files differ. Find out how to name, switch, and back up multiple configs, and keep overrides from being overwritten by updates.

Clash Profiles vs. Subscription Links vs. Local YAML

In Clash desktop clients with a graphical interface, a profile usually means an entry on the “Subscriptions” or “Profiles” page. When you import a URL, the client saves the source address, downloads the config, and stores it locally. When you import a file, the source is the YAML you select, and there usually isn’t a full-config URL the client can refresh on a schedule. You can keep multiple profiles in the list, but only the config currently selected and successfully loaded by the core handles traffic.

ItemWhat it controlsHow to check
Subscription linkWhere the client fetches its remote config.Open the entry’s edit menu to view its source. Don’t screenshot or share links that contain tokens.
Local YAMLDefines items such as proxies, proxy groups, and rules through configuration fields.Check the imported file or the copy saved by the client. Changes to the original file may not appear in an imported copy.
Active configThe config currently used by the core, possibly combined with overrides or client settings.Check which entry is selected, then review the logs and connection details to confirm what loaded and which rules matched.

Two other terms are easy to mix up. In Mihomo YAML, profile is a config field with options such as store-selected, which controls whether the core saves proxy group selections. It isn’t the profile list in the graphical interface. proxy-providers refers to a collection of proxies used by a config. A local YAML file that references a remote provider may not refresh as a whole from a URL, but the provider’s proxy list can still update according to its own settings.

Import Multiple Subscriptions and Name Them by Use

For example, in the Chinese-language desktop interface of Clash Verge Rev 2.x, open “Subscriptions” from the sidebar, paste a URL into the import field, and click “Import.” To add a second URL, use the import option again—don’t edit the first entry’s source address, or the two subscriptions won’t have separate entries. To add a local YAML file, go to “Subscriptions,” click “New,” choose the local option, and select the file. Button locations may vary between minor versions; the key is to create a new entry rather than replace an existing one.

Put the purpose first and the source type after it. Don’t include a full URL or access token in the name—it appears in the sidebar and in screenshots. When organizing existing entries, change their display names first, then verify each source. Two entries with the same name can point to different addresses, and different names don’t guarantee different sources.

Switch Between Subscriptions and Verify the Active Config

  1. On the “Subscriptions” page, note the currently active config and, on the “Proxies” page, the selected member of your usual proxy group. If switching fails, use these details to revert.
  2. Select the target config and confirm that its selected state changes, then check the latest load result in “Logs.” If you see a YAML parsing error or a missing proxy group reference, fix the config first. The selected indicator only shows what the interface has selected; it doesn’t prove the core accepted the new config.
  3. Open “Proxies” and check the proxy groups in the new config. Both subscriptions may have a group called “Auto,” but its proxies can be completely different. Verify the selected member instead of relying on the old group name.
  4. Make sure the traffic entry point is still working, then send a new request. The system proxy only affects apps that follow the system proxy settings; if an app has a manually configured proxy address, check its port. If you use TUN, confirm that it’s running. Existing long-lived connections may still be open, so close and reopen the test app before verifying.
  5. If the client is in rule mode, open “Connections” and check the matching rule and outbound route for a new connection to the target domain. Seeing that a page loads doesn’t tell you whether the request went direct or through a proxy.

Switching on the “Subscriptions” page replaces the entire config; switching on the “Proxies” page changes the selected outbound in the current proxy group. To change proxies, stay on “Proxies.” Switch profiles only when you need a different set of rules, proxies, or DNS settings. Importing two subscriptions doesn’t automatically combine their proxies into one group.

Where to Put Overrides: Keep Remote Updates and Local Changes Separate

If you directly edit the YAML downloaded by a remote profile, the next update may overwrite your changes with the server’s version. For rules you want to keep, use a separate override supported by the client. In Clash Verge Rev 2.x, check the entry’s menu on the “Subscriptions” page for rule editing or extended config options. For changes that should apply to just one subscription, use that entry’s own settings where possible. Global extensions affect other configs too, so verify them when switching to a backup.

Test One Rule and Check Where It Goes

This Mihomo rule snippet shows how to place a test domain before the catch-all rule. It isn’t a complete config or an override format for any specific client. If you use the client’s rule editor, add only the first line and put it before any rule that would match first. Don’t replace the existing rules section with these two lines.

rules:
  - DOMAIN,www.example.com,DIRECT
  - MATCH,DIRECT

In rule mode, rules are usually checked from top to bottom, and the matching rule determines how traffic is handled. Here, DIRECT is the built-in direct-connection policy. If you use a custom proxy group provided by your subscription instead, its name must match the group name in the final config. If a subscription update renames or removes that group, the override file may still be there but fail to load because its reference is invalid. After editing, send a new test request and check the matching rule in the connection details. Then update the subscription manually and run the same test again.

No Separate Override? Save a Local Copy of the Config

Save the remote config as a local YAML file and import it as a new profile. Keep the original remote entry for updates and use the local copy for experiments. To add new proxies or rules later, save a fresh snapshot, compare the changes, and then reapply your own edits. If the config references rule files by relative path, make sure those files are available from the new location. If you’re unsure about a config field, check this site’s config field reference.

Backups, Restores, and How to Roll Back a Failed Update

  1. Back up a working config. Before making major changes or moving to a new device, export the working YAML. Save custom overrides, scripts, and any local rule files that need to move with it. A subscription URL alone can only fetch the remote version available at the time—you can’t use it to recover the last version you got working.
  2. Record your client settings. Note the active profile, usual proxy group selection, listening port, operating mode, and whether the system proxy or TUN is enabled. The client may save these separately, so they aren’t guaranteed to come back when you restore a YAML file.
  3. Import one config on the new device first. Load a backup and check the logs for errors before restoring overrides and the traffic entry point one at a time. If a ruleset uses an absolute path from the old device, update the path first. If the config references a remote provider, check that the new device can fetch it.
  4. If an update causes problems, roll back before troubleshooting. Switch to a verified local backup or backup subscription. If a remote entry returns 401 or 403, check authorization and the link with the subscription provider. If the download succeeds but parsing fails, check that the response contains the expected YAML. If the config only fails when an override is enabled, disable that override first, then check group names or rule syntax.

Subscription URLs, provider URLs, and proxy authentication fields in backups may contain credentials, so store them as private files. When troubleshooting, share only the necessary error lines and remove tokens from URLs and passwords from configs. This keeps your rollback files safe while helping narrow the issue down to the source, loading, rules, or traffic entry point.

Download Clash