Getting Started 7 min read
How to Import a Subscription into Clash Meta: URL, YAML, and Base64 Formats
Learn how to import subscription URLs, local YAML files, and Base64 proxy lists into Clash Meta—and which formats mihomo can read directly.
Start with the format: a URL is an address; YAML and Base64 are content
A subscription address starting with https:// only tells the client where to fetch content. The response might be a Clash YAML config, a string of Base64-encoded text, or even a login page. Neither the filename nor the URL suffix is enough to identify the format. First, look for an option labeled “Clash Meta” or “mihomo” on your provider’s subscription page, then check whether it provides a complete config or just a proxy list.
| What you received | How to identify it | Where to import it |
|---|---|---|
| Complete remote config | The response is YAML, often containing proxy-groups and rules. Proxies may be defined under proxies or supplied by proxy-providers. | The client’s remote subscription or remote config option |
| Complete local config | A .yaml or .yml file containing the proxies, groups, and rules required by the config | The client’s local config option, or load it with mihomo |
| Proxy provider payload | Often a top-level proxies list with no accompanying groups or rules | Referenced by proxy-providers in the main config |
| Base64 proxy list | Once decoded, it often contains one share link per line, such as ss:// or trojan:// | Import it with a client that explicitly supports this format, or get a compatible YAML file first |
The fields in this table are clues for identifying a format, not a list of required fields. For example, a complete config can declare only remote providers and reference them with use in a proxy group; it doesn’t need a separate proxies list in the main file. Conversely, a YAML file containing only proxies may pass syntax checks but still lack the groups and rules needed to select proxies and route traffic.
Import a remote URL: check fetching, activation, and updates
The steps below use the Subscription page in the Clash Verge Rev desktop app. Other mihomo clients may put the same feature under Config or Profiles. Back up your current config first, especially any manually edited rules or DNS settings.
- Import the full URL. On the Subscription page, paste the Clash Meta subscription URL from your provider into the URL field, then click Import. Keep everything from
https://through the query parameters. Some URLs rely on query parameters to identify your account or select an output format, so don’t truncate them or use the provider dashboard URL instead. - Activate the new config. After importing, select the new config on the Subscription page, then check the Proxy page for the expected groups. If proxies are loaded from a provider, seeing the config in the list only means the main file was imported. Whether groups have selectable proxies also depends on whether the provider updated successfully and whether the group’s filters match.
- Check what updated. Manually update the subscription once and check the status and client logs. Updating the main subscription refreshes the complete config;
proxy-providerswithin that config have their own refresh mechanism. A successful main subscription update doesn’t mean the providers updated too.
Import local YAML: distinguish the main config from provider files
Complete config: import a local file
If your provider supplied a complete .yaml or .yml file, open the client’s Subscription or Config page, use the local import option to select the file, then activate the imported entry. The client may copy the source file into its own config directory, so changes to the original in your Downloads folder might not carry over. Importing a local file also doesn’t set up automatic updates from the original subscription URL, even if that’s where you downloaded it.
If you manage mihomo directly and can run it from a terminal, use the command below to check the config in the current directory. Config validation doesn’t replace testing an actual connection. If the config references local resources, run the test with the same working directory and resource paths used at startup.
mihomo -t -f ./config.yaml
Provider file: reference proxies from a group
For a provider-format proxy file, define an entry with type: file under proxy-providers in the main config, set path to the file, then add the entry’s name to the relevant group’s use list. Set the path according to the config directory and path restrictions used by the core; don’t assume it’s relative to your Downloads folder. For a remote provider, use type: http and url if the response is suitable as a provider payload. Don’t use a complete remote config as a provider if you need to retain its rules and groups.
When editing an existing main config, add entries under the relevant top-level fields rather than creating duplicate fields with the same name. Check that these three sets of names match: the provider name and the group’s use reference, the group name and the rule target, and any manually defined proxy name and the group’s proxies reference. A missed update after renaming can prevent the config from loading, even when the YAML indentation is correct.
Base64 lists: decode and identify the format before importing
Base64 is an encoding, not encryption or a proxy protocol. If decoding produces one proxy share link per line, you have a proxy list—not a mihomo main config. These lists usually don’t include rules, proxy-groups, or DNS settings. Saving the text as config.yaml only changes the filename, not the content or structure.
- Use a native format when available. If your provider offers both a general subscription and a “Clash Meta” option, try the Clash Meta one first. Check whether it returns a complete config or a provider file, then use the matching import option.
- Check which layer supports the format. Some graphical clients can recognize proxy lists during import and generate or merge them into a config. That’s a client feature; it doesn’t mean you can pass the same URL directly to
mihomo -f. If you plan to useproxy-providersfor a proxy list, verify that your core version supports both the payload format and the share-link types it contains. - Review the result after conversion. If Base64 is the only format available, use a trusted local tool or a built-in client feature. After conversion, check the proxy count and spot-check the protocols, server ports, and transport fields. Seeing proxy names doesn’t guarantee that credentials or protocol parameters were preserved. If the tool outputs only
proxies, use your existing main config to set up groups and rules.
Import failed or no proxies appear? Troubleshoot four layers
- Fetch layer: check the HTTP status and response body. For
401or403, first check the token and the server’s access requirements. Even a200response could be a login page. If you see<!doctype html>or<html>, make sure you copied the subscription URL, not a web page URL. A URL working in your browser doesn’t guarantee the client gets the same response; their login state and request headers may differ. - Parsing layer: check the reported line and nearby fields. If the log points to line 24 of a YAML file, check that line and the nearest list item above it. Look for tabs used for indentation, a missing list hyphen, or an unquoted value containing a colon followed by a space. If the error says a proxy type isn’t supported, check the actual mihomo core version shown by the client—not just the version of its UI.
- Loading layer: check the active config and proxy groups. If the Proxy page shows only a direct connection or the target group has no proxies after activating the main config, make sure the new config is selected. Then check for provider update errors, group filters, and the
usereference. Toggling TUN on and off won’t populate an empty group. - Traffic layer: verify the outbound route, not just latency. After selecting a proxy, send a request from a browser with the system proxy enabled. In the client’s connection log, check the destination domain, matched rule, and outbound chain. If the request doesn’t appear, check whether the browser uses the system proxy and whether the local proxy port matches the config. For example, check
127.0.0.1:7890only if the config explicitly setsmixed-port: 7890. TUN is an alternative way to capture traffic, not a prerequisite for importing a subscription.
A successful import has three observable results: the config activates, the expected proxies appear in their groups, and real requests use the expected outbound route. Remote subscriptions should also update manually. If any step fails, troubleshoot the corresponding layer. A latency reading alone doesn’t prove that application traffic is using the proxy.