How to Import a Clash Subscription: URL, Local YAML, and Base64 Explained
Learn how to tell Clash YAML subscriptions from generic Base64 node lists and local config files, then import them in Clash Verge and set an automatic update interval.
Identify the format before choosing an import method
A URL is how you retrieve a config; YAML describes its structure, while Base64 describes an encoding. A subscription URL beginning with https:// might return a Clash config, a Base64-encoded node list, or even a web page if your login has expired. Whether the URL ends in .yaml tells you nothing about what it returns.
| What you have | How to identify it | How to import it |
|---|---|---|
| Clash-compatible subscription URL | The provider labels it for Clash, Clash Meta, or mihomo, and the endpoint returns a compatible config | Paste the full URL into the Subscriptions page |
| Local YAML config | A .yaml or .yml file appears in Finder and contains a YAML config | Drag it onto the Subscriptions page, or create a Local config |
| Generic Base64 node list | May come from a URL or as plain text; once decoded, it often contains one node URI per line | Ask your provider for a Clash- or mihomo-compatible format, then import it by URL or file |
When checking a YAML file, look for top-level keys such as proxies, proxy-providers, proxy-groups, or rules. These define proxies, reference proxy providers, organize proxy groups, and match traffic, respectively. Not every valid config includes all four. For example, a complete config may use proxy-providers to reference a separate node file. Conversely, a node file intended only for use as a provider is not a complete config, even though both are written in YAML.
Import a Clash Subscription URL on macOS
These steps use the typical interface in Clash Verge Rev 2.x on macOS. Menus and button labels may vary slightly between minor versions, but the entry point is the Subscriptions page in the main window—not the Proxies page.
- On your provider’s subscription page, choose a format compatible with your client. If the page offers separate Clash and Clash Meta/mihomo options, Clash Verge Rev uses the mihomo core, so you can generally choose the mihomo option as recommended by your provider. Copy the subscription URL—not the URL of a page you’re logged into, and not an individual node link beginning with
vmess://orss://. - Open Clash Verge Rev → Subscriptions, paste the address into the subscription URL field at the top, and click Import. If your version adds configs through a New form, choose Remote, paste the URL, and save. Keep all query parameters after
?; remove only any leading or trailing spaces or line breaks accidentally included when copying. - Once the config card appears, select it on the Subscriptions page and make sure it becomes the active config. Then open Proxies to check your proxy groups and nodes. If the old groups are still showing, return to Subscriptions to confirm the new card was applied, or check for an error message when switching configs.
Import a local YAML file: check its extension and config contents
- In Finder, select the file and press ⌘I to open Get Info, then check Name & Extension. If the actual filename is
config.yaml.txt, first confirm that the contents are YAML. If you need to save it again in TextEdit, choose Format → Make Plain Text first to avoid saving the config as rich text. - Drag the file from Finder onto the Subscriptions page in Clash Verge Rev. If your version doesn’t respond to drag and drop, click New on that page, set the type to Local, then use the file picker to import and save it. Drag the file itself—not the download link shown in your browser.
- Select the newly imported card, then check the config on the Proxies page. If you get a parse error during import, start with the line mentioned in the message and the line above it: items at the same level should be aligned, list items should start with a hyphen and a space, and indentation should use spaces. If the YAML parses but switching configs fails, check the proxy group references and whether the current core supports the fields mentioned in the error.
A local import uses the contents of the file as they are at import time. Don’t assume that edits to the original file in your Downloads folder will update the config in the client. To make changes, edit the config in the client or import the revised file again and select it. Remote proxy-providers referenced by the config may refresh according to their own settings, but that’s separate from refreshing the entire local YAML file.
Base64 subscription import failed? Get the right format instead of renaming the file
Base64 is an encoding, not a Clash config format. A generic subscription often decodes into a list of node URIs, one per line, such as entries beginning with ss:// or vmess://. These entries have a different structure from Clash YAML and won’t automatically become proxy groups and rules. Pasting encoded text into a remote URL field—or renaming a saved file to config.yaml—doesn’t convert the format.
- Your provider offers a Clash or mihomo option: Select the compatible format and copy the new URL into the Subscriptions page. Don’t add parameters such as
format=clashto the original URL unless your provider’s documentation specifically instructs you to. - You only have a generic subscription or individual node links: Ask your provider for a compatible config. To build one manually, add the node details to
proxiesusing a protocol supported by your core, then configure proxy groups and rules as needed. Decoding the links alone isn’t enough to import them. - Your browser shows a login or error page: This isn’t a Base64-versus-YAML issue. Even if the server returns HTTP
200, the response body may still be HTML. Go back to your provider’s site, copy the dedicated subscription URL again, and check whether the link has been reset or expired.
Set subscription auto-updates and refresh manually
On the Subscriptions page, find the imported remote config. Open its right-click or More menu, choose Edit or Edit Info, and look for the Update Interval field. If there’s a separate auto-update switch, turn it on before saving. Check the unit shown next to the field: if it uses minutes, enter 1440 for 24 hours or 360 for 6 hours; if it uses hours, enter 24 or 6. Follow your provider’s recommended interval to avoid sending requests too frequently.
After saving, use Update or the refresh icon on the card to check that it works and confirm the last-updated time. A manual refresh tells you whether the URL works now; to confirm auto-updates are running on schedule, check again after the next scheduled interval. Don’t assume an update completed at a particular clock time while the client was closed or your Mac was asleep.
After importing: distinguish fetch errors, config errors, and proxy routing issues
| What you see | What to check first |
|---|---|
Import or update returns 401 or 403 | Check your subscription status in your provider account and copy the full URL again. Start by checking access permissions and URL parameters; there’s no need to change the YAML yet. |
| The link downloads, but applying it reports a parse or config validation error | Make sure the download is a complete config, not a web page or node list. If the log names a protocol, field, or proxy group, first check that the provider’s format matches your client’s core. |
| The config is selected, but the Proxies page doesn’t show the expected nodes | Check whether the proxy groups reference a remote provider. Importing the full config doesn’t mean the provider downloaded successfully. Look in the logs for related download or parse errors. |
| Nodes are visible, but browsing behavior hasn’t changed | On the Proxies page, check the mode and selected node in each group, then confirm that the system proxy is enabled. In rule mode, a request may match DIRECT based on the config, so seeing nodes doesn’t mean every request will use a proxy. |
To test the system proxy, open macOS System Settings → Network → your current network service → Details → Proxies and check which proxy settings are enabled and which ports they use. Compare the port with the value currently shown in the client. For example, if the client shows a mixed port of 7897, compare that with the port recorded in your system proxy settings. You don’t need to enable TUN just to test the system proxy. TUN changes how traffic is routed; it doesn’t download or parse configs.
Check things in this order: first, confirm that the remote URL returns a compatible config or that the local file can be read; next, confirm the config is selected and the proxy groups look right; finally, check the connection log to see which rule and outbound route a test request actually used. If either of the first two checks fails, fix the subscription or config first. Only investigate the system proxy and traffic routing after both checks pass.