flclash.st
English
简体中文繁體中文EnglishРусскийفارسی

HomeRecipesMerging subscriptions

Merging subscriptions

FlClash runs one profile at a time. To use several subscriptions together, write a local configuration that treats each one as a proxy-provider and let url-test, fallback and select groups manage them. Full YAML, how to import it, and how to check.

Ingredients

  • Two or more subscription URLs (Clash/mihomo format is easiest)
  • A text editor
  • About ten minutes
AdLuoboyunWant a second subscription to practise this recipe? Luoboyun gives 1 GB on sign-up, valid 24 hours, and the link works directly as a provider.Take 1 GB

Why do it

Each subscription on FlClash's Profiles page is its own profile, and only one can be active. Switching back and forth is a chore, and connections drop when you do. Writing the subscriptions as proxy-providers tells the core "fetch nodes from these addresses", and the groups then choose among the nodes.

Subscription A Subscription B Subscription C proxy-providers Each updates on its own Speed test Manual pick Rules Choose the exit
How three subscriptions reach one set of groups
A row of taps: several sources feeding the same basin
A row of taps: several sources feeding the same basin W.carter, CC BY-SA 4.0

Steps

The merged configuration (excerpt)
proxy-providers:
  sub-a:
    type: http
    url: "https://example.com/sub-a"
    interval: 86400
    path: ./providers/sub-a.yaml
  sub-b:
    type: http
    url: "https://example.com/sub-b"
    interval: 86400
    path: ./providers/sub-b.yaml
proxy-groups:
  - name: Auto
    type: url-test
    use: [sub-a, sub-b]
    url: https://www.gstatic.com/generate_204
    interval: 300
  - name: Pick
    type: select
    proxies: [Auto, DIRECT]
    use: [sub-a, sub-b]
rules:
  - GEOIP,LAN,DIRECT
  - MATCH,Pick
  1. Replace the addresses above with your own subscriptions, adding more in the same way. The workshop's subscription merger can also generate this for you.
  2. Save it as merged.yaml.
  3. FlClash → Profiles → Add → choose "File", import the file and activate it.

Check

On the Proxies page, open the "Pick" group: nodes from both providers should be listed. Run a speed test on "Auto" and the lowest-delay node gets picked.

My provider gives Base64 or another format; can it be a provider?

The mihomo core understands many common formats, but not all are guaranteed. The safest is to choose a "Clash" or "Mihomo" subscription in the provider's dashboard.

Whose rules are used?

The rules in this configuration are the ones you write; rules from the providers' subscriptions do not come along. For fuller rules, add rule-providers.

Can I still see traffic and expiry?

A merged configuration does not show each provider's traffic card. Check them in each provider's dashboard.

Read onRegion groups

Read alongside

This page covers: FlClash multiple subscriptions, proxy-providers, merge subscriptions