Skip to content
CMFA Guide

Import a subscription

Four import routes that differ only in where the link comes from. Choosing the right one removes most "import failed" cases. Shortest path first, then when to use each.

Importing from a URL (the usual case)

  1. 01

    Copy the whole link

    A subscription URL is a long https:// address ending in a token parameter. Copy all of it — one missing character breaks parsing.

    Do not use "copy link address" on a button on a provider page. That is usually a landing page, not the subscription itself.

  2. 02

    Open the Profiles tab

    Second tab at the bottom. Tap the plus button at the lower right.

  3. 03

    Choose Import from URL

    Paste into the URL field. Leaving the name blank fills in the domain; rename it to something you recognise, such as provider plus plan.

    Importing the same URL twice creates a second profile rather than overwriting. Renaming is less work.

  4. 04

    Wait for download and parse

    When the bar completes it reports the profile as activated. Subscriptions with rule sets take a few extra seconds the first time.

  5. 05

    Set auto-update

    In the profile details, set "Auto update (minutes)" to 720 for a 12-hour refresh. Left empty means it never refreshes.

Four routes, four situations

RouteWhen to use itWatch out for
Import from URLYou have a subscription link — the defaultThe link contains your token; never share or screenshot it
Import from fileYou have a .yaml / .yml file, or the provider only ships filesThe file must be in device storage with the right extension
Import from QR codeThe provider gave a QR code, or it is on another deviceAsks for camera permission; gallery images work too
Import from clipboardThe link is already copiedFails immediately if the clipboard is not yaml

Scroll the table sideways

All four end up as the same yaml. Only the transport differs; behaviour after import is identical.

What a subscription URL looks like

A Clash subscription returns yaml containing at least proxies and proxy-groups, usually with rules. Opened in a browser it should show a wall of text, not a web page. If you land on a login or pricing page, the link is wrong.

The URL normally carries a token or a ?clash=1 style parameter. That is your account credential: anyone with the link can use your traffic. Do not screenshot it, post it in a group, or paste it into a public issue.

Keeping several profiles

The Profiles tab holds any number of profiles, with exactly one active. Switching means tapping another entry: the core reloads and open connections are closed.

A common layout is one daily line, one backup, and one stripped-down profile with a few nodes. Switching beats re-importing, especially when the network is flaky.

  • Long-press a profile to rename, duplicate, export or delete it.
  • Export writes a yaml file to device storage — useful before changing phones.
  • Spaces and non-Latin characters in profile names are fine.

Read the part after the colon

Failures name a cause: timeout, 401, EOF, yaml: unmarshal errors. Each means something different; work through them in subscription update fails. Do not tap retry repeatedly before reading it.

Import questions

Import succeeds but the Proxies tab is empty
The yaml has no proxy-groups, or proxies is empty. That usually means the provider gave single-node links instead of a Clash subscription. Ask for a standard Clash config, or write one.
What refresh interval should I use?
720 minutes (12 hours) suits most people; 180 if the provider rotates nodes often. Values below 60 minutes are pointless and get tokens rate-limited or banned.
How many nodes should I see?
Profile details show an entry count. It matches the number of lines your provider sells, excluding rule sets. A sudden drop usually means a plan change.
How do I move to a new phone?
With both devices at hand: export on the old one, transfer, import from file. With only the URL, just import it again — rule sets download automatically.