How to Import a Clash Subscription: URLs, Base64, and YAML Explained
Learn how to import a subscription by pasting a URL, scanning a QR code, or choosing a local file. Identify subscription formats and troubleshoot import errors.
Paste a URL: Import a Subscription in Clash Verge Rev
- Go back to your subscription provider’s website and look for a button such as “Copy Subscription URL.” If it offers “Clash,” “Mihomo,” and “Universal Subscription” options, choose an address explicitly marked as compatible with Clash Verge Rev or Mihomo. Don’t copy the account page URL from your browser’s address bar.
- Open Clash Verge Rev 2.x and click “Profiles” in the left sidebar. Paste the complete HTTPS URL into the subscription field at the top, then click “Import.” If the interface has a “New” option instead, choose “Remote,” paste the URL, and save.
- Wait for the profile card to appear, then click it to switch to that profile and confirm it’s selected. Open “Proxies” and check whether the subscription’s proxy groups and nodes are listed. A card appearing only means the profile was added; it doesn’t mean it’s active.
- To check that a remote subscription can refresh, open the card’s menu and choose “Update.” If the update fails but the current profile still works, keep the existing card while you resolve the URL issue, then try again.
Import by QR Code: Check What It Contains First
A QR code is just a way to share content; it isn’t necessarily a subscription. If the desktop app has no scanner, use your phone’s camera or built-in QR scanner to read and preview the text first. You can also use “Scan QR Code” in a mobile Clash client, if available, as long as the client supports the content type it detects.
- If it detects an HTTPS URL: Confirm it’s a subscription URL from your provider, then copy it into the “Profiles” field in the desktop client. To transfer it to another device, sign in to the provider’s website on that device and copy the URL again. This avoids leaving a QR code containing credentials in your chat history.
- If it detects
ss://orvless://: That’s a share link for a single node, not a remote subscription URL. Don’t paste it into Clash Verge Rev’s subscription field. To use those nodes in Clash Verge Rev, ask the provider for a Clash or Mihomo configuration. - If it opens a login or download page: That’s a webpage, not a configuration. Go back to the relevant page and look for a button to generate or copy the subscription URL.
If scanning reports “Unsupported,” first distinguish between two cases. If the camera can’t read the code, brighten the screen and make sure there’s clear space around the QR code. If the camera reads the text but the client rejects it, check the content type; scanning again won’t change its format.
How to Identify URLs, Base64, and YAML
A URL tells the client where to fetch content. Base64 and YAML may describe the content it fetches. Even if two links both start with https://, one might return a proxy list, another a complete configuration, and another a login page. A .yaml extension alone doesn’t tell you what the URL returns.
| What you see | How to identify it | What to do next |
|---|---|---|
| Remote subscription URL | Usually starts with https://. It may include parameters and may not have a file extension. |
In “Profiles,” try importing an address your provider labels for Clash or Mihomo. |
| Base64 proxy list | Looks like a long string of letters and numbers, sometimes containing + or /, or ending in =. Decoding it may reveal node links on separate lines. |
If the current import option doesn’t accept a proxy list, use your provider’s Clash or Mihomo subscription instead. Decoding it or changing the file extension won’t turn it into a complete configuration. |
| Clash or Mihomo YAML | Contains visible keys and indentation, such as proxies:, proxy-groups:, and rules:. It may also use proxy-providers: to reference a proxy list. |
Import a complete configuration as a local file. If your provider offers a remote URL for the full configuration, you can import it as a remote subscription instead. |
| Webpage or error response | Contains <html>, a login form, a CAPTCHA, or an error message from the server. |
Check whether you copied a webpage URL instead of a subscription URL, or whether the server rejected the download request. |
Base64 is an encoding, not encryption; the absence of a trailing equals sign doesn’t rule it out. Another common source of confusion is YAML that contains only proxies:. It may be a node file referenced by proxy-providers:, rather than a complete configuration with proxy groups and routing rules. If you’re unsure, check whether your provider labels the file “Full Configuration” or “Proxy List.”
Import a Local File: Select the Profile, Then Check Its Nodes
- Save the complete configuration from your provider as a
.yamlor.ymlfile. If you received an archive, extract it first and select the configuration file inside. When you open it in a plain-text editor, make sure it isn’t a webpage saved after a failed download or a file whose actual extension is.yaml.txt. - In Clash Verge Rev, open “Profiles” → “New” → “Local,” select the file, and save it. If your version supports drag-and-drop imports on the “Profiles” page, you can drop the YAML file there instead.
- Click the new card to switch to this profile. Open “Proxies” and check that the proxy groups listed in the file have loaded. If the configuration references remote proxy providers, those provider lists must also be downloadable after the main file imports successfully.
A local import won’t automatically update the main configuration from its original subscription URL. When your provider releases a new file, import it again and switch to it. For regularly refreshed configurations, use a remote subscription URL from the same provider. Whether remote proxy lists referenced in the file update on schedule depends on their individual configuration.
Find the Line Causing a YAML Error
If the log says yaml: line 12: did not find expected key, check line 12 and the lines before it. The parser may not detect incorrect indentation until it reaches the next item. Check that - markers for items at the same level line up, that indentation doesn’t contain tabs, and that quotes are paired. If the original download already produces an error, fetch the file again rather than deleting lines just to silence the message.
Subscription Import Failed? Check Download, Parsing, and Activation
Download Failed: Start by Checking the Status Code
- HTTP 401 or 403: The server rejected the request. Check that you copied the full URL and that the subscription is still active. Being able to view a page after signing in to your browser doesn’t mean the client can access it; the client won’t automatically use your browser’s login session.
- HTTP 404: Check whether the URL is outdated, part of the path is missing, or your provider has moved the subscription endpoint. Copy it again from the provider’s website instead of guessing from the displayed name.
- Timeout or DNS resolution failure: First confirm that your current network has internet access, then check the logs to see whether the subscription domain resolves. If another proxy client is routing traffic on your desktop, temporarily quit it after confirming your basic network connection works, then try again. This helps distinguish network issues from configuration format problems.
- Certificate error: Check your system’s date and time, then confirm the subscription domain matches the one provided by your service. If the problem persists, contact the provider. Don’t disable certificate verification to complete the import.
Download Succeeded, but Parsing Failed: Check the Response
HTTP 200 only means the server returned content; it doesn’t guarantee that the content is a usable configuration. First, select the Clash or Mihomo format on your provider’s site. If the saved response is a login page, a Base64 proxy list, or a standalone node list, use the format guide above to identify it. If the logs point to an unsupported node type or configuration field, check which Mihomo core version Clash Verge Rev uses and review your provider’s compatibility notes.
Profile Selected but Apps Aren’t Using the Proxy? Don’t Reimport
First, open “Proxies” to confirm the target proxy group has loaded, then select an available node. If you’re testing an app that follows system proxy settings, turn on “System Proxy” in Clash Verge Rev and check whether the request appears under “Connections.” In Rule mode, requests matching DIRECT connect directly; enabling the system proxy won’t override that rule. TUN mode routes traffic but won’t fix a subscription URL or YAML parsing error, so there’s no need to enable it while troubleshooting an import.