📚 Complete Guide

Clash X Clash X Tutorial

From beginner to expert, easily master proxy configuration

🧠

1. Core Concepts

Before you start, understanding how ClashX works will help you configure it better.

How It Works

ClashX is a rule-based proxy client. Unlike traditional VPNs (global encrypted tunnels), ClashX operates at the application layer (System Proxy) or network layer (TUN Mode), using preset rule lists to determine where each network request should go.

🔄 Routing Logic: When you visit a website (e.g., google.com), ClashX checks your rule file. If a rule matches and requires proxy, traffic is forwarded to the proxy server; if it's a domestic domain, traffic is sent directly without proxy.

Configuration File (YAML)

The core of ClashX is the config.yaml file. This file defines three main parts:

  • Proxies: Defines proxy server information (IP, port, encryption method).
  • Proxy Groups: Groups nodes together, e.g., "Auto Select", "Manual Select", "Apple Services", etc.
  • Rules: Defines traffic matching logic, e.g., DOMAIN-SUFFIX,google.com,Proxy.
💻

1. Installation Tutorial

Three simple steps to quickly install Clash X

Step 1

Download App

Visit the download page, select the version for your system and download.

💡 Recommended: Latest stable version Clash X v1.119.0
Step 2

Install App

  1. Double-click the downloaded .dmg file
  2. Drag the Clash X icon to the "Applications" folder
  3. Find Clash X in the "Applications" folder and double-click to open
Step 3

Grant Permissions

On first launch, the system may show "Cannot be opened because it is from an unidentified developer". Solution:

  1. Open "System Preferences" → "Security & Privacy"
  2. Click the "Open Anyway" button
  3. Or execute this command in Terminal:
bash
xattr -d com.apple.quarantine /Applications/ClashX.app
💡
Tip: Clash X requires network proxy permissions. You will be asked to enter your system password when running for the first time.
⚙️

2. Basic Configuration

Complete initial setup and get ready to use

Launch Clash X

After opening the app, you will see the Clash X icon (a cat icon) in the menu bar. Click the icon to see the main menu.

🎯 The menu bar icon is your main entry point for interacting with Clash X

Initial Setup

  1. Click the menu bar icon
  2. Select "Config" → "Open Config Folder"
  3. Place your configuration file (.yaml) in this folder
  4. Return to the menu and select your config file under "Config"
⚠️
Note: Configuration file format must be correct. It is recommended to use the configuration file or subscription link provided by your service provider.
🔗

3. Subscription Settings

Use subscription links to automatically update node configurations

Add Subscription Link

Subscription links are the most convenient configuration method and can automatically update node information.

1
Click menu bar icon
2
Config → Managed Config
3
Add subscription URL

Update Subscription

Subscription links can be updated regularly to get the latest node information:

🔄

Manual Update

Config menu → Select config → Click "Update"

Auto Update

Set update interval in managed config

🌐

4. Proxy Modes

Understand three proxy modes and choose the one for your use case

🌍

Global Mode

All traffic goes through proxy, suitable for scenarios that require full proxy.

Global
📍

Direct Mode

All traffic goes direct without proxy. Used to temporarily disable proxy.

Direct

Switch Proxy Mode

Click the Clash X icon in the menu bar and select the desired mode under "Outbound Mode".

📋

5. Rule Configuration

Customize traffic rules to precisely control proxy behavior

Rule Explanation

Rules are used to determine which traffic should go through proxy and which should go direct. Common rule types:

🌐

DOMAIN-SUFFIX

Domain suffix matching

🔍

DOMAIN-KEYWORD

Domain keyword matching

📍

IP-CIDR

IP address range matching

🗺️

GEOIP

Geographic location matching

Custom Rules

Edit the configuration file and add custom rules in the rules section:

yaml
rules:
  - DOMAIN-SUFFIX,google.com,Proxy
  - DOMAIN-KEYWORD,youtube,Proxy
  - GEOIP,CN,DIRECT
  - MATCH,Proxy
🚀

6. Advanced Features

Master these advanced features for a better experience

📊

Dashboard Control Panel

Clash X provides a web control panel to monitor traffic and connection status in real time:

  • Menu bar → Click "Dashboard"
  • Browser will automatically open the control panel
  • View real-time traffic, connection count, rule matching and other information

Speed Test

Test node latency and select the fastest node:

  • Menu bar → Proxy → Select policy group
  • Click "Speed Test" button
  • Wait for completion, the node with lowest latency will be selected
🔥

Enhanced Mode

Enabling enhanced mode can proxy more types of traffic:

  • Menu bar → "Set as System Proxy" (check)
  • Menu bar → "Enhanced Mode" (check)
🛡️

8. Security & Privacy

Learn how to use ClashX securely to protect your network privacy.

Local Encryption

As a local proxy client, ClashX performs all rule matching and routing decisions locally on your Mac. Your raw traffic data is not uploaded to any third-party servers (except the proxy servers you configure).

DNS Leak Protection

To prevent DNS pollution and privacy leaks, it is recommended to enable DNS encryption (DoH or DoT) in your configuration file. ClashX supports taking over system DNS requests to ensure your domain resolution process is also encrypted.

7. Common Questions

Quickly find solutions to common problems

Q

Why can't I connect?

+
A

Please check the following:

  • Is the configuration file format correct?
  • Is the subscription link valid?
  • Is the node available (try switching to other nodes)?
  • Is the system proxy setting correct?
  • Is the firewall blocking Clash X?
Q

How to fix slow speed issues?

+
A

You can try the following:

  • Use speed test to select nodes with low latency
  • Switch to different nodes
  • Check local network status
  • Contact service provider
Q

Icon not showing after startup?

+
A

The menu bar icon may be hidden:

  • Hold ⌘ (Command) key and drag icon to adjust position
  • Check menu bar settings in system preferences
  • Restart the app
Q

How to uninstall Clash X?

+
A

Complete uninstallation steps:

  1. Quit Clash X (Menu → Quit)
  2. Delete /Applications/ClashX.app
  3. Delete config files: ~/.config/clash
  4. Check system proxy settings to ensure they are restored to default
Tip: If you encounter other issues, you can visit GitHub Issues to find solutions or submit issues.