How to Import a Clash Subscription: Subscription URLs, Local YAML Files, and Formats Explained
Learn how to import a Clash subscription URL or local YAML file, tell Clash configurations apart from generic proxy links, and set update intervals.
Check the subscription format before choosing an import method
If your provider offers “Generic,” “Clash,” and “Clash Meta/mihomo” subscriptions, first check which core your client uses, then copy the matching link. Clash Verge Rev uses mihomo, so the provider’s full Meta/mihomo configuration is usually the best choice. A URL is an address for retrieving content, not a configuration format. Even if both addresses start with https://, they may return completely different content.
| What you have | How to identify it | How to import it |
|---|---|---|
| Clash or mihomo subscription URL | The provider labels it as a full configuration; the response commonly includes proxy-groups and rules. Proxies may be listed directly or loaded by the provider |
On the “Subscriptions” page, import it as a remote configuration |
| Local YAML file | Usually has a .yaml or .yml extension. Open it to confirm it contains a full configuration |
On the “Subscriptions” page, import it as a local configuration |
| Single proxy link or generic subscription | Look for links such as ss:// and vmess://. A generic subscription may also return multiple links in encoded form |
Use the matching import option only if the client explicitly supports that format; otherwise, ask the provider for a Clash or mihomo format |
| Proxy provider file | The provider labels it as a Proxy Provider; the YAML may contain only a list of proxies |
Usually referenced from a full configuration via proxy-providers; groups and rules are defined in the main configuration |
Saving a generic subscription as config.yaml only changes the filename; it does not create proxy groups or rules. Conversely, even if the client loads a YAML file containing only a proxy list, the expected groups may not appear. If you can’t find any selectable proxies after importing, first check whether the provider supplied a “full configuration” or just a “proxy list.”
Import a URL: copy the address, select the configuration, and check the connection
This walkthrough uses the Clash Verge Rev desktop interface. In some clients, “Subscriptions” may be called “Configuration” or “Profiles.” Look for the URL field at the top of the subscription list; don’t paste the URL into the search box on the “Proxies” page.
- Copy the full URL. Choose the Clash or Meta/mihomo format in your provider’s dashboard, then use “Copy subscription link” to get the original URL. Keep everything after the question mark; copying only the part before it may omit credentials or format parameters.
- Import it from the Subscriptions page. Open “Subscriptions” in the sidebar, paste the URL into the field at the top, and click “Import.” If your client uses a form, go to “Subscriptions” → “New” → “Remote,” enter the URL, and save. A new subscription card should appear.
- Switch to the new configuration. Click the new card and make sure it’s selected. Then open “Proxies” and check that the expected groups appear; if a group requires manual selection, choose the desired proxy. Seeing a subscription card doesn’t mean the client is using that configuration.
- Check that traffic is actually being routed. Enable “System Proxy” or “TUN Mode” as needed. When troubleshooting for the first time, test one option at a time rather than changing several switches at once. Send a new request from the target app, then check the client’s “Connections” page for the matched rule, proxy group, and outbound. A page loading in your browser doesn’t, by itself, prove that the request went through Clash.
Subscription URLs may contain account tokens that grant access. Before sharing screenshots or asking for help, redact the entire URL and any query parameters in logs. If the link has been exposed, reset it in your provider’s dashboard and replace the old URL in the client.
Import a local YAML file: select the file and verify the active configuration
- Keep the original file. Open a copy in a plain-text editor and make sure it isn’t a login page or a single proxy link. On Windows, show file extensions so you don’t mistake
config.yaml.txtfor a YAML file. Save edits as UTF-8, using spaces—not tabs—for indentation. - Use the local import option. In Clash Verge Rev, open “Subscriptions” → “New” and select “Local” as the type. If the form includes a file picker, choose the YAML file and save. If your version has a separate file import option on the Subscriptions page, use that instead. If creating a local entry only gives you a blank configuration, open the file editor from the new card’s menu, paste in the full YAML, and save.
- Select it and check for errors. Switch to the new card and look for loading errors in the logs. If the file references local
proxy-providersorrule-providers, make sure the associated files are in a location the core can read. Relative paths are resolved in the core’s runtime environment; don’t assume they still point to your Downloads folder.
Minimal example: check whether YAML loads
Use this configuration only to test local import and rule loading. Import a copy and, in Rule mode, requests will match MATCH,DIRECT and go direct. It has no proxy nodes, so it can’t test the proxies in your subscription. The example uses the local mixed port 17890 for HTTP or SOCKS clients. If the logs report that the port is already in use, check whether another program is listening on it or choose a free port. If the client overrides the configuration, use the port that is actually listening.
mixed-port: 17890
allow-lan: false
mode: rule
log-level: info
rules:
- MATCH,DIRECT
Subscription update intervals: configure full configurations and proxy providers separately
Remote subscriptions: set how often the full configuration refreshes in the client
Open “Subscriptions” → the menu for the remote card → “Edit Info” or “Edit Subscription,” then find “Update Interval.” If the value is in minutes, enter 1440 for 24 hours or 360 for 6 hours. If it’s in hours, enter 24 or 6. Start with one update per day, and follow your provider’s limits. After changing the interval, click “Update” on the card once and check the timestamp or result. There’s no need to wait for the next scheduled refresh to find out whether the old link has expired.
Proxy providers: set how often node sources refresh in YAML
If your main configuration uses proxy-providers, an HTTP provider can have its own interval. In mihomo, the value is in seconds, so interval: 86400 means 24 hours. The core uses it to refresh that provider’s proxy list; it does not fetch the full remote configuration again. The health-check interval under a provider controls how often proxies are tested, not how often the subscription refreshes.
A locally imported YAML file is a copy and has no remote update URL for the full configuration. To change its rules or group definitions, edit the current file or import it again. Any HTTP providers it references can still update independently. By contrast, refreshing a remote subscription may overwrite changes made directly to its contents. For rules you need to keep, use the client’s supported override mechanism or save a separate local configuration.
Subscription import failed? Check download, parsing, and connectivity
- Download failed: check the HTTP status or timeout first. For
401or403errors, check your provider’s dashboard for an expired subscription or reset link, then copy the URL again. For429, stop retrying and wait as directed by the provider. If the request times out, check whether your current network can reach the subscription domain. Don’t disable certificate verification to fix TLS errors. - Download succeeded but parsing failed: check the response content. A
200status only means the request received a response. If the logs show content starting with<html, you may have received a login or error page. If you get a string of encoded text, you may have selected the wrong subscription format. For local YAML errors, use the line number in the logs to check that line and the one above it for indentation, list dashes, and misspelled names. If the error reports an unsupported proxy type, check that the core and subscription formats are compatible. - Configuration loaded, but no proxy traffic: check routing and rules separately. First confirm that the client actually switched to the new configuration. After sending a new request from the target app, if it doesn’t appear on the Connections page, check whether the app follows the system proxy or whether TUN started successfully. If the request appears but the outbound is
DIRECT, check the first matching rule in Rule mode. If it matches a proxy group but still fails, check the selected proxy and provider status.
Keep the last working configuration during troubleshooting, and change one thing at a time. To revert, switch back to the old configuration, then confirm the previous routing method and proxy group selection. This helps distinguish subscription issues from client settings.