🌐 当前语言:简体中文 | Switch to English → 🌐 Current Language: English | 切换到中文 →

Clash – 跨平台网络代理客户端

基于规则的智能分流代理工具,支持多协议、多平台,帮你实现快速、安全的网络访问。开源透明,全球用户信赖的选择。

Clash – Cross-Platform Network Proxy Client

A rule-based intelligent traffic-splitting proxy tool supporting multiple protocols and platforms. Open-source, transparent, and trusted by users worldwide for fast and secure network access.

核心特性

Core Features

Clash 提供四大核心能力,满足从普通用户到高级开发者的多样化需求。

Clash delivers four core capabilities to meet the diverse needs of users from beginners to advanced developers.

多协议兼容性

Protocol Compatibility

Clash 支持丰富的入站与出站协议,以及多项高级功能,满足复杂网络场景需求。

Clash supports a wide range of inbound and outbound protocols along with advanced features for complex network scenarios.

📥 入站连接支持

📥 Inbound Connections

HTTP HTTPS SOCKS5 TUN (Premium)

📤 出站连接支持

📤 Outbound Connections

Shadowsocks ShadowsocksR VMess Trojan Snell SOCKS5 HTTP(S) Wireguard (Premium)

⚙️ 高级功能

⚙️ Advanced Features

Fake-IP DNS 透明代理 Proxy Groups 远程 Providers RESTful API 负载均衡

跨平台客户端下载

Cross-Platform Downloads

选择适合你操作系统的 Clash 客户端,开始智能分流之旅。

Choose the Clash client for your operating system and start smart routing.

🪟

Windows

Clash for Windows v0.20.39

首选 Windows 客户端,功能全面稳定。次选 Clash Verge。

Primary Windows client, feature-rich and stable. Alternative: Clash Verge.

官方下载Download
🍎

macOS

ClashX / ClashX Pro v1.123.0

macOS 原生客户端,支持菜单栏快速切换,Pro 版支持增强模式。

Native macOS client with menu bar quick switch. Pro version supports enhanced mode.

官方下载Download
🐧

Linux

Clash Verge Latest

推荐 Linux GUI 客户端,基于 Tauri 构建,界面现代流畅。

Recommended Linux GUI client built with Tauri, featuring a modern and smooth interface.

官方下载Download
🤖

Android

Clash for Android v2.5.12

Android 平台首选客户端,支持订阅导入与一键代理切换。

Primary Android client with subscription import and one-tap proxy switching.

官方下载Download
📱

iOS

Stash / Shadowrocket App Store 非官方客户端 Unofficial Client

推荐 Stash(支持完整 Clash Premium 配置)或 Shadowrocket 作为替代方案。

Recommended: Stash (full Clash Premium config support) or Shadowrocket as alternatives.

前往 App StoreApp Store

⚠️ 由于各平台客户端分发渠道可能变动,若按钮无法访问,请前往 GitHub 获取最新下载地址。

⚠️ Download links may change. If a button is unavailable, please visit GitHub for the latest downloads.

快速上手指南

Quick Start Guide

只需三步,即可完成 Clash 的安装与配置,开始智能分流。

Just three steps to install and configure Clash and start smart routing.

① 下载安装

① Download & Install

选择对应系统版本下载并安装客户端,优先使用可信来源,避免安全风险与捆绑软件。

Download and install the client for your OS. Use trusted sources to avoid security risks and bundled software.

② 导入配置

② Import Configuration

通过订阅链接或本地 YAML 文件导入配置,按需启用规则集与策略组。

Import configuration via subscription link or local YAML file, and enable rule sets and proxy groups as needed.

③ 启用代理

③ Enable Proxy

开启系统代理或服务模式,检查分流是否生效;根据网络环境切换模式与节点。

Enable system proxy or service mode, verify routing is working, and switch modes/nodes based on your network.

💡 三种工作模式:全局(所有请求走代理)· 规则(根据配置文件分流)· 直连(所有请求直连)。建议日常使用规则模式以获得最佳体验。
💡 Three working modes: Global (all requests via proxy) · Rule (split by config) · Direct (all direct). Rule mode is recommended for the best daily experience.

隐私与安全说明

Privacy & Security

Clash 始终将用户隐私与数据安全放在首位,以下是我们对安全的承诺。

Clash prioritizes user privacy and data security. Here is our commitment to safety.

🔓

开源生态

Open Source Ecosystem

Clash 本身为开源项目(GPL-3.0),多款衍生客户端也可公开审计。请优先选择公开可审计、更新活跃的实现与发布渠道。

