· Getting Started · 7-minute read
How to Import a Clash Subscription: URLs, QR Codes, and Format Differences
Compare Clash YAML subscriptions, Base64-encoded proxy lists, and converted links. Follow desktop and mobile import steps, then set an update interval.
Check the format returned by the subscription URL
Copy the subscription URL labeled “Clash” or “Mihomo” from your provider’s page, then make sure it matches your client’s core. Once saved, the client requests this URL when importing and updating the configuration. Whether it can be imported depends on the content the server actually returns—not on whether the URL ends in .yaml. The same service may return different formats based on the client’s request headers, so what you see in a browser is only a preliminary check.
| What you received | How to identify it | How to import it |
|---|---|---|
| Clash YAML subscription | A full configuration commonly has top-level fields such as proxies or proxy-providers, along with proxy-groups and rules. |
Choose a remote configuration option compatible with your client core. A YAML file containing only proxies may just be a proxy list; connect it to a main configuration using proxy-providers. |
| Base64-encoded proxy list | The text may be one long string. When decoded, it typically contains one sharing URI per line, such as ss:// or trojan://. |
Use an import option that explicitly supports this kind of list, or ask your provider for Clash YAML. A proxy list does not include policy groups or routing rules. |
| Converted subscription URL | This is a different subscription URL. The returned content depends on the selected output format and conversion template. | Choose Clash or Mihomo output that matches your current core, then import it as a remote configuration URL. A successful conversion does not mean the target core supports every proxy protocol. |
Base64 is an encoding, not encryption. A conversion service may also need access to the full original subscription URL and proxy details. If your provider offers compatible YAML, use that directly. If conversion is necessary, prefer a trusted local tool and check which policy groups and rules it generates.
Desktop: Paste the URL, import it, and switch configurations
In Clash Verge Rev 2.x, open the “Subscriptions” page in the left sidebar. This imports an entire remote configuration; it does not add an individual node on the “Proxies” page. Other desktop clients may call the same section “Configuration” or “Profiles.”
- Copy the original URL. Use “Copy subscription link” on your provider’s page. Don’t copy the URL of a logged-in webpage or remove anything after the question mark. Subscription tokens are often included in the query parameters.
- Import the remote configuration. Open “Subscriptions,” paste the complete HTTPS URL into the subscription field at the top, and click “Import.” Wait for the configuration card to appear. If the import fails, check the error message before retrying or switching formats.
- Switch to the new configuration. Select the newly imported card in the subscription list. If account names look similar, give the card a distinctive name, such as “Daily desktop” or “Rule testing.” Then open “Proxies” and check that the policy groups come from the new configuration.
- Confirm how traffic is routed. Turn on “System Proxy” if you want apps that follow system proxy settings to use the client. If your organization or an app requires TUN, enable it separately as described in the client’s documentation. Test with one app first; don’t change ports, DNS, and the run mode all at once before confirming the active configuration.
Mobile: Check what a QR code contains before choosing an import option
Import from a URL on Android
Using the Clash for Android 2.5.x interface as an example: open “Profiles” → “+” → “URL,” enter a name and subscription URL, then tap the save icon in the top-right corner. Return to the “Profiles” list, select the new entry, then go back to the home screen and start the client. The first time it starts, Android will ask you to approve the VPN connection. A successful import only means the configuration was saved—the client must also start and receive system permission before traffic can use the connection. This older client and clients using the Mihomo core don’t support exactly the same fields and protocols. If your provider only offers Mihomo format, first check whether your client can parse it.
Choose an import option based on what the QR code contains
- If it contains an
https://subscription URL: Copy the recognized URL and import it as a subscription. If your client has a “Scan to import subscription” option, you can use it directly. If it only offers “Scan to add node,” copy the URL into the subscription import field instead. - If it contains a node-sharing URI such as
ss://: This is a single node. Import it using an option supported by your client. It isn’t a remote subscription, so changing the subscription update interval won’t refresh it. - If it contains a webpage or shortened link: Check the provider’s domain and the instructions associated with the QR code. If the link opens a login, invitation, or announcement page, return to your account page and copy the actual configuration URL.
If the QR code is on the same phone, use the client’s built-in photo scanner if available; otherwise, return to your account page and copy the URL directly. On iOS, check that your chosen client supports remote Clash YAML—VPN support alone doesn’t mean it supports this subscription format. A subscription QR code can contain account credentials just like the original URL. Don’t post it in public groups or submit it to online QR code readers.
Subscription update interval: Start at 24 hours, then adjust as needed
Look for “Update interval” or “Auto update” in the edit menu for the subscription. If the unit is minutes, enter 1440 for 24 hours or 720 for 12 hours. If the unit is hours, enter 24 or 12, respectively. Follow the minimum refresh interval specified by your provider, then adjust based on how often the configuration changes.
- Nodes and rules rarely change: Start with a 24-hour interval. If your provider has just updated its nodes, tap “Update” for that subscription. There’s no need to set the regular interval to just a few minutes.
- Changes happen several times a day, and your provider allows frequent updates: Try a 12-hour interval. After updating, check the last successful update time and the node list. Don’t assume that tapping “Update” means the fetch succeeded.
- Need to keep custom rules: Use the client’s override feature if available. Otherwise, save your customized version as a local configuration. Changes made directly to a cached remote configuration may be overwritten during the next update.
Refreshing the full subscription, refreshing a proxy provider, and testing node latency are three separate operations. The subscription update interval in the client controls the full remote configuration. In Mihomo’s proxy-providers, remotely hosted providers that support scheduled refreshes use interval, measured in seconds—86400 means 24 hours. The health-check interval only affects probing; it won’t fetch the subscription URL sooner. If your phone restricts background activity, don’t assume automatic updates will run on schedule while the screen is locked. Trigger a manual update first and check the last successful update time.
Troubleshooting failed imports, missing nodes, and traffic that bypasses the proxy
First, identify where the failure occurs: did the client download the configuration, did the core accept it, and did app traffic reach the client? Checking these three stages is more effective than changing the rule mode and traffic routing at the same time.
- Error during download. For
401, check your credentials first. For403, check for service restrictions too.429means requests are coming too frequently. For timeouts or certificate errors, check your network, device time, and provider status. Don’t disable certificate verification just to import a configuration. After replacing a token, update the URL in the existing subscription entry so the client doesn’t keep requesting the old link. - Download succeeds, but parsing fails. An HTTP
200response can still be a login page. If you see<!doctype html>or<html>, replace the URL with the actual subscription link. For YAML syntax errors, check the indentation around the reported line. For unknown protocols or fields, verify the provider’s output format and your current core instead of deleting fields at random. - No nodes appear after enabling the configuration. Confirm the selected entry in the configuration list, then check whether its policy groups reference a remote proxy provider. The full subscription may show as imported even if the provider failed to download, leaving the groups without the expected nodes. Check the provider’s update status and logs instead of repeatedly importing the whole subscription.
- Nodes are present, but your traffic behaves the same. Make sure System Proxy or the VPN is running, then send a test request and check the client’s “Connections” page or logs. If the request isn’t listed, check whether the app is using the current traffic route. If it is listed and matches
DIRECT, check the rule mode, matched rule, and selected policy. Updating a subscription won’t change a rule that already sends traffic directly.