Skip to Content
Proxy ProtocolsSmart Group

Smart Group

BetaiOS/tvOS5.1+macOS5.1+

Smart Group (type: smart) routes traffic automatically based on real traffic performance, serving as a next-generation smart replacement for url-test and fallback.

Drop your available nodes into the group, and Stash continuously observes each route’s real-world speed and stability as you browse, automatically choosing faster, steadier exits for every site, ready to use out of the box and smoother over time.

Key Features

  • Real-Time Dynamic Tuning: Routes traffic by real-world access speed and stability. Regular latency tests only check availability rather than dictating priority order.
  • Seamless Failover: Switches immediately to a working route when a node stutters or drops, without waiting for timeouts. Unhealthy nodes are bypassed automatically and brought back once they recover.
  • Per-Site Optimization: Picks the best exit for each website independently. Degradation on one site only affects routing for that site without disturbing others.
  • Per-Network Isolation: Keeps separate node performance records across different Wi-Fi and cellular networks to match carrier and route differences. Switching networks never carries over stale ratings or misjudges nodes after a brief disconnect.
  • Lightweight On-Demand Probing: Skips active probing when idle and probes lightly only when needed, keeping battery and traffic overhead low even on large node lists.
  • Custom Priority: Supports fine-tuning node preferences with regular expressions via policy-priority.

How It Feels in Practice

  • When the current node suddenly stalls or drops: New connections are picked up automatically by healthy alternatives, while the failing node is bypassed until it recovers and re-enters selection.
  • When a node is fast overall but slow or blocked on one site: Smart downgrades that node for the affected site alone and converges on a faster alternative, while other sites stay on your primary node.

Configuration

Set type to smart under proxy-groups, and combine include-all-providers, filter, and exclude-filter to manage subscription nodes:

proxy-groups: - name: Smart-Auto type: smart proxies: - my-dedicated-node use: - my-provider include-all-providers: true filter: 'HK|JP|SG|US' exclude-filter: 'Info|Traffic|Expire|Remaining' policy-priority: 'Premium:0.7;HK:0.85;US:1.2'

Usage Notes

  • Actual proxies only: Include only real proxy nodes (via proxies, use, use-url, include-all, include-all-proxies, include-all-providers, etc.), without nesting other groups or built-in policies such as DIRECT or REJECT. Other groups like select can reference a Smart group.
  • Keep your node list lean: Use filter, exclude-filter, or exclude-type to drop informational entries and unreliable routes so the group stays focused and converges faster.
  • Per-connection automatic routing: There is no fixed current node, and manual selection or temporary override to a single node is not supported.
  • No probe interval needed: interval, lazy, and tolerance have no effect on Smart groups. To disable background probing completely, set benchmark-disabled: true.
  • IP-sensitive services: Smart balances across top-performing nodes and periodically tests faster routes, so exit IPs may change. For online banking or strict anti-fraud services, route traffic to a fixed node or a select group via rules.

Custom Policy Priority (policy-priority)

Use regular expressions to assign priority weights by node name, ideal for favoring dedicated routes or gently deprioritizing high-multiplier nodes:

  • Default weight is 1, and smaller values take higher priority (below 1 raises priority; above 1 lowers priority).
  • Each rule uses the format regex:weight, with multiple rules separated by semicolons ; (a trailing ; is allowed).
  • Patterns are case-sensitive, match anywhere in the node name, and apply the first matching rule in order.
proxy-groups: # Single rule: lower priority for high-multiplier nodes - name: Smart-Single type: smart include-all-providers: true policy-priority: 'x3|3x:1.5' # Multiple rules: matched in order; unmatched nodes keep default weight 1 - name: Smart-Multi type: smart include-all-providers: true policy-priority: 'Premium:0.7;HK:0.8;x3:1.5'

Temporarily Ignoring Nodes

Smart evaluates network connectivity and transfer speed, so it cannot detect application-layer restrictions such as regional blocks or HTTP 403 errors. When a reachable node hits these restrictions, you can temporarily ignore it in Stash or route that site to a specific regional group via rules.

Ignored nodes apply globally by node name across all automatic groups (smart, url-test, fallback), demoting them to last-resort fallbacks (manual overrides on url-test or fallback still take precedence). The ignore state persists across config reloads, network switches, and subscription updates, can be restored anytime, and clears automatically when Stash restarts.

Last updated on