config.yaml / Settings and configuration reference

Client settings and rule files

Clash client interface preview
  • Proxies
  • Rules
  • Connections
  • Logs
  • Settings
Local connections
Allow LANOff
Proxy modeRule
TUN modeOff
allow-lan: false
mode: rule
tun:
  enable: false
rules:
  - DOMAIN-SUFFIX,example.com,DIRECT
  - MATCH,DIRECT
This is a settings reference, not a complete subscription. The example has LAN access and TUN disabled, and both sample rules use DIRECT. To check whether traffic capture is working, open Connections in the actual client, send a new request, then check the matched rule and selected route. An enabled toggle alone does not prove that an app's traffic is passing through the client.

Clash settings

First, distinguish interface preferences, traffic capture, and routing rules. The interface language controls menu labels; the system proxy or TUN mode determines which requests reach the client; rules determine where those requests go. Switch tabs to compare where each setting lives with its configuration syntax.

Change the language in the client

Open Settings and find Interface language under General or Appearance. Select Simplified Chinese. If prompted to reload, follow the prompt before reopening the configuration page. This changes menus and prompts only; it does not rename subscriptions, proxy groups, or rules. Some clients follow the system language, while others save their own preference. If there is no language option in the menu, check your system's app language settings and confirm that the client supports Chinese. Don't edit subscription files just to change the interface; those files are read by the core.

Download Clash for your operating system

Before downloading, check your operating system and processor architecture, then confirm that the client supports the configuration format and traffic-handling mode you need. For desktop use, start with a GUI client. If you only need to run rules on a server, look for a standalone core on the download page.

Windows

Find your system type in Settings → System → About, then choose the matching installer.

Go to downloads

macOS

Check About This Mac to see whether you need an Apple silicon or Intel package.

Go to downloads

Android

Choose an APK for your device’s architecture and grant VPN permission on first connection.

Go to downloads

iOS

Check device and iOS compatibility in the App Store before installing.

Go to downloads

Linux

Pick a package that matches your distribution’s package format and processor architecture.

Go to downloads

Browse all clients

Get started with Clash

First, use an existing configuration to establish a connection. Customize your rules afterward. Change one setting at a time so you know what to undo if something goes wrong.

  1. Install and open the client

    On the download page, choose a client that matches your operating system and architecture. Install it, open the main window, and make sure you can access Settings. When migrating, back up your old client configuration before quitting the old client; closing its window may not stop the process in the system tray.

  2. Import a subscription and activate the configuration

    Under Profiles or Subscription, add a URL or local YAML file. Wait for the import to finish, then select the configuration you want to use. Open Proxies and check that the proxy groups have loaded. A configuration appearing in the list means it was imported, not necessarily activated.

  3. Connect and check the matched rule

    Select Rule mode. On desktop, test with an app that supports the system proxy; on mobile, grant permission when prompted. Visit a known destination, then check its domain, matched rule, and route on the Connections page. If no request appears, check how traffic is being captured before switching nodes.

Read the complete guide

Clash open-source projects and update channels

Clash is an ecosystem of clients, not one installer with different names for each operating system. To identify which project a problem belongs to, first determine whether it occurs in the GUI, the core, or the subscription configuration.

Project history: from Clash to Mihomo

The original Clash project popularized using configuration files to define proxies, proxy groups, and rules. Clash.Meta expanded that configuration approach with additional protocols and networking features, and is now maintained as Mihomo. Menu screenshots and field descriptions in older guides may not match current clients. For features with similar names, check which project's documentation applies. Successfully importing a configuration only means the client accepted the file; whether it can start also depends on whether the core can parse its fields.

Community support: report issues at the right layer

Tray menus, interface language, saving configurations, and installation are usually handled by the GUI client; configuration parsing, rule matching, and connection behavior are more likely to involve the core. Before reporting an issue, note your operating system, client name, core in use, steps that caused the error, and the first relevant log entry. If only one subscription fails, compare it with a minimal local configuration before contacting the configuration provider. When sharing logs, keep fields and value types that help reproduce the issue, but remove subscription URLs, authentication details, and private IP addresses.

Configuration compatibility: YAML doesn't guarantee the same options

Some GUI clients merge overrides and generate the runtime configuration before launch, so the original subscription may differ from what the core actually reads. Keep a copy of the original configuration when migrating. For unknown-field or missing-proxy-group errors, first check the generated configuration, group names, and references. Don't change multiple settings at once. A client opening, a configuration loading, and a request using the intended route are three separate checks.

Updates: check the app, core, and subscription separately

An app update may change the interface or permission flow; a core update may change configuration parsing or connection behavior; a subscription refresh updates the content from its provider. These updates don't necessarily happen together. Before upgrading, keep a configuration that connects successfully. Afterward, check that the app starts, the core accepts the configuration, and the same destination uses the expected rule and route. If a problem starts right after a subscription refresh, check the active configuration and override history first; there's no need to reinstall the whole client straight away.

Clash guides and updates

Choose a guide for your task: start with platform setup for a new mobile configuration, compare clients when switching, or troubleshoot startup if the main window won't open.

Browse all articles