Clash is open-source (GPL-3.0), and many derivative clients are publicly auditable. Choose actively maintained, transparent implementations and distribution channels.

💾

数据本地化

Data Localization

配置与日志保存在本地设备,不会自动上传到任何远程服务器。请注意订阅来源可信,避免泄露访问凭据。

Configuration and logs are stored locally on your device and never uploaded to remote servers. Ensure your subscription sources are trustworthy to protect access credentials.

🛡️

安全建议

Security Recommendations

优先使用加密传输(如 TLS),定期更新客户端与规则集,对节点服务进行风险评估,确保网络连接始终安全可靠。

Use encrypted transport (e.g., TLS), regularly update clients and rule sets, and assess node service risks to keep your network connection secure and reliable.

常见问题(FAQ)

Frequently Asked Questions

以下整理了6个分类的常见问题,每个回答均以步骤形式详细解答,帮助你全面了解 Clash。

Below are 6 categories of common questions, each answered in step-by-step detail to help you fully understand Clash.

🔰 Clash 是什么?它有哪些核心功能?(基础认知类) 🔰 What is Clash and what are its core features? (Basic Knowledge)

Clash 是一个跨平台、基于规则的网络代理工具核心,使用 Go 语言开发。以下是逐步了解:

  1. 理解本质:Clash 本身只是一个代理工具核心(内核),并不直接提供网络代理服务。它需要配合配置文件(YAML格式)或订阅链接才能工作。你可以把它理解为一个"智能交通调度员",根据你设定的规则决定哪些网络流量走代理通道、哪些直连。
  2. 核心机制:Clash 的核心是"按规则分流"。不同于传统VPN将所有流量一股脑地导入隧道,Clash 允许你基于域名、IP地址、应用程序等维度进行精细化控制——比如让国内网站直连、海外学术网站通过校园节点、视频流量走高速线路。
  3. 多协议支持:Clash 支持 Shadowsocks、ShadowsocksR、VMess、Trojan、Snell、SOCKS5、HTTP(S) 等主流代理协议,以及 Premium 版本中的 Wireguard 和 TUN 设备支持,覆盖从基础到高级的各种网络代理需求。
  4. 跨平台覆盖:核心程序可运行在 Windows、macOS、Linux 上,同时社区提供了 Android(Clash for Android)和 iOS(Stash/Shadowrocket)的客户端实现,实现全平台覆盖。
  5. 开源透明:Clash 开源版基于 GPL-3.0 许可证发布,代码完全公开可审计,用户可以自行检查是否存在后门或安全隐患,这也是它获得全球技术社区信任的关键原因。
  6. 活跃生态:围绕 Clash 核心,社区开发了多种图形化客户端(如 Clash for Windows、ClashX、Clash Verge 等),让不熟悉命令行的普通用户也能轻松上手使用。

Clash is a cross-platform, rule-based network proxy tool core developed in Go. Here's a step-by-step breakdown:

  1. Understand the essence: Clash itself is only a proxy tool core (kernel) and does not directly provide network proxy services. It requires a configuration file (YAML format) or a subscription link to function. Think of it as a "smart traffic dispatcher" that decides which traffic goes through proxy channels and which connects directly based on your rules.
  2. Core mechanism: Clash's core is "rule-based traffic splitting." Unlike traditional VPNs that funnel all traffic into a tunnel, Clash allows granular control based on domains, IP addresses, and applications—letting domestic sites connect directly, academic sites use campus nodes, and video traffic go through high-speed lines.
  3. Multi-protocol support: Clash supports Shadowsocks, ShadowsocksR, VMess, Trojan, Snell, SOCKS5, HTTP(S) and other major proxy protocols, plus Wireguard and TUN device support in the Premium version.
  4. Cross-platform coverage: The core runs on Windows, macOS, and Linux, with community-provided clients for Android (Clash for Android) and iOS (Stash/Shadowrocket), achieving full platform coverage.
  5. Open-source transparency: Clash OSS is released under GPL-3.0, with fully auditable public code—a key reason for the global tech community's trust.
  6. Active ecosystem: Multiple GUI clients (Clash for Windows, ClashX, Clash Verge, etc.) have been developed around the Clash core, making it accessible even for non-technical users.
⚖️ Clash 开源版和 Premium 版有什么区别?(版本选择类) ⚖️ What's the difference between Clash OSS and Clash Premium? (Version Selection)

