Subscription Profile · Remote
A subscription lets the client download and refresh a configuration. On the Subscriptions page, paste the Clash-format URL provided by your service and click Import, then select the Profile card that appears. To refresh it regularly, set an update interval in the card’s settings. Unlike a local file, a subscription fetches its content again from the original URL, so manual rule changes may be overwritten on refresh. To keep custom rules, put them in a separate override layer. The settings below are examples of subscription content, not an import URL.
mode: rule
mixed-port: 7897
Local Configuration · Local
A local Profile is useful for managing YAML you have written yourself or keeping a verified configuration as a fallback. On the Subscriptions page, use the file import option to add a YAML file, then select it and confirm that its proxy groups appear on the Proxies page. A local entry has no remote subscription URL to refresh; after editing, save the client-managed copy or import the file again. The direct-connection rules below are simplified for readability. They illustrate matching order only; they include no proxy nodes and are not a substitute for a complete subscription.
mode: rule
rules:
- DOMAIN,example.com,DIRECT
- MATCH,DIRECT
Merge · Declarative Overrides
To keep a subscription up to date while preserving custom rules, edit Global Extension Config on the Subscriptions page. Put rules that should take priority in prepend-rules, save, then check whether the target request matches a new entry. Merge modifies the configuration applied to the core while leaving the original subscription intact; unlike Script, it requires no conditional logic. Global overrides can affect multiple Profiles. Before referencing a proxy group, make sure the other configurations also define a group with the same name.
prepend-rules:
- DOMAIN,example.com,DIRECT
append-proxies: []
Script · Conditional Rewriting
Open Global Extension Script on the Subscriptions page and edit main(config). The function receives a configuration object and returns the processed result, making it useful for conditional changes based on existing fields—for example, adjusting rules only when a specific proxy group exists. Merge is easier to review for a single fixed rule; with Script, you need to test cases such as missing fields and empty lists. The example returns the original configuration and provides a starting point for checking the function entry point. Test changes with a dedicated Profile before applying them to your everyday subscription.
function main(config) {
return config;
}
System Proxy · Application Traffic
Turn on System Proxy in the system settings section of Settings to point the system proxy at the client’s local listening address and port. Browsers and desktop apps that follow system proxy settings can connect through this entry point; programs with their own network settings may bypass it. This differs from TUN’s routing-based traffic capture and is unrelated to Rule, Global, or Direct outbound selection. To check browser requests, start on the Connections page. If the port is already in use, resolve the conflict before turning on the system proxy again.
Settings → System Proxy
Settings → Mixed Port
TUN · Virtual Network Interface
If a program does not use system proxy settings, try TUN in Settings. The client uses a virtual network interface and routes to send eligible traffic to the core; the configuration’s mode and rules still determine the outbound route. Grant permissions or enable the service as prompted for your platform, then test TUN on its own to identify how traffic enters. If enabling it causes problems with your local network or name resolution, turn it off and restore the previous state, then check other VPNs, routes, and DNS in turn. The fields below correspond to the core configuration.
tun:
enable: true