Rule
To route some requests through a proxy and others directly, set Global Routing to Config in Home, then check the active configuration file. Add matching conditions to Rule in order, placing more specific conditions before general ones. Finish with FINAL to set a policy for requests that do not match. The example below sends requests to the example domain and its subdomains through PROXY, and sends the rest through DIRECT. To check whether a rule works, test with a destination that matches its condition.
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT
On Demand
On Demand triggers connections based on your device's network conditions; it does not determine whether a request uses PROXY or DIRECT. For initial setup, connect manually first. Then open On Demand in Settings and set conditions for the networks you actually use. After saving, check the connection status on networks that do and do not meet those conditions to confirm when automatic connection starts. If the connection keeps changing after a network switch, pause On Demand and test manually to distinguish network changes from server issues.
Settings → On Demand
Protocols
When adding a server, choose a Type that matches the information you have. Shadowrocket supports protocols including Shadowsocks, VMess, VLESS, Trojan, and WireGuard; the required fields vary by protocol. Open Add Server from Home, select a Type, then fill in the fields shown using the information from your service provider. If the connection fails after import, first check that the protocol, Host, and Port match the original details. Do not switch repeatedly between protocols just to see if one works.
Add Server → Type
Host: example.com
Subscribe
If you have a subscription URL rather than the details for a single server, set Type to Subscribe in Add Server and enter the complete URL provided by your service provider. After saving, return to Home to check that it appears in the list, then select the server to connect to. If the entries change later, first check whether the subscription has updated, then see if the previously selected server is still listed. Subscription URLs may contain access credentials; when troubleshooting, describe the prompt without sharing the full URL.
Add Server → Type → Subscribe
Config
When reviewing or editing a configuration file in Config, distinguish the file you are editing from the one currently enabled. Keep the original before making changes. After editing, confirm that the expected file is enabled, then test with the same destination. If you use iCloud sync, check the file contents and enabled state shown on the other device before troubleshooting there. Syncing and enabling are separate steps; a file appearing does not mean its rules are active. Also check in Home that Global Routing is set to Config.
Home → Global Routing → Config
Diagnostics
To troubleshoot a connection, use Connectivity Test in Home to check the currently selected server, then test routing with a real destination. A successful first test does not mean every destination is reachable, and a failed second test does not necessarily mean the server is at fault. To review usage, open Data and compare traffic before and after the test. For further checks, open Diagnostics in Settings. When comparing results, note the network, selected server, and Global Routing mode; change only one condition at a time.
Home → Connectivity Test
Settings → Diagnostics