Official Shadowrocket Manual

Shadowrocket Setup Guide

Follow the steps in Home to make your first connection, from adding an existing subscription to verifying routing rules.

01Add details

Add a server or import a subscription in Add Server

Open Shadowrocket and stay on Home, with the connection switch at the top turned off. Tap Add Server in the SERVER section, or use the plus sign in the upper-right corner of Home to open the add screen. First, identify which details you have: a subscription link used to retrieve a server list, or the address, port, and authentication details for a single server. These use different entry points. If you have both, test with either one first; there is no need to add the same server twice.

If you have a subscription link

Tap Type, select Subscribe, and paste the complete link from your provider into the URL field. Do not copy only the domain or remove parameters after the question mark. If the link came from a chat, check for an extra period, space, or line break at the end. You can add a note to distinguish multiple subscriptions. Save and return to Home. Wait for the subscription contents to load, then expand the relevant group to view its servers. If the group appears but contains no entries, follow step 05 before trying again; do not save the same link more than once.

If you have details for a single server

Under Type, select the protocol specified in the details, then fill in the fields shown. For example, when adding a Shadowsocks server, check Host, Port, Password, and Method. Enter the server address and port in their separate fields; do not paste a full subscription link into Host. Fields vary by protocol, so do not use one protocol’s parameters for another. Save, return to Home, and confirm the new entry appears under SERVER.

If your provider gives you a QR code for a server you already have, use Scan QR Code in Add Server. After scanning, return to the list and check the protocol and entry name. Import from Cloud JSON, shown in the screenshot, is a separate import option; use the Subscribe steps above for a standard subscription link. Choose a routing mode after at least one selectable entry appears in the list.

Add Server screen showing the Type, Host, Port, Password, and Method fields, with a QR code scanning option at the bottom
Add Server: Type determines which fields appear next.

02Routing

Choose a routing mode in Global Routing

Return to Home and tap the Global Routing row. This setting determines how traffic is handled after the connection is turned on; it does not switch servers. When setting it up for the first time, note which mode is selected when you open the page. That way, after a temporary comparison, you can restore the original choice without guessing.

Configuration (Config)
Match requests against the currently enabled configuration. Requests matching a PROXY rule use the proxy, those matching DIRECT connect directly, and those matching REJECT are rejected. If no earlier rule matches, check how FINAL is handled in the configuration.
Proxy
Route traffic handled by the client through the proxy. This is useful for a brief comparison using the same network and server. If access works under Proxy but not under Config, check the rules next rather than immediately importing the subscription again.
Direct
Forward traffic without using the proxy. Use this mode to compare whether the current device network can reach the destination on its own. Selecting a server does not mean it is in use: the server can remain in the list while Global Routing is set to Direct.

For rule-based routing in everyday use, select Configuration (Config), then open Config at the bottom and check which configuration is enabled. Config here is the configuration file page, a different entry point from the Config option in Global Routing. Open the enabled configuration and view Rule to identify the rules that may match the destination and the FINAL rule. There is no need to tap Add Rule for a first connection. The subscription determines which servers are available; the configuration determines which policies requests use. Updating one does not update the other.

For example, the rule DOMAIN-SUFFIX,example.com,PROXY means that requests matching this domain suffix use PROXY. This is a syntax example, not a claim that the current configuration contains this rule. If an earlier rule matches first, check the policy on that rule. After checking, return to Home and confirm the Global Routing row shows the mode you selected before turning on the connection.

Config editor showing the General, Rule, Hosts, URL Rewrite, and HTTPS Decryption sections
Config: Review routing entries in Rule; check the settings before connecting, without changing them.

03Connect

Turn on the connection from Home

In the SERVER section of Home, expand the subscription group and select a server you are authorized to use. If you added a standalone entry manually, select it directly. Confirm that the entry is selected and note its name. If several names in the same group look similar, note the group too. Selecting a server and turning on the connection are separate actions; saving an entry does not do both.