Clash 开源版与 Premium 版在功能集和许可证上存在显著区别。逐步对比:

  1. 许可证差异:Clash 开源版(OSS)基于 GPL-3.0 开源许可证发布,任何人都可以自由使用、修改和分发。Clash Premium 则是闭源版本,提供额外的专有功能,用户需要从特定渠道获取。
  2. TUN 设备支持:Premium 版本支持 TUN 设备模式,可以创建虚拟网络接口来接管系统级别的网络流量,实现真正的透明代理;开源版则需要依赖系统代理设置或浏览器插件来配合使用。
  3. Wireguard 出站:Premium 版本内置了对 Wireguard 协议的支持,可以直接配置 Wireguard 出站连接;开源版不包含此功能,需要用户通过其他方式建立 Wireguard 隧道。
  4. 增强规则匹配:Premium 版本提供了更强大的规则匹配引擎,支持更丰富的匹配条件和更高效的匹配速度,适合需要处理大量规则的高级用户。
  5. 性能优化:Premium 版本在高并发场景下进行了额外的性能优化,处理大规模并发连接时表现更加稳定高效,适合服务器端部署或重度使用场景。
  6. 选择建议:对于绝大多数普通用户和技术爱好者而言,开源版完全够用;如果你需要 TUN 透明代理、Wireguard 出站或在高并发环境下使用,再考虑 Premium 版本。

Clash OSS and Premium differ significantly in feature set and licensing. Step-by-step comparison:

  1. License difference: Clash OSS is released under GPL-3.0—free to use, modify, and distribute. Clash Premium is closed-source with additional proprietary features.
  2. TUN device support: Premium supports TUN device mode, creating a virtual network interface for true transparent proxying at the system level; OSS relies on system proxy settings or browser plugins.
  3. Wireguard outbound: Premium has built-in Wireguard protocol support for direct Wireguard outbound connections; OSS lacks this feature.
  4. Enhanced rule matching: Premium offers a more powerful rule-matching engine with richer conditions and higher efficiency, suitable for heavy rule sets.
  5. Performance optimization: Premium is further optimized for high-concurrency scenarios, performing more stably under heavy connection loads.
  6. Recommendation: For most users, the OSS version is sufficient. Consider Premium only if you need TUN transparent proxy, Wireguard outbound, or high-concurrency deployments.
💰 使用 Clash 需要付费吗?(费用相关类) 💰 Does using Clash require payment? (Cost Related)

Clash 本身完全免费且开源,但你仍然可能需要支付节点服务费用。逐层说明:

  1. Clash 核心软件:Clash 开源版(OSS)基于 GPL-3.0 许可证发布,100% 免费,你可以无限制地下载、使用甚至修改源代码,无需支付任何费用。
  2. 各平台客户端:Clash for Windows、ClashX(macOS)、Clash Verge(Linux)、Clash for Android 等图形化客户端均为免费软件,从官方 GitHub 仓库或可信渠道下载即可。
  3. iOS 客户端例外:iOS 平台上的 Stash 和 Shadowrocket 属于第三方商业应用,需要在 App Store 付费购买(通常为几美元的一次性购买费用),但这不是 Clash 项目本身的收费。
  4. 代理节点服务:这是需要付费的关键部分。Clash 只是一个工具,你需要自行获取代理节点(即"机场"或自建服务器)。商业代理节点服务通常按月/按年收费,价格从几元到几十元不等。
  5. 自建节点方案:如果你具备一定的技术能力,可以自行购买海外 VPS(虚拟专用服务器)并搭建代理节点,这样只需支付服务器费用,通常每月5-15美元即可获得独享节点。
  6. 总结:Clash 工具链本身完全免费,如果你已有节点或自建服务器,则总成本为零;若使用商业节点服务,费用取决于你选择的服务商和套餐。

Clash itself is completely free and open-source, but you may still need to pay for node services. Breakdown:

  1. Clash core software: Clash OSS is released under GPL-3.0, 100% free—unlimited download, use, and modification at no cost.
  2. Platform clients: Clash for Windows, ClashX, Clash Verge, Clash for Android are all free. Download from official GitHub repos or trusted sources.
  3. iOS exception: Stash and Shadowrocket on iOS are third-party commercial apps requiring a one-time purchase (usually a few dollars), but this isn't a Clash project charge.
  4. Proxy node services: This is the key paid element. Clash is just a tool—you need your own proxy nodes. Commercial services typically charge monthly/yearly.
  5. Self-hosted option: If you have technical skills, you can rent a VPS and set up your own proxy node, typically costing $5-15/month for a dedicated node.
  6. Summary: The Clash toolchain is entirely free. Total cost is zero if you have your own nodes; otherwise, costs depend on your chosen service provider.
