Install a Clash Client on iOS: Find It on an International App Store and Import a Config
Learn how to find a Clash-compatible client on an App Store outside mainland China, import a subscription URL or local YAML file, and approve the iOS VPN prompt.
Check Your App Store Region and Client Compatibility
Using Stash as an example, first check that the client is listed in the App Store region for the Apple Account you plan to use, then verify that it supports your config format. The store region is tied to the Apple Account used for purchases; changing your iPhone’s language and region won’t switch storefronts. Check the listing in the relevant store to see where the app is available.
- On your iPhone, go to Settings → your Apple Account at the top → Media & Purchases → View Account → Country/Region. You may be asked to verify your identity. For now, just check which storefront the account uses; you don’t need to change regions.
- If you already have an account that meets the requirements for another storefront, sign in with it under Media & Purchases, then open the App Store. Don’t sign out of iCloud on your entire device just to switch storefronts. If you plan to change the region on your existing account, first check for restrictions involving your balance, active subscriptions, Family Sharing, and payment methods for the new region.
- Search for
Stashin the App Store, open its listing, and check the developer, price, and Compatibility section. Purchases and redownloads are generally tied to the store account used to get the app. Before installing, check the app’s description to confirm it supports your config format and proxy protocols.
Import a Remote Config from a Subscription URL
Use a subscription URL if you need to refresh nodes and rules later. Copy the full link provided as “Clash,” “Clash YAML,” or explicitly for Stash. An account dashboard URL, payment page, or individual node share link is not the same thing.
- In Stash, open the config list by tapping the config name on the home screen or going to Settings → Configurations. The menu may vary by version; look for the add button in the list, then choose “Download from URL” or a similar remote import option.
- Paste the full
https://link, including everything after?. Subscription tokens are often in the query string; leaving part of it out may return a login page or403. When sharing screenshots or logs, hide the entire subscription URL, not just the characters at the end. - Once the download finishes, select the imported entry in the config list. Return to the home screen to check the active config name, then open a policy group to see whether it contains selectable nodes. Seeing a filename in the list only means a config entry exists; it doesn’t mean it’s selected or that all resources have loaded.
- Start by manually updating the config from its menu. Updating a remote config may overwrite local changes, so save a copy first if you want to experiment. If the client lets you set an update interval, follow your subscription provider’s limits. For example, a 24-hour interval is a reasonable daily check; avoid repeatedly requesting updates.
If the download completes but parsing fails, check the response body first. 200 OK only means the request got a response; it could still be an HTML login page, a JSON error object, or a Base64-encoded node list. A full Clash config typically has top-level keys such as proxies, proxy-groups, and rules. Configs that use remote node collections may also reference nodes with proxy-providers. Get the correct format from your provider, and don’t submit a tokenized subscription URL to an untrusted conversion service.
Import a Local YAML File from Files
Use a local import if you only have an offline file or want to keep a config that won’t be updated by a remote subscription. Save the .yaml or .yml file in Files under On My iPhone or iCloud Drive. If it’s in the cloud and hasn’t been downloaded yet, open it first to make sure the file contents are available on your device.
- Open the add menu in the client’s config list. If there’s an “Import from File” option, select the YAML file in the system file picker. You can also long-press the file in Files, tap Share, and select the client if it appears in the share sheet. Don’t paste a local file path into “Download from URL.”
- After importing, check the active config name. If the actual filename is
config.yaml.txt, inspect the file contents; changing the extension alone won’t turn rich text or a web page into YAML. Edit it as plain text in UTF-8, using spaces for indentation—not tabs. - If the config contains
rule-providersorproxy-providers, check that the resources have loaded. Absolute paths on your computer and dependencies in the same folder won’t come along with a single YAML file. A local import isn’t necessarily fully offline either: remote resources referenced in the config may still need a network connection.
Test a Local Import with a Minimal Rule
Save the following content as direct-check.yaml and import it separately so you don’t overwrite your everyday config. This file has no nodes; it only tests local file access, rule parsing, and VPN startup. All traffic uses DIRECT, so it can’t test proxy connectivity or changes to your apparent location.
mode: rule
rules:
- DOMAIN,example.com,DIRECT
- MATCH,DIRECT
MATCH goes last and handles connections that didn’t match earlier rules. Select the test config and start the VPN, then open example.com and check the client’s connection log for the domain and DIRECT policy. Browser caching may mean a refresh doesn’t create a new connection. When you’re done, switch back to your everyday config and confirm its name is active.
Allow iOS to Add a VPN Configuration on First Launch
Importing YAML and enabling the system VPN are separate steps. The first prepares your rules and nodes; the second starts iOS’s network extension so the client can handle traffic according to your config. You don’t need to copy desktop settings such as tun.enable or mixed-port: 7890 to get started—these fields don’t replace iOS system authorization.
- Return to the home screen, confirm the config you want to use is selected, then tap Start. When iOS asks to add a VPN configuration, check the client name, tap Allow, and complete any authentication requested by the system.
- Wait for the client to show that it’s connected. You can also check the configuration and connection status under Settings → General → VPN & Device Management → VPN. If you previously tapped Don’t Allow, try starting the client again and see whether the prompt reappears. If it still can’t add a VPN, check whether your device is restricted by an organization’s policy.
- With your regular config and nodes enabled, visit a domain that should use the proxy in rule mode. Check the connection log for the matched rule, policy group, and outbound node. Then visit a domain that should connect directly and confirm the log shows
DIRECT. A VPN status of Connected only confirms that the tunnel is running; it doesn’t prove that a particular request went through the proxy.
The system VPN prompt and installing a certificate are two different things. Standard rule-based routing doesn’t require you to enable root certificate trust for the client. If you already use a personal VPN, check which one is connected. Leave enterprise VPNs and managed configurations to your administrator; don’t delete them while troubleshooting.
Imported Successfully but No Internet? Troubleshoot by Stage
| Symptom | Where to Check | What to Do |
|---|---|---|
Subscription refresh returns 401 or 403 |
Config update log, subscription expiry | Check that the URL is complete and authorization is still valid. If needed, copy the link again from your provider. |
| Download completes, but YAML parsing fails | Response format, reported line, and preceding line | First rule out HTML or another file format, then check indentation, colons, and list hyphens. The reported line may simply be where the parser detected the problem. |
| Config is selected, but the policy group is empty | proxy-providers load log and the group’s use references |
Check whether the provider downloaded successfully and whether the referenced name matches its definition. If the provider file itself isn’t compatible, get a config supported by your client. |
| VPN is connected, but one site won’t load | Destination domain, matched rule, and outbound shown in the connection log | First determine whether the rule routed the request incorrectly or the selected node failed to connect. If MATCH was hit instead of the expected domain rule, check the rule order and whether the rule set loaded. |
Change one thing at a time while troubleshooting. Keep the same test domain, compare what happens with the VPN off and on, then decide whether to switch nodes or move between Wi-Fi and cellular. A successful node speed test only shows that the test request was reachable; to check a real request, look at the rule and outbound actually used for that domain.