Clash Rule, Global, and Direct Modes Explained: Which Proxy Mode Should You Use?

Compare Clash Rule, Global, and Direct modes, learn when to use each, and find the mode switch in the Windows tray menu.

How the Three Modes Differ: Where Connections Go After Entering Clash

Use Rule for everyday browsing. Switch briefly to Global when you need to test everything through the same proxy exit. Choose Direct to keep traffic flowing through Clash while bypassing remote proxy nodes. These modes control how Clash handles connections it receives—not which apps send their connections to Clash.

ModeHow the outbound route is chosenWhat to check after switching
RuleRules in the configuration are evaluated in order, and the first matching rule determines the outbound route: direct, reject, or a policy group.Which rule matched the connection and what the selected policy group is currently using.
GlobalConfiguration rules are bypassed; the current selection in the GLOBAL group determines the outbound route.Whether the selection is a proxy node, another policy group, or DIRECT.
DirectRouting rules are bypassed, and Clash connects directly to the destination without using a remote proxy node.Whether the request still enters Clash and whether a direct connection from your device to the destination works.

Use Rule for everyday browsing: check the matched rule, then the policy group

Rule mode works well when you use a mix of company intranet sites, regular websites, and services that require a proxy. Your configuration routes different destinations through different outbounds, so you don’t have to switch settings app by app. If a page won’t load, check the connection in Connections: did it match a specific domain rule, or fall through to the final catch-all rule? A webpage may also request resources from several domains, so the homepage loading doesn’t mean its images or API calls followed the same route.

Why a direct rule may not take effect

Here’s an example of rule ordering. Proxy refers to a policy group already defined in your configuration; it isn’t a standard name included in every subscription. example.com is an example domain.

rules:
  - DOMAIN,api.example.com,DIRECT
  - DOMAIN-SUFFIX,example.com,Proxy
  - MATCH,DIRECT

When Clash can identify the destination domain, api.example.com matches the exact rule first and goes direct, while www.example.com matches the suffix rule and goes through Proxy. Move the suffix rule to the top, and it will also catch the API request that was meant to go direct. MATCH is the catch-all rule and usually belongs at the end. Once a connection has an outbound route, a timeout won’t make Clash try the next rule.

If a rule does match Proxy, check what that group actually selects. A manually selected group may point to a dead node or be set to DIRECT. Changing domain rules won’t fix a policy group selection. If the connection list shows only a destination IP, first check whether the request provided a domain name. Moving a domain rule higher won’t make a connection identified only by its destination IP match that domain.

Use Global for development and testing: fix the outbound route to isolate routing differences

If a browser can reach a test API but a command-line tool times out, first confirm that both requests enter Clash. Then compare them directly: keep the destination the same, switch to Global, and in Proxies explicitly point GLOBAL to the same working node. Retry the request. If the results still differ, check the tool’s own proxy settings, certificate trust, and request parameters instead of changing the entire ruleset.

Test command-line requests through the local proxy port

Check the port on the General page in Clash for Windows. If the current HTTP or mixed proxy port is 7890, use the command below in Windows 11 PowerShell to specify the proxy explicitly. If Clash is listening on a different port, replace it with the value shown in the app. A SOCKS-only port cannot be used with this HTTP proxy address.

curl.exe --proxy http://127.0.0.1:7890 --include --max-time 15 https://example.com/

The 15-second value is the timeout for a single request, not a speed-test result. If the error says it can’t connect to 127.0.0.1:7890, first check that Clash is running and the port is correct. If the request reaches Clash, check the outbound selection and connection errors in Connections or Logs. For HTTP 401 or 403 responses, determine whether the response came from the destination service or an intermediary proxy; the status code alone doesn’t mean the node is broken.

Switch back to Rule when you’re done comparing. Global bypasses the rules that would normally send intranet traffic direct; if that traffic enters Clash, a remote node usually can’t reach services available only on your local network. There’s no need to leave the whole client in Global to test those addresses.

Use Direct for temporary troubleshooting: keep the traffic entry point, bypass the remote proxy

Direct and turning off System Proxy are two different actions. Direct tells Clash to send received connections straight to their destinations. Turning off System Proxy stops the client from managing Windows proxy settings. Requests may still pass through Clash after System Proxy is disabled if an app explicitly uses a local listening port or traffic is still routed through enabled TUN. Check the connection log for new requests to see which applies.

  1. Note the current settings. Record the current mode, policy group selection, and whether System Proxy and TUN are enabled. Choose a public address that should already be reachable directly, then test it with the same app and request each time.
  2. Switch only to Direct. Leave other settings unchanged and start a new connection; don’t mistake an existing long-lived connection or browser cache for the result of the switch. If Direct works but the original proxy route fails, check the selected node, policy group, or remote route first.
  3. Bypass Clash for a follow-up test if needed. Turn off System Proxy and TUN, check whether the app or terminal has its own proxy configured, then retry the request. If it works after bypassing Clash, check the local proxy entry point, DNS settings, or TUN routes. If both tests fail, check your local network and the destination service. A Direct failure alone doesn’t prove the proxy node is at fault.

Switch modes from the Windows 11 system tray

Clash for Windows is no longer maintained. If you’re using the archived final release, 0.20.39, find the client icon on the right side of the Windows 11 taskbar. If it’s hidden, expand the overflow icons first. Right-click the tray icon to open the client menu, then check the Rule, Global, and Direct options and which one is selected. Menus may vary between clients and localized versions. If the tray icon isn’t visible, open the main window, switch modes on the Proxies page, and confirm your selection.

  • Websites look the same after switching modes: First check whether the app uses the system proxy. In Windows 11, go to Settings → Network & internet → Proxy to review the system settings, then check Clash’s connection log after starting a new connection. The system proxy setting doesn’t control proxy behavior in every app.
  • Global still shows a direct connection: If the connection appears in Clash, check whether the GLOBAL group is set to DIRECT, or whether the selected nested group ultimately routes traffic direct. Changing modes and choosing a node are two separate steps.
  • Only some requests fail after switching back to Rule: Check the destination and outbound route for each failed request; don’t rely only on the main domain in the address bar. Download, login, and API requests may each match different rules.
Download Clash