📚 Complete Guide

Clash X Tutorial

From beginner to expert, easily master proxy configuration

NordVPN

Sponsored

🧠

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 (Visual Guide)

ClashX is not Apple-signed, so macOS will show a security warning on first launch. This is standard behavior for all unsigned macOS apps — it does not mean ClashX is unsafe. Follow these steps:

macOS security dialog blocking ClashX from opening

① Double-click to open — Security alert appears

This dialog appears for all unsigned apps — it's a normal macOS response.

👉 Click "Done" (do NOT click "Move to Trash")

macOS System Settings showing blocked ClashX with Open Anyway button

② System Settings → Privacy & Security

Open System Settings → Privacy & Security, scroll down to find "ClashX was blocked to protect your Mac".

👉 Click "Open Anyway"

macOS final confirmation dialog to open ClashX

③ Confirm opening

Final macOS confirmation. After this, ClashX will open without warnings.

👉 Click "Open Anyway"

ClashX requesting to install system proxy helper

④ Install helper tool

ClashX needs a helper tool to configure the system proxy. Without it, system proxy won't work.

👉 Click "Install", then enter your Mac password

💡 Alternative: One-command fix in Terminal

If you're comfortable with Terminal, run this command to skip the steps above:

bash
sudo xattr -rd com.apple.quarantine /Applications/ClashX.app
After completing these steps, ClashX is ready to use. A cat icon will appear in the menu bar, confirming successful installation.
⚙️

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.
💻

Quick Terminal Proxy Setup for Developers

Fix the common issue where the browser works but terminal tools time out

  1. Enable TUN mode first to unify terminal and GUI traffic routing.
  2. If you are not using TUN yet, explicitly set http_proxy and https_proxy in your shell.
  3. For intermittent failures, troubleshoot with the connection timeout guide and the DNS checklist together.

Recommended Companion Tools

Pair with ClashX for different networking scenarios

🎮

GearUP Game Booster

AIR smart routing for lower latency. Use ClashX for proxy routing, GearUP for gaming ping.

Learn More →

Affiliate link · Disclosure

✈️

Saily Travel eSIM

By Nord Security. Instant data in 150+ countries, no SIM swaps, no roaming fees.

Learn More →

Affiliate link · Disclosure

🔒

NordVPN Proxy Nodes

6000+ global servers for high-quality ClashX proxy nodes.

View NordVPN →

Affiliate link · Disclosure