How to Import a Clash Subscription: URL, Base64, and YAML Formats
Learn how to add a subscription URL and set its update interval, with a comparison of Clash YAML, Base64 proxy lists, and single-proxy share links.
First, distinguish the subscription URL from its response
If you have an https:// URL, first choose the export option labeled “Clash” or “Clash Meta / Mihomo” in your subscription provider’s dashboard, then add the URL to your client. A URL tells the client where to fetch data, not what the response contains. The same dashboard may offer Clash YAML, a Base64 proxy list, and individual proxy share links. Being able to open a URL in a browser does not mean the client can load its response as a configuration.
| Format | How to identify it | How to import it |
|---|---|---|
| Clash YAML | The content may include proxies:, proxy-groups:, rules:, or proxy-providers:. |
Use the subscription import option for a remote URL, or the local import option for a complete YAML file. Its fields and protocols must be compatible with your core. |
| Base64 proxy list | The outer content is an encoded string; when decoded, it usually contains one proxy share URI per line. | Import it directly only if your client explicitly supports this subscription format. Otherwise, ask the provider for Clash YAML. |
| Single-proxy share link | Starts with a protocol such as ss://, vmess://, or vless://. |
Use a node import option that supports the relevant protocol. A share link is not a remote configuration URL that can be fetched on a schedule. |
Import a remote Clash subscription from a URL
In Clash Verge Rev 2.x, open “Subscriptions” in the left sidebar, paste the URL into the field at the top of the page, then click “Import.” If your version uses a “New” dialog, go to “Subscriptions” → “New,” choose the remote type, and enter the same address in the URL field. The key action is the same in both interfaces: add a remote configuration, not a proxy server address.
- Copy the full URL. In your provider’s dashboard, choose the Clash format that matches your core. Keep any query parameters after
?. If you copy the link from a chat message, remove surrounding quotes, trailing punctuation, and extra line breaks. Treat URLs containing tokens like credentials; don’t share them in public logs or screenshots. - Select the configuration after importing. Seeing a subscription card only confirms that it was added. Select the new configuration and make sure it is active, then open “Proxies” to check the proxy groups. For your first import, compare the group names with those listed by your provider. If the old groups are still shown, check whether the previous configuration is still selected.
- Run a manual update. Open the subscription’s menu and choose “Update.” This checks whether the client can fetch the configuration again using the saved URL. If it fails, check the client logs to see whether the network request failed or the downloaded content could not be parsed or loaded.
- Check how traffic is routed. Importing a subscription and enabling TUN are separate steps. The subscription determines the available proxies, groups, and rules; TUN determines how traffic reaches the core. If the import succeeds but apps aren’t using the proxy, check whether the system proxy or TUN is enabled, then use the “Connections” page to see which rule matched the request.
Set an automatic update interval
On the “Subscriptions” page, open the target entry’s menu, choose “Edit,” and find “Update interval.” Check the unit shown next to the field: if it’s in minutes, enter 1440 for a daily update or 360 for an update every six hours. Follow the interval recommended by your provider when possible. A manual update is enough to check whether a new URL works; there’s no need to reduce the interval to a few minutes for troubleshooting.
- Updating a subscription fetches the remote URL again to retrieve changes to proxies or rules. Edits made directly to a local copy of a remote configuration may be overwritten during the next update. To keep local DNS or routing changes, use the client’s override feature.
- Proxy group health checks probe proxies that have already been loaded. In
proxy-groups,intervalundertype: url-testis the health-check interval in seconds. Inproxy-providers,intervalsets how often the core fetches that resource. Neither setting controls the subscription card’s update interval. - A local file won’t sync with the original URL. Downloading a subscription as a file and importing it gives you a snapshot. To get future updates, use a remote subscription or replace or reimport the file yourself. Whether scheduled tasks can run after you quit the client depends on whether the client keeps its update process running.
Working with local YAML, Base64, and single proxies
Local YAML: make sure it’s a main configuration
On the “Subscriptions” page, use the local file import option to select a .yaml or .yml file, then set that entry as the active configuration. The extension only reflects the filename: renaming a login page or Base64 text to .yaml won’t turn it into a Clash configuration. If the file references proxy-providers or rule-providers, check that those resources are accessible after loading the main configuration. When copying the configuration to another device, make sure the path for each type: file entry is valid in the new environment.
Base64 lists: decoding and conversion are separate steps
If decoding produces only a list of share URIs, you have proxy parameters, not the proxy objects, groups, and rules required for a Clash configuration. First, switch to the Clash YAML export in the original dashboard. Use a dedicated import option for the list only if your client explicitly supports it. Don’t submit subscription URLs containing tokens or decoded proxy credentials to untrusted online converters.
Single-proxy URIs: check client and core support
Clients with an “Import proxy” option or clipboard import can read share URIs within their supported scope. A client with only a remote subscription URL field may not recognize these URIs. Even if the client can parse a link, make sure the core supports the protocol and transport parameters it uses. For example, a configuration with VLESS proxies needs a Mihomo core that supports the relevant fields; retrying the same link in an older Clash core won’t add protocol support.
Troubleshoot import errors by failure stage
- Update times out or reports a certificate error: Check that the subscription domain resolves, then verify your device’s date, time, and network connection. For a first-time setup, make sure the current network can reach the subscription URL directly; don’t rely on a configuration you haven’t imported yet to fetch it.
- Returns
401or403: Check your provider’s dashboard to make sure the subscription is active and its token hasn’t been reset, then copy the dedicated subscription URL again. Being able to open an account page in a browser where you’re already signed in doesn’t mean the client can fetch the subscription without logging in. - Returns
200but fails to parse: A successful status code only means the request succeeded. If the response starts with<!doctype html>, check whether you received a login page or gateway notice. If it’s a long encoded string, confirm that you copied the Base64 subscription. If it is YAML, check the line reported in the logs and make sure its indentation matches the surrounding levels. - YAML parses, but the core refuses to load it: Check which protocol, field, or group name appears in the error. For example, a
rulesentry may reference a renamed group, or aproxy-groupsentry may refer to a proxy that doesn’t exist. These are configuration reference issues. If the error points to a field unsupported by your current core, return to the provider and choose a compatible export format.
Once the subscription updates, the configuration is selected, and proxies and groups appear, test the setup in an app. If a domain still uses the wrong policy despite having rules, check the match shown on the “Connections” page, then review the configuration guide’s rule-based routing section and adjust the rule order.