Next, turn on the switch at the top of Home. When disconnected, the screen shows Not Connected. On the first connection, the system will usually ask whether Shadowrocket can add a VPN configuration. Confirm that the prompt refers to the Shadowrocket you just opened, then grant permission as prompted. If the system asks you to verify the device, complete that step in the system interface. If you tapped Cancel, return to Home and turn on the switch again to request permission. If the device is managed by an organization and the system does not allow a configuration to be added, follow the device management requirements; do not remove other configurations to try to bypass them.

Return to Home and wait for the switch and status to settle before continuing; do not tap repeatedly. If the switch quickly turns off again, note the prompt text and follow step 05 to troubleshoot the connection. If the connected status remains, the device has established a connection environment. This alone does not confirm that the remote server is available or that a particular website is using the proxy.

For the first verification, keep the same network if possible. Avoid switching from Wi-Fi to cellular data while turning on the connection. To end the connection, return to Home and turn off the switch at the top. If it connects again automatically, check the On Demand conditions in Settings. This setting controls when to connect automatically; it is separate from the Global Routing policy.

Home screen with the Not Connected switch at the top, followed by Global Routing, Connectivity Test, and SERVER groups
Home: Select an entry under SERVER before using the switch at the top.

04Verify

Verify with Connectivity Test and real requests

Run Connectivity Test from Home and check the result for the current server. The test reflects the result for that test, network, method, and destination. It can help distinguish an obvious timeout from an entry that completes a test, but it does not prove that every website will open or that rules are matching as expected. Keep the server and mode unchanged for now, then test real access.

  1. Choose two destinations with predictable results. Based on Rule in the enabled configuration, choose a common destination expected to use DIRECT and another expected to use PROXY. Make a new request to each in the same browser. Do not rely only on a page that is already open; cached content or an existing connection can make the result appear unchanged.
  2. Judge access and routing separately. If a page opens, that only confirms this request succeeded. If request records are available, find the matching entry by time and actual request domain, then check the matched rule or policy. A page may request resources from multiple domains, and the main page and its resources may not use the same policy. Without available records, do not infer the route from page loading speed alone.
  3. If results differ, change only the mode for one comparison. Keep the server and network fixed, and compare Configuration (Config) with Proxy for the same destination. To check the local direct connection, test Direct separately. If the destination works under Proxy but not Config, first check which rule it matches. If both modes fail, check the server or destination itself. Restore your usual mode after testing.

05Troubleshoot

Check the point of failure instead of repeating every setup step

Subscription parsing fails, or the group has no entries

Return to the saved subscription entry. Confirm Type is set to Subscribe, then check that the URL is complete and is not a provider sign-in page or a link for a single server. If the details are correct, update the subscription once from Home and expand the group to check again. If the current Wi-Fi requires a browser sign-in, complete that first and retry. If the link is complete and the network works but the list is still empty, check with your existing provider that the link is still valid and returns content the client can read. Do not post a parameterized link on a public page.

The switch will not stay on, or tests keep timing out

If the switch turns off again, first check whether the system is still waiting for VPN configuration permission. If it stays on but the test times out, confirm the current network can access the internet, then check the selected server. For a manual entry, check Host, Port, and protocol parameters. For a subscription entry, you can compare with another entry in your own list. If the same entry behaves differently on two networks, record the network difference first; do not change server parameters and test methods at the same time.

Connected, but some destinations will not open

First check that the mode is not still Direct, then under Configuration (Config), check whether an earlier rule matches the destination or whether it falls through to FINAL. If only one site has an issue, there is no need to clear the subscription or reinstall the app first. Open Settings and check Test Method to confirm whether the two Connectivity Test runs used the same method. You can also review information from Diagnostics as needed. If the issue mainly occurs when switching networks or disconnecting manually, check On Demand first; do not adjust other settings such as Proxy, TCP, or UDP at the same time.

Once you have identified the point of failure, see Troubleshooting for subscription, connection, and rule issues. For guidance on when to adjust Test Method, On Demand, or other settings, see Settings Reference. If the connection and verification results are as expected, you can keep the current settings.

Settings screen listing Language, Test Method, Today Widget, On Demand, Diagnostics, Proxy, TCP, and UDP
Settings: Check Test Method, On Demand, or Diagnostics based on the symptoms.