Shadowrocket Official Manual

Shadowrocket Features and Settings

Choose a connection mode in Home, manage routing rules in Config, check traffic in Data, and adjust app behavior in Settings. Examples use the iPhone / iPad interface; on other platforms, refer to the interface on your device.

01 Home

Global Routing: Choosing a Mode

Open Global Routing in Home and choose Config, Proxy, or Direct. This setting determines how Shadowrocket handles connections it manages; it does not change server settings or rewrite the current Config file.

Mode How connections are handled When to use it What to check after switching
Config Matches the rules in the current Config and applies the corresponding policy. For everyday use when different destinations need different routes. Confirm the intended file is enabled, then test destinations that should match different rules.
Proxy Routes managed traffic through the proxy without using the routing rules in Config to choose a destination. To briefly check whether the selected server can reach a specific destination. First check which server is selected in Home, then retest the destination that previously failed.
Direct Connects managed traffic directly, without routing it through a proxy server. To compare whether the same destination can connect directly on the current network. Keep the network and destination the same. This option does not turn off the connection switch in Home.

When troubleshooting, switch one mode at a time. If Proxy works but the same destination fails under Config, first check the Config match order and the policy being applied; do not assume the server settings are wrong. When testing is complete, switch back to your usual mode. For the initial connection steps, see Quick Start: Choose Global Routing.

02 Config

Routing Rules: Match Conditions, Policies, and Order

Rules match connection attributes to handling policies. In Config, open the file currently in use and review its rule list. Before making changes, save a restorable copy and verify the result with a specific test destination. Editing a file does not make it active; return to Home to confirm Global Routing is set to Config and check which file is enabled.

  • DOMAIN matches an exact domain name and is useful for exceptions for a single host; DOMAIN-SUFFIX matches a domain suffix, including the domain and its subdomains; DOMAIN-KEYWORD matches a keyword in the domain name and can match more than expected, so check that it will not catch unrelated sites.
  • IP-CIDR and IP-CIDR6 match IPv4 and IPv6 address ranges, respectively; GEOIP matches based on the geographic location associated with an IP address. These are not domain rules. The same domain may resolve to different addresses on different networks, so check the address used by the connection when verifying a match.
  • USER-AGENT relies on an identifiable client string in the request and is not a general-purpose way to identify traffic from every app. FINAL is a fallback rule for connections that do not match any preceding rule.
DOMAIN,docs.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT

Read this example from top to bottom: the first matching rule applies. docs.example.com matches the exact rule first and uses DIRECT; other domains with the same suffix can match PROXY; unmatched connections fall through to FINAL. If the suffix rule comes before the exact rule, it overrides the exception.

DIRECT means a direct connection, PROXY routes the connection through a proxy, and REJECT blocks matching connections. A webpage may request multiple domains, so loading the main page does not mean its images, login, or other requests all matched the same policy. For a partial failure, identify the destination that failed and narrow the rule scope rather than changing the fallback rule immediately.

03 Home

Managing Subscriptions and Servers

Subscribe imports and updates a group of servers maintained through one subscription. Get the subscription URL from your service provider. In Home, open Add Server, choose Subscribe, enter the full URL, and save. After importing, check that the list appears in Home, then select a server to use. Updating a subscription and switching servers are separate steps: after refreshing, confirm the selected entry is still available, especially if it has been renamed or removed.

If you have the details for a single server, choose its protocol in Add Server and enter the parameters provided by your service provider. Fields differ across protocols such as Shadowsocks, VMess, VLESS, Trojan, WireGuard, and Hysteria2; do not copy the address, port, authentication details, or transport settings from another configuration. If you have a QR code, import it using the Scan QR Code steps, then verify the protocol and server address after saving.

If the list is empty, first check whether the URL was truncated when copied, confirm the subscription is still valid, and try updating once more. If the list is complete but only some servers are unavailable, compare them using Connectivity Test on the same network, then test access to the same destination. Subscription URLs and server settings may contain credentials; when reporting an issue, share a redacted error message, not the full URL, password, or QR code.

04 Settings

On Demand: Connect Based on Network Conditions

On Demand lets the system trigger a connection when specified network conditions are met. It controls when to connect, not which policy applies once connected. To use different behavior on Wi-Fi and Cellular, open On Demand in Settings and review the network conditions available on your device. Set up and test one network condition first, then add the other.

To verify the setup, switch between Wi-Fi and Cellular, return to Home to check the connection status, and visit a known destination. If public Wi-Fi requires a sign-in page, complete network authentication before testing On Demand so that a network connection issue is not mistaken for an unavailable server. If the connection returns after you disconnect manually, check whether the current network still meets the trigger conditions. To isolate the cause, temporarily turn off On Demand and compare using the switch in Home.

05 Data

Data: Monitor Traffic Changes

Data shows the traffic recorded by Shadowrocket. Open Data and check the range and time period shown in the current view before comparing values. To measure the traffic used by an action, note the starting value, perform a repeatable action, then return to the same view and check the difference. Do not subtract cumulative totals from different time periods.

A page load may include redirects, media, or background requests. Conversely, a cached page may show little or no increase. To troubleshoot, pause other tasks and reload the destination, but do not treat Data figures as system cellular usage or provider billing: their measurement scope, reset times, and billing methods may differ.

06 Settings

Common Settings

First identify whether you need to address DNS resolution, test criteria, shortcuts, sync across devices, or troubleshooting. Note the original value before making changes, change one setting at a time, and retest the same destination.

DNS

DNS resolves domain names to IP addresses. Check the DNS options in Settings, then see whether the current Config also specifies DNS settings. Change the DNS service only when you have confirmed the issue involves name resolution, and follow the requirements of your network. After changing it, test both a public domain and a domain that must be accessed on the current network. If the latter fails, restore the original setting and test again.

Test Method

Check Test Method in Settings to confirm which method Connectivity Test uses in Home. When comparing servers, keep the test method and network the same; if the interface lets you set a test destination, use the same one as well. A low latency reading means only that the response was quick under those test conditions; it does not guarantee that every website will load, and it is not a download speed measurement. See Latency Test Reference.

Today Widget

Today Widget lets you check status or use shortcuts from the system widget area. In Settings, review the actions available in Today Widget, then check the system widget list to see if it can be added. After adding it, return to Home and verify the connection and Global Routing status. The widget provides quick access; it does not replace checking the current Config and server.

iCloud Sync

Check the iCloud options in Settings. Before enabling sync, make sure both devices use the same iCloud account, the system allows the app to use iCloud, and you have saved the configuration in use. After enabling it, verify the sync between devices with an easy-to-identify change and check the sync scope shown in the interface. Do not assume all preferences and connection status will sync. If the result is unclear, avoid editing the same configuration on both devices at once.

Diagnostics

If a connection fails or routing behaves unexpectedly, open Diagnostics in Settings and review the diagnostic information available on your device. Note the current network, Global Routing mode, and selected server, then reproduce the issue once. Use the failure time to decide whether to check DNS resolution, server reachability, or rules first. If sharing diagnostics, include only records relevant to the issue and remove credentials, full subscription URLs, and internal addresses.