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

HomeColumnProfiles

Smart proxy groups

The smart proxy group added in the FlClash RS test build picks a node for each site and moves to the next one on failure. How select, url-test, fallback, load-balance and smart choose, and when smart is worth it.

Checked on

A police officer directing traffic: a proxy group decides which road each car takes
A police officer directing traffic: a proxy group decides which road each car takes Calebrw, CC BY-SA 3.0

The common proxy groups in Clash profiles all pick one node for the whole group and use it for every site. The FlClash RS changelog adds another kind: the smart proxy group, which picks a node per site and, if a site fails on the current node, switches it to the next.

Why does the lowest-delay node open a particular site slowly or not at all? Because the delay test checks only one road. url-test visits an address meant purely for testing, usually something like generate_204 that returns nothing. It shows the node works and how fast the round trip is, but says nothing about whether the target site welcomes that node's exit.

How each group chooses

TypeHow it picks a nodeBest for
selectYou choose by handFull control
url-testTests delay on a timer and takes the fastestNodes of similar quality, you just want speed
fallbackUses the first one in order that worksOne main node with backups
load-balanceSpreads connections across nodesHeavy downloading, sharing the load
smartChooses per site, moves on after a failureSites behave very differently on different nodes

url-test's weakness is that it only tests one test address. The lowest-delay node will not necessarily open the site you want: one node is blocked by a streaming service, another gets "region not supported" from an AI service. smart stops treating every site the same.

A fingerpost with signs in many directions: smart points each destination its own way
A fingerpost with signs in many directions: smart points each destination its own way Lewis Clarke, CC BY-SA 2.0

When it is worth it

  • Your subscription has many nodes of uneven quality.
  • You often have to switch nodes to open a particular site.
  • You use the RS test build. The stable mihomo core has no such group, and a profile with one is refused there.

Less useful when you have only three to five nodes or prefer to pick by hand anyway.

Pair it with service checks

FlClash's dashboard has a Service status card that checks whether services such as ChatGPT, Claude and Gemini work on the current exit, with results like "Available", "Region not supported" or "Disallowed ISP". smart handles switching automatically, service checks make the situation visible; together they save a lot of manual switching.

Passing the baton in a relay: when one node cannot finish, the site is handed to the next
Passing the baton in a relay: when one node cannot finish, the site is handed to the next Sam Hood, Public domain

Writing it

RS's profile editor lists smart as a proxy group type with its own options; creating it there is safer than writing it by hand. If you do write it by hand:

  • Like other groups, it takes candidate nodes from proxies or use.
  • More candidates give it more choice, but the first visit to a site may also try more of them.
  • Do not nest a smart group inside a url-test group; when something goes wrong you cannot tell which layer chose.

A concrete example

Suppose the subscription has three nodes:

NodeTest delayVideo siteAn AI service
Hong Kong A40 msWorksRegion not supported
Japan B70 msWorksWorks
US C160 msWorksWorks

url-test picks Hong Kong A, so the AI service never opens unless you switch by hand. fallback also picks A, because it "works". smart moves the AI service to B after it fails on A, while the video site stays on A.

Grouping a large subscription

With many nodes, a single smart group gets messy too. A structure that is easier to maintain has two layers:

  1. Build a few groups by region, such as Hong Kong, Japan and the US, using node-name filters to sort nodes into them.
  2. Build a smart group containing those region groups or nodes as the default exit.
  3. Point the few services that must use a fixed region straight at a region group in the rules.

flclash.st has a ready-made regex generator for building region groups from node names.

Writing it by hand, for comparison

The url-test and fallback groups that stable understands look roughly like this, for comparison with a smart group made in the RS editor:

url-test and fallback
proxy-groups:
  - name: Fastest
    type: url-test
    proxies: [Hong Kong A, Japan B, US C]
    url: https://www.gstatic.com/generate_204
    interval: 300
  - name: Failover
    type: fallback
    proxies: [Japan B, US C]
    url: https://www.gstatic.com/generate_204
    interval: 300

url-test's interval is in seconds; too short means frequent tests and wasted traffic, and every three to five minutes is enough. Order matters in fallback: the first node keeps being used as long as it works.

Does smart remember its choice for each site?

Choosing a working node per site is its whole purpose; how long it keeps the choice depends on RS's implementation. After the core restarts it decides again.

Can stable use it?

Not at present. The stable core does not know the type and refuses the whole profile.

Does it conflict with rule routing?

No. Rules decide which proxy group gets the traffic; smart only picks a node inside the chosen group.

Will smart switch often and log me out of sites?

Some sites treat a changing IP as a suspicious login. For those, pin them to a region group with rules rather than leaving them to smart.

Next

Related settings

On this page: FlClash smart group, smart proxy group, FlClash automatic node choice