📋 如何导入订阅链接并完成基础配置?(配置操作类) 📋 How to import a subscription link and complete basic configuration? (Configuration)

导入订阅链接是 Clash 最常用的配置方式,操作简单且效率极高。按步骤操作:

  1. 获取订阅链接:首先从你的代理节点服务商处获取订阅链接(通常是一个以 http:// 或 https:// 开头的 URL 地址)。请确保该链接来自可信来源,因为订阅链接包含了你的节点信息和访问凭据。
  2. 打开客户端:启动你安装的 Clash 客户端(如 Clash for Windows、ClashX 或 Clash Verge),在主界面找到"配置"(Profiles)或"订阅"(Subscription)相关选项,不同客户端的界面位置略有差异但功能一致。
  3. 粘贴订阅地址:在配置管理界面中点击"添加"或"新建"按钮,将刚才获取的订阅链接完整粘贴到输入框中,并为该配置取一个便于识别的名称(如"主订阅"或服务商名称),然后点击下载或保存。
  4. 等待同步完成:客户端会自动从订阅链接下载最新的节点信息和规则配置,这通常只需要几秒钟到半分钟。同步完成后你会看到节点列表和策略组已经自动填充完毕。
  5. 选择并启用:在客户端主界面选择一个合适的节点或策略组(如"自动选择"或手动指定某个地区的节点),然后开启系统代理开关。此时你的网络流量就会按照配置文件的规则进行智能分流。
  6. 验证生效:打开浏览器访问一个被代理的网站(如 Google 或 YouTube),确认能够正常访问;同时访问国内网站检查是否直连。如果一切正常,说明配置已成功生效。

Importing a subscription link is the most common Clash configuration method—simple and efficient. Step by step:

  1. Get the subscription link: Obtain the subscription URL from your proxy node provider. Ensure it comes from a trusted source, as it contains your node info and access credentials.
  2. Open the client: Launch your Clash client and find the "Profiles" or "Subscription" section—interface locations vary slightly but functionality is consistent across clients.
  3. Paste the subscription URL: Click "Add" or "New," paste the full subscription link, give it a recognizable name, then click download or save.
  4. Wait for sync: The client downloads the latest node info and rule configuration automatically—usually just seconds to half a minute. Node lists and proxy groups will populate automatically.
  5. Select and enable: Choose a suitable node or proxy group, then toggle the system proxy switch. Your traffic will now be intelligently routed according to the configuration rules.
  6. Verify it works: Open a browser and visit a proxied site to confirm access, then check a domestic site to verify direct connection. If both work, configuration is successful.
🔬 Clash 支持哪些代理协议?各有什么特点?(协议技术类) 🔬 Which proxy protocols does Clash support and what are their characteristics? (Protocol Tech)

Clash 支持多种主流代理协议,每种协议在设计理念和应用场景上各有侧重。逐一解析:

  1. Shadowsocks / ShadowsocksR:这是最经典、应用最广泛的代理协议之一,以轻量和高效著称。Shadowsocks 设计简洁、加密层薄、传输速度快,适合在带宽有限或网络延迟较高的环境下使用;ShadowsocksR 在其基础上增加了混淆功能,能更好地绕过深度包检测。
  2. VMess:由 V2Ray 项目提出的协议,具备强大的动态端口和用户管理能力。VMess 支持多种加密方式和传输载体(如 WebSocket、gRPC),灵活性极强,适合需要伪装流量特征以规避网络审查的高级用户场景。
  3. Trojan:设计理念是"伪装成 HTTPS 流量",将代理通信完全模拟为标准的 TLS 加密网页浏览流量。Trojan 不设复杂的认证机制,而是依靠 TLS 加密来保护通信,适合对隐蔽性有高要求的用户。
  4. Snell:由 Surge 开发者推出的轻量级私有协议,专为低延迟和高吞吐场景优化。Snell 加密层极简但高效,在良好的网络条件下能提供接近直连的传输体验,适合自建节点用户。
  5. SOCKS5 / HTTP(S):这两种是通用的标准代理协议,兼容性最好,几乎所有支持代理的软件都能使用。它们通常作为 Clash 的入站接口,让本地应用程序通过 Clash 转发流量,也可以作为出站协议连接上游代理。
  6. Wireguard(Premium):Wireguard 是新一代的高性能 VPN 协议,以内核级实现和极低的资源消耗闻名。Clash Premium 将其作为出站选项,适合需要 VPN 级别安全加密且追求极致性能的用户。

Clash supports multiple major proxy protocols, each with distinct design philosophies and use cases. Detailed breakdown:

  1. Shadowsocks / ShadowsocksR: The most classic and widely used protocol—lightweight and efficient with simple encryption for fast speeds. ShadowsocksR adds obfuscation to better bypass deep packet inspection.
  2. VMess: From the V2Ray project, featuring dynamic ports and user management. Supports multiple encryption methods and transport carriers (WebSocket, gRPC) with extreme flexibility for advanced scenarios.
  3. Trojan: Designed to "masquerade as HTTPS traffic," simulating standard TLS-encrypted web browsing. Relies on TLS encryption rather than complex authentication, ideal for high-concealment needs.
  4. Snell: A lightweight private protocol by the Surge developer, optimized for low latency and high throughput, delivering near-direct-line transmission under good network conditions.
  5. SOCKS5 / HTTP(S): Universal standard proxy protocols with the best compatibility—used as Clash's inbound interface for local app traffic forwarding or as outbound to upstream proxies.
  6. Wireguard (Premium): A next-gen high-performance VPN protocol known for kernel-level implementation and minimal resource consumption, available as an outbound option in Clash Premium.
🆚 Clash 与传统 VPN 有什么本质区别?(对比类) 🆚 What's the essential difference between Clash and traditional VPNs? (Comparison)

Clash 和传统 VPN 在工作原理、流量控制粒度和使用场景上存在本质差异。六步对比:

  1. 工作原理:传统 VPN 创建一条加密隧道,将设备的所有网络流量(或指定应用的流量)通过 VPN 服务器转发,是一种"全有或全无"的模式。Clash 则作为一个本地代理调度器,根据预设规则对不同流量采取不同处理方式——有的走代理、有的直连、有的走特定节点。
  2. 分流粒度:传统 VPN 的分流能力有限,通常只能做到"按应用分流"或"按IP段分流",颗粒度较粗。Clash 支持基于域名、IP CIDR、GEOIP、应用进程名等多维度规则,可以实现"Google走美国节点、Netflix走日本节点、国内网站直连"这样的精细化控制。
  3. 性能表现:由于 Clash 采用按规则选择性代理而非全量隧道转发,国内直连流量不经任何额外处理,延迟和带宽损耗为零。传统 VPN 即使开启分流,非代理流量也可能受到隧道封装的影响,带来额外开销。
  4. 部署灵活性:传统 VPN 通常需要服务端和客户端配对使用,且多使用专有协议。Clash 支持多种开放协议,节点来源可以是自建服务器、商业机场、甚至是朋友分享的节点,切换灵活度远高于传统 VPN。
  5. 隐蔽性:传统 VPN 的流量特征较为明显,容易被网络管理者识别和阻断。Clash 配合 Trojan、VMess+WebSocket+TLS 等协议,可以将代理流量伪装成普通的 HTTPS 网页浏览流量,隐蔽性显著更高。
  6. 适用场景:如果你只需要一个简单的"一键全局代理",传统 VPN 可能更方便;如果你需要精细化流量管理、多节点智能调度、以及更高的隐蔽性和灵活性,Clash 是更专业、更强大的选择。

Clash and traditional VPNs differ fundamentally in working principles, traffic control granularity, and use cases. Six-point comparison:

  1. Working principle: Traditional VPNs create an encrypted tunnel forwarding all device traffic—an "all or nothing" model. Clash acts as a local proxy scheduler, handling different traffic differently based on preset rules.
  2. Routing granularity: Traditional VPNs have limited split-tunneling—usually by app or IP range. Clash supports multi-dimensional rules (domain, IP CIDR, GEOIP, process name) for fine-grained control like "Google via US node, Netflix via Japan node, domestic sites direct."
  3. Performance: Clash selectively proxies traffic, so domestic direct traffic incurs zero extra latency or bandwidth loss. Traditional VPNs may add overhead even with split tunneling enabled.
  4. Deployment flexibility: Traditional VPNs typically require paired server-client setups with proprietary protocols. Clash supports multiple open protocols with nodes from self-hosted servers, commercial providers, or shared sources.
  5. Stealth: Traditional VPN traffic patterns are recognizable and easily blocked. Clash with Trojan or VMess+WebSocket+TLS can masquerade proxy traffic as regular HTTPS browsing—significantly more stealthy.
  6. Use case: For simple "one-click global proxy," a traditional VPN may be more convenient. For fine-grained traffic management, multi-node intelligent scheduling, and higher stealth, Clash is the more professional choice.