Configuration 7 min read

Clash Profiles Explained: Switch Subscriptions, Set Auto-Updates, and Manage Local Configs

Learn how Clash Profiles relate to config.yaml, compare subscription and local configs, and manage multiple profiles without overwriting your changes.

How Profiles Relate to config.yaml

A Profile is an entry in a client's configuration list. It can point to a subscription URL or come from a YAML file on your device. The display name, source, and last update belong to the Profile entry; proxies, policy groups, and rules belong to the configuration itself. Renaming a card to “Backup” won't change a policy group name in the config or make a rule switch to a backup route.

config.yaml is a common config filename, not a fixed path used by every client. For example, a GUI client running Mihomo (formerly Clash.Meta) may load the selected Profile first, apply overrides and UI settings, then pass the result to the core. The imported source file, cached subscription, and config actually read by the core may all differ. If a file change appears to have no effect, first check whether you edited the source or the active result, then confirm it was saved and applied.

TypeSourceHow it's updatedWhere changes are stored
Subscription configDownloaded by the client from a URLRefresh manually or at an interval supported by the clientUse client-supported overrides or save a local copy
Local configA YAML file imported from your deviceEdit the copy saved by the client, or change the original file and import it againManaged locally; keep a tested backup

If an import fails, first check what format the link returns. A file that imports in another app isn't necessarily a Clash or Mihomo config this client can read. A list of proxy links, login page, or error page can't be used as a complete Clash YAML file.

Importing, Naming, and Switching Multiple Subscriptions

Your profile list can hold multiple subscriptions, but adding a second one usually won't merge its proxies and rules into the first. Switching Profiles replaces the entire active config; choosing a proxy on the “Proxies” page only changes the selection in a policy group within the current config. Test these actions separately.

  1. Import each subscription separately. In Clash Verge Rev on Mac, open “Subscriptions” in the sidebar, enter the URL at the top, then click “Import.” In English, the labels are Profiles and Import. On iPhone, add the URL from the client's profile list. Button names vary by app and version—don't paste a subscription link into iOS VPN settings.
  2. Name Profiles by purpose. For example, “Daily · Subscription A,” “Backup · Subscription B,” or “Test · Local.” If a service offers two config templates, include the template name in a note. Don't put subscription URLs, tokens, or account details in display names.
  3. Select a Profile and confirm it's active. Return to the profile list, select the backup entry, and check its active indicator. Then open “Proxies” and confirm the policy groups match the backup config. Even if both configs happen to have a Proxy group, check the proxies inside it—not just the group name.
  4. Test with a new connection. In Rule mode, start a new request and check the client's connection log for the matched rule and actual outbound. Long-lived connections in chat apps, video streams, and browsers may keep using an existing connection or drop during a switch, so they don't show what happens to new connections afterward.

Subscription Auto-Update Intervals and Troubleshooting

Start with a manual refresh. In Clash Verge Rev, for example, use the update action on the target card on the “Subscriptions” page. Confirm the last-updated time changes, then check the policy groups and proxy list. To schedule refreshes, open the subscription's edit menu and enter an interval using the units shown in the UI. Once a day is a reasonable starting point: enter 1440 if the field uses minutes, or 24 if it uses hours. These are examples, not defaults; follow your provider's guidance if it limits refresh frequency.

  • A successful download doesn't mean the config is active. Some clients reload the active config, while others only save the new content. After updating, check the active indicator and runtime logs. If needed, apply the Profile again and verify it with a new connection.
  • An elapsed interval doesn't guarantee an on-time refresh. Mac sleep, a closed app, or iOS background scheduling can delay updates. Keeping a VPN connection active on iOS doesn't mean the app can refresh in the background at the configured interval. Open the app and refresh manually before you head out.
  • Subscription updates and provider updates are separate. The subscription setting controls when the full YAML is fetched. Mihomo's proxy-providers and rule-providers can each have their own interval, in seconds—for example, 3600 means one hour. Changing a subscription card's update interval doesn't change these provider intervals.

If a refresh fails, use the error to narrow down the cause. For a timeout, check the device's network and whether update requests use a direct connection or a proxy. For 401 or 403, check whether the subscription expired, the link was reset, or the server has restrictions. For a YAML parse error, check whether the link returned an error page or an incompatible config. Keep the working Profile; don't delete it just to retry, and never paste a full subscription URL into public logs.

Saving Local YAML and Custom Rules

Editing YAML downloaded from a remote subscription can lead to your changes being overwritten on the next refresh. For a few extra rules, use an override or extension feature explicitly supported by the client, and confirm whether it applies to the current Profile or globally. Clients may prepend, append, or replace rule lists. If you add rules after MATCH, they won't match—even if the merge succeeds.

If your client doesn't offer a suitable override and allows config export, save a working version as local-test.yaml, import it as a separate local Profile, and edit that copy. If the YAML references local rule files, move those resources or update their paths when switching devices. Some clients also copy files during import: editing the original in Files or Finder won't update the imported copy. Reimport it or edit it in the client instead.

Example Rule Order

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

This is a rules snippet, not a complete config. In Rule mode, rules are checked from top to bottom: example.com matches the first rule exactly and goes direct, while www.example.com doesn't match that DOMAIN rule and falls through to the final rule. Proxy isn't a built-in policy; it must exactly match an existing policy group or proxy name. When editing an existing config, add the new rule to its existing rules list—don't add another top-level key with the same name. Before saving, also check whether an earlier rule will match first.

Checking Config Changes and Rolling Back

  1. Application fails with an error: Switch back to the last Profile that loaded successfully. Then check the error line in the logs, paying particular attention to YAML indentation, policy names referenced by rules, and whether the current core version supports the fields used in the config. Change one thing at a time to make the cause easier to find.
  2. The config is applied, but the proxy port won't connect: Check the actual listening port in the client settings or runtime logs. If you see mixed-port: 7890 and Mac is using the system proxy, go to “System Settings” → “Network” → “Wi-Fi” → “Details” → “Proxies” and verify the enabled proxy's address and port, such as 127.0.0.1:7890. 7890 is only an example. If the client reports that the port is in use, first find which process is listening before changing the port.
  3. Only some connections behave unexpectedly: Check that the running mode is Rule mode, then inspect the matched rule and outbound policy in the connection details. If the request doesn't appear in the log at all, first check whether it entered the system proxy, TUN, or iOS VPN instead of continuing to rearrange YAML rules.
  4. Rules disappear after a subscription update: Compare the local copy you kept before updating with the current active config. Check whether remote content replaced your changes or the override wasn't applied. Restore the active config and connectivity first, then move custom entries to an override or local file you can maintain separately.
Download Clash