Import a Clash Subscription: URL Links, Base64 Proxy Lists, and YAML Configs
Learn where to add subscription URLs in each client, how to set update intervals, and how Base64 proxy lists, full YAML configs, and Providers differ.
Check what the URL returns before choosing an import option
A URL is an address for retrieving a config, not a config format. Two subscription links may both start with https:// and have no file extension, yet one can return a full YAML config while the other returns only a proxy list. Check the actual response body received by the client—not whether the URL ends in .yaml.
| What it returns | How to identify it | How to use it |
|---|---|---|
| Full Clash YAML config | Common top-level keys include proxies, proxy-groups, and rules. Nodes may also be loaded through proxy-providers. |
Import it as a remote config. If you already have a local file, you can import that instead. |
| Base64 proxy list | When decoded locally, the content is typically a list of proxy URIs, one per line, such as ss://, vmess://, or trojan://. |
Use a client option that explicitly supports this format. Otherwise, ask the subscription provider for a Clash- or mihomo-compatible link. |
| Proxy Provider YAML | A typical file describes nodes in a top-level proxies list; it does not include the main config's proxy groups or routing rules. |
Reference it under proxy-providers in the main config, then connect it through a proxy group's use key. |
Seeing proxies alone doesn't prove the content came from a Provider: a proxy list can also be written directly in the main config. The key question is whether you want to enable it as a complete config or use it as a source of proxies for a group. Even a proxy list that passes syntax checks won't automatically include the proxy groups and routing rules you need.
Where to Import Remote Subscriptions and Local YAML Files
Desktop: Clash Verge Rev
- Open Subscriptions in the sidebar, paste the full link into the subscription URL field at the top, then click Import. Keep any query parameters included in the link. If your provider offers multiple formats, choose a Clash or mihomo link compatible with your core.
- Once the new subscription appears, select its config card and open Proxies to check that the expected groups are there. Importing adds the config to the list; it doesn't switch the active connection to that config.
- For a
.yamlor.ymlfile, go to Subscriptions → New and choose the local option, or use the file import option available in your version. Importing a local file won't save the original subscription URL.
Android: Legacy Clash for Android
In an installed legacy version of Clash for Android, the usual path is Configurations → + in the top-right corner → URL. Enter a name and link, save, return to the config list, select the config you just created, then start the client from the home screen. If you only have a file saved locally, choose File from the same add menu. Forks may use different menu labels; look for separate options for remote configs and local files.
Legacy Clash cores and mihomo don't support exactly the same fields or protocols. If the client reports an unsupported proxy type, pasting the link again or changing the file extension won't fix it. Ask the provider for a compatible config, or switch to a client that includes the required core. For steps to enable a config for the first time, see the subscription import guide.
Using a Provider: Update Proxies Without Replacing Local Rules
To keep proxies in sync with your subscription while maintaining your own DNS settings, proxy groups, and rules, declare an HTTP Provider in your mihomo main config. The snippet below can be merged into your main config. Its example URL is for illustration only; replace it with a proxy Provider URL explicitly identified by your provider. If your main config already has a top-level key with the same name, merge the contents instead of adding a duplicate key.
proxy-providers:
upstream:
type: http
url: "https://example.com/providers/nodes.yaml"
path: "./providers/upstream.yaml"
interval: 21600
proxy-groups:
- name: "Select Manually"
type: select
use:
- upstream
rules:
- DOMAIN-SUFFIX,example.org,DIRECT
- MATCH,Select Manually
upstreamis the Provider key, andusemust match it. If you put it in a proxy group'sproxieslist, it will be treated as the name of a proxy or group, not as a Provider reference.pathspecifies the cache file; relative paths are resolved from the core's working directory. Use a different cache path for each source, and make sure the account running the core can write to it.interval: 21600is in seconds, or 6 hours. It sets how often this Provider fetches proxies; it doesn't rewrite the main config'sruleson that schedule.- Rules are checked from top to bottom. In this example,
example.organd its subdomains useDIRECT; all other traffic goes to Select Manually. When merging these into existing rules, keepMATCHat the end so it doesn't prevent later rules from matching.
Automatic Update Intervals: Know Which Layer You're Updating
Client Subscription Updates: Refresh the Remote Config Copy
On the Subscriptions page in Clash Verge Rev, open the edit menu for the remote config card and look for Update Interval. If your version uses minutes, start with 360 (6 hours). If your provider limits update frequency, use a longer interval as instructed. In legacy Clash for Android, if the URL config's edit page offers Auto Update or an interval setting, enter a value using the units shown in the interface. Save, run one manual update, and check for download or parsing errors before relying on scheduled updates.
Refreshing a full remote YAML config may also change the provider's proxy groups and rules. Local edits to the remote config copy may be overwritten by the next update. To keep your own changes, use the client's config override feature, or maintain a local main config and update the Provider separately.
Core Provider Updates: Refresh Only the Referenced Proxy Source
When the main config includes an HTTP Provider, the core updates it according to its own interval after loading the config. The interval in the client's subscription card applies only to the outer config; it doesn't change the inner interval in seconds. If a manual update of the full config succeeds but the proxy groups still show no changes, check the Provider fetch logs and cache file timestamps separately instead of shortening the client subscription interval again.
Import Errors, Empty Proxy Lists, and Updates That Don't Change Anything
- First, tell download failures apart from parsing failures. For
401or403responses, check your credentials, their validity, and whether the request was rejected. For404, check that the URL is complete and hasn't changed. Even a200response could be a login or error page. If the body starts with<!doctype html>, fix the link or server response first; don't change the YAML indentation. - For parsing errors, check the format and core. If the response decodes locally to a list of proxy URIs, don't treat the raw content as a full YAML config. If it is YAML, use the log's line number to check indentation, duplicate top-level keys, and unsupported fields. YAML uses spaces for indentation, not tabs.
- If the import succeeds but the proxy list is empty, check that the config is active. First confirm the client has selected the config you just imported, then check the proxy group references. With a Provider, verify that
usepoints to the correct key and check for fetch, parsing, or cache write errors. - If proxies are available but traffic doesn't use the selected policy, check the rules. Check the connection log for the matched rule and final outbound. Traffic matched by
DIRECTwon't use the proxy selected in a proxy group. Check whether system proxy mode or TUN is handling traffic separately from whether the subscription imported successfully.
When running mihomo from the command line, run the check below from the directory containing the config. This example uses the current directory as the core's working directory; replace config.yaml if your file has a different name. A successful check only confirms that this config passed validation; it doesn't mean every remote proxy is reachable or that your browser is using the proxy.
mihomo -t -d . -f ./config.yaml