Clash Profiles Explained: Switch Subscriptions and Manage Local Configs

Learn how subscription links create profiles, how local configs differ, how to switch and update multiple profiles, and how to keep overrides intact when subscriptions refresh.

A profile is a config entry managed by the client

In most Clash-based clients, a profile is an entry in the Config or Subscriptions list. When you import a remote subscription, the client fetches its contents from the link and saves the usable config along with its source. The client combines the selected profile with its own settings and any applicable overrides before applying it to the mihomo core. The subscription link is the source, the profile in the list is the management entry, and the core runs the final effective config. These may not be identical.

ComparisonRemote subscriptionLocal config
SourceThe client fetches the config contents from a subscription link.Import a YAML file from disk or create a config in the client.
How updates workRefresh manually, or let clients that support scheduled updates refresh on a set interval.Edit the file the client actually reads, then apply it or import it again.
What you can changeEdits to the downloaded content may be overwritten the next time it refreshes.The main file is maintained locally; remote resources it references can still update independently.

A subscription URL opening successfully does not mean its response is a usable Clash config. If the link has expired, the server may return a login page or an error. Some links return only a list of proxies, which can be imported only if the client supports conversion. If parsing fails, first check that the subscription service provides a Clash- or mihomo-compatible format. Don’t start by changing ports or enabling TUN.

Switching subscriptions: choose a profile, then a proxy group

In the common Clash Verge Rev 2.x interface, import a subscription from Subscriptions on the left: enter the link in the field at the top of the page, then click Import. After importing, select the profile card you want in the Subscriptions list, then open Proxies on the left to check its proxy groups. Button labels vary by client, but choosing a profile and choosing a proxy are two different levels: the former switches the entire config; the latter changes an option in one of its proxy groups.

  1. Give each profile a recognizable name. For example, “Everyday – Remote,” “Backup – Remote,” or “Local Test.” Use the client’s name field to distinguish their purpose instead of repeatedly entering two links into the same profile.
  2. Make sure the profile was applied. Seeing a profile card does not mean the core loaded it successfully. After switching to a backup, check which profile the client shows as active, then look for the backup profile’s group names under Proxies. If loading fails, check the logs to find out why; a highlighted list entry is not proof that it is running.
  3. Recheck proxy groups and traffic. Two subscriptions can both have a group called “Auto Select” but different members and rules. Make a new request to a domain you know, then check the matched rule and outbound in Connections. Existing connections may keep using their previous route, so they don’t show how new requests behave after a switch.

Subscription refreshes, applying a config, and updating providers

Refresh a subscription: fetch its contents again

Update a subscription from its profile card, then check that entry’s last-updated time or logs. Refreshing an unselected backup subscription does not switch to it. Whether refreshing the active subscription reloads it immediately depends on the client. If the download succeeds but the Proxies page still shows old groups, first confirm you updated the active entry, then reapply it in the client and check for parsing or reference errors.

Apply a config: load the final result into the core

Applying a config may also layer in the client’s port, DNS, or TUN settings. If the original YAML has tun.enable set to false, that only tells you what the source file says. If the client has a separate TUN toggle, check the final config and runtime status too. Likewise, mixed-port: 7890 is an explicitly configured value, not a default port shared by every client.

Update providers: refresh only the referenced resources

In mihomo, HTTP providers can update at their own interval, measured in seconds. For example, setting one proxy-providers entry to 3600 sets that provider’s fetch interval. It does not refresh the entire profile every hour or set the proxy group’s health-check interval. A local profile can still use remote providers that fetch updates on a schedule.

Managing local YAML: validate the file, then confirm which copy is in use

Local configs are useful for keeping your own rules, fixed ports, or experimental changes. When importing a config, a client may copy the file rather than keep reading it from its original path. If editing the original file has no effect, first check which copy the client is using. If it imported a copy, edit the managed copy or reimport the file and select the new profile. Keep a separate copy of the source file so you can roll back.

This minimal config helps distinguish “the core loaded” from “system traffic is routed through it.” It tests only the local proxy listener and rules; it contains no remote proxies. If another client is already using an example port, change the port and update the test command to match.

mixed-port: 7890
allow-lan: false
mode: rule
tun:
  enable: false
rules:
  - DOMAIN,example.com,REJECT
  - MATCH,DIRECT
  1. Validate the config first. If you installed the mihomo CLI separately, run mihomo -t -f ./local-test.yaml from the config’s directory. This checks the config; it does not prove that the port is available or that system traffic is reaching the core.
  2. Test the proxy explicitly after applying the config. Run curl -I --proxy http://127.0.0.1:7890 https://example.com. With the example config, the request should be blocked by the REJECT rule. If you can’t connect to the local port, first check the client’s actual listening port and the core logs. Don’t mistake a connection error for a matching rule.
  3. Finally, check system-wide routing. Passing the explicit proxy test only shows that the specified listener handled that request. To confirm that a browser or another app is using the core, check the system proxy, the app’s own proxy settings, or TUN. When you’re done testing, switch back to your everyday config so the example domain isn’t still blocked.

Persistent overrides: keep custom rules separate from subscriptions

Let subscription updates handle remote contents and use the client’s override feature for local changes. For rules that apply to just one subscription, use a profile-specific override; consider a global override only for settings that truly need to apply across all profiles. Overrides depend on the client: some support YAML merging, others use scripts, and array handling—replacement or append—varies. Don’t treat a client’s merge syntax as native mihomo config keys.

When adding rules, check their order and references

  • Check rule order first. In rule mode, mihomo evaluates rules in order and uses the outbound for the first match. To send example.org direct, put DOMAIN,example.org,DIRECT before any broader rule that would match it. A new rule appended after a catch-all MATCH usually won’t be reached.
  • Then check that the full list is intact. Some override methods replace the entire existing rules list with the new one. After adding a rule, make sure the subscription’s original rules and final fallback are still there; otherwise, only your custom rule may remain.
  • Finally, make sure referenced names still exist. A rule that hard-codes a proxy group’s name may fail to load if the subscription renames it. After an update, check the final config’s proxy-groups. If you only need direct access or blocking, use the built-in DIRECT or REJECT to avoid depending on subscription group names.

To check whether an override survives a refresh, first confirm that the custom rule works in the active config. Then manually refresh that same remote subscription, reapply it, and make a new request. If the rule disappears, check whether you edited the subscription cache or attached the override to a different profile. If the client doesn’t support overrides, keep a local copy and merge in subscription changes yourself; the copy won’t automatically inherit new proxies or rules.

Backups and troubleshooting: identify which layer changed

Before moving to another client, save the subscription sources, local YAML files, override files, and any interface settings you’ll need to recreate. Subscription URLs may contain access tokens, and exported configs may include proxy credentials; redact them before sharing logs or screenshots. After importing into the new client, validate one profile first and move the rest only after it works.

  • Import or refresh fails: Check whether the link is valid, the returned format is compatible, and whether the error occurred during download or parsing. Don’t rush to delete the old config if it still works.
  • You can switch profiles, but traffic takes the wrong route: Check the active profile, operating mode, proxy group, and rule order, then use a new connection to verify the logs. Switching proxies won’t fix a rule that matches the wrong traffic.
  • Ports or rules differ from expectations after a refresh: Compare the remote contents, overrides, and client settings. Find which layer controls the setting and change it there. Editing all three at once makes the next refresh harder to troubleshoot.
Download Clash