开源 · 跨平台 · 持续维护

Clash——基于规则的
跨平台网络代理工具

支持 Shadowsocks、VMess、Trojan、WireGuard 等多种协议,智能分流让国内直连、国外代理自动切换。覆盖 Windows、macOS、Linux、Android、iOS 全平台,帮助用户实现快速安全的网络访问。

最新稳定版本:v2024.12 | 基于 GPL-3.0 开源协议

精细化流量路由,
为每一种网络需求而生

Clash 提供从协议支持到智能分流的完整能力栈,覆盖不同技术层级用户的需求。

🔌
协议兼容

多协议全面支持

原生兼容 Shadowsocks、VMess、Trojan、Snell、SOCKS5、HTTP(S)、WireGuard 等主流代理协议,灵活适应不同网络环境与节点部署方案。

🔀
智能路由

智能规则分流

支持基于域名、IP 段、进程名等多维度的精细化路由规则。国内网站直连访问,国外流量自动走代理,无需手动切换。

💻
全平台

跨平台覆盖

Windows、macOS、Linux、Android、iOS 全平台支持,配置可跨设备同步导出。

🔮
高级模式

透明代理 TUN

TUN/TProxy 模式实现系统级透明代理,无需逐应用单独配置,全局覆盖。

📡
开发者

RESTful API

完善的 API 接口,支持远程配置更新、节点切换与自动化运维管理。

⚙️
进阶能力 · 技术专家

高级功能:Fake-IP DNS · Proxy Groups · 远程 Providers

Fake-IP DNS 模式加速域名解析;策略组支持 fallback / load-balance / url-test 多种负载均衡模式;远程 Providers 实现规则集与节点列表的动态加载更新,无需重启客户端即可生效。

选择您的平台,
获取推荐客户端

以下为各平台经过社区验证的推荐客户端。点击标签切换平台查看详情。

🖥
Clash for Windows
v0.20.39 · 官方客户端
★ 推荐 下载
🔄
Clash Verge Rev
v1.7.2 · 活跃维护的第三方替代
社区活跃 下载
🍎
ClashX Pro
v1.118.0 · 提供 Premium 功能
★ Premium 下载
🔄
Clash Verge Rev
v1.7.2 · 跨平台一致体验
社区活跃 下载
🐧
Clash 内核 + Web Dashboard
命令行安装 · 提供一键脚本
下载内核
📱
Clash for Android
v3.0.3 · 官方客户端,协议支持丰富
★ 推荐 下载
🍏
Stash
基于 Clash 核心 · App Store 可获取
★ 推荐 App Store
🔧
Shadowrocket
老牌 iOS 代理工具 · 规则能力强大
App Store

三步开启 Clash,
轻松管理网络流量

无需深厚技术背景,跟随以下步骤即可完成配置并启用代理。

1

下载安装

在上方下载区选择对应系统版本下载并安装。优先使用可信来源(GitHub 官方仓库),避免安全风险与捆绑软件。

2

导入配置

通过订阅链接或本地 YAML 文件导入配置,按需启用规则集与策略组。订阅链接通常由节点服务商提供,支持自动更新。

3

启用代理

开启系统代理或服务模式,检查分流是否生效。根据网络环境灵活切换直连、规则或全局模式,访问国内网站自动直连。

查看完整教程 →

开源透明,
您的数据由您掌控

我们深知用户对代理工具的隐私关切,Clash 从设计之初就将安全与透明作为核心原则。

📖

开源透明

基于 GPL-3.0 开源许可证发布,全部代码公开托管于 GitHub,任何人可审计审查,无隐藏后门。

🔒

数据本地化

配置与日志文件仅保存在您的本地设备上,Clash 不会将任何使用数据上传至远程服务器。

🛡️

安全建议

优先使用 TLS 加密传输,定期更新客户端与规则集,关注官方安全公告,使用经过验证的客户端版本。

快速解答高频疑问

以下涵盖产品对比、配置获取、平台选择、故障排除、iOS 兼容及安全隐私六大类别的问题解答,每个回答均以分步形式呈现。

类别:产品对比——以下是六个关键维度的分步对比:

  1. 理解工作原理差异:Clash 基于规则在应用层进行流量分流决策,传统 VPN 则在网络层建立加密隧道将所有流量统一导入远程服务器,两者在架构层面有本质区别。
  2. 对比流量处理方式:Clash 可按域名、IP 段、应用进程等维度精确控制哪些流量走代理、哪些直连;传统 VPN 通常采用全流量转发模式,无法区分国内外流量。
  3. 分析灵活性与可控性:Clash 的策略组支持 fallback、load-balance 等多种模式,用户可自定义复杂的路由规则;传统 VPN 多为简单的全局开关,缺乏细粒度控制。
  4. 评估性能表现:Clash 的分流机制让国内网站直连访问,减少不必要的代理开销;传统 VPN 全量转发可能显著降低国内网站的访问速度。
  5. 考虑配置复杂度:Clash 需要一定的学习成本来编写和理解 YAML 配置文件;传统 VPN 通常安装即用,上手门槛更低但灵活性也相应受限。
  6. 总结选择建议:如果需要精细化流量管理、国内外分流、多节点智能切换,选择 Clash;如果只需简单的加密隧道且不希望折腾配置,传统 VPN 可能更适合。

类别:配置获取——以下是获取并导入订阅链接的六个步骤:

  1. 了解订阅链接的本质:订阅链接是一个 URL 地址,指向远端服务器上的配置文件,包含节点列表和分流规则,客户端定期访问该地址以自动更新配置。
  2. 选择可靠的节点服务商:订阅链接通常由节点服务商提供,请选择信誉良好、服务稳定的提供商,注意甄别虚假或恶意服务,优先参考社区评价。
  3. 获取订阅链接地址:在服务商的用户面板中找到订阅链接(通常以 https:// 开头),点击复制或一键导入按钮获取完整的 URL 地址。
  4. 在客户端中导入订阅:打开 Clash 客户端,进入配置管理或订阅管理界面,粘贴订阅链接并保存,客户端将自动下载并解析配置文件。
  5. 验证配置是否生效:导入后检查节点列表是否正确加载,查看分流规则是否按预期工作,可访问国内外测试网站确认分流逻辑无误。
  6. 设置自动更新规则:在客户端中启用订阅自动刷新功能,建议设置每日或每12小时更新一次,确保节点信息和规则集始终保持最新状态。

类别:平台选择——以下是按操作系统逐一推荐的六个步骤:

  1. 确认您的操作系统版本:首先明确自己使用的是什么系统以及具体版本号,因为不同客户端对系统版本有最低要求,例如 Windows 需 Win10 及以上。
  2. Windows 平台首选推荐:Clash for Windows 是官方首选客户端,功能完整且稳定;Clash Verge Rev 作为活跃维护的第三方替代,界面现代化且更新频繁,同样值得推荐。
  3. macOS 平台推荐方案:ClashX Pro 提供 Premium 内核功能,支持 TUN 模式;Clash Verge Rev 同样支持 macOS,提供跨平台一致的操作体验,是可靠的替代选择。
  4. Linux 平台使用方式:推荐直接使用 Clash 内核配合 Web Dashboard 进行管理,通过命令行安装并配置 systemd 服务实现开机自启,灵活性最高。
  5. Android 平台推荐客户端:Clash for Android 是官方客户端,协议支持丰富,规则自定义能力强,支持订阅导入和分应用代理,是目前最完善的 Android 方案。
  6. iOS 平台替代方案:Clash 暂无官方 iOS 版本,推荐 Stash(基于 Clash 核心的原生 iOS 客户端)或 Shadowrocket,两者均在 App Store 可获取,支持完整的订阅与规则功能。

类别:故障排除——以下是系统排查问题的六个步骤:

  1. 检查订阅链接是否有效:在浏览器中直接访问订阅链接,确认能否返回有效的配置数据;如果链接失效或返回错误,需联系服务商更新订阅地址。
  2. 验证配置文件语法:使用 YAML 验证工具检查配置文件是否存在语法错误,特别注意缩进、端口号、协议名称等关键字段是否拼写正确。
  3. 尝试更换客户端版本:部分 Bug 可能仅存在于特定版本中,尝试回退到上一个稳定版本或更新到最新版,观察问题是否依然存在。
  4. 清除本地缓存数据:删除客户端的缓存目录和旧配置文件,重新导入订阅并重启客户端,有时缓存损坏会导致连接异常或界面空白。
  5. 检查系统网络环境:确认系统防火墙或安全软件未拦截 Clash 的网络请求,检查 DNS 设置是否正确,必要时重置网络栈。
  6. 查阅社区资源获取帮助:访问 GitHub Issues 页面或相关社区论坛,搜索类似问题的解决方案;如未找到,可提交详细的错误日志和复现步骤寻求帮助。

类别:平台兼容——以下是 iOS 用户使用 Clash 生态的六个步骤指引:

  1. 理解 iOS 平台的现状:由于 iOS 系统的沙盒机制和 App Store 审核政策限制,Clash 暂无官方 iOS 客户端,但社区已有成熟的替代方案可供选择。
  2. 推荐首选 Stash 客户端:Stash 是基于 Clash 核心开发的 iOS 原生应用,完整支持 Clash 配置文件、订阅导入和规则分流,可在 App Store 直接下载安装。
  3. 备选方案 Shadowrocket:Shadowrocket 是老牌 iOS 代理工具,支持多种协议和规则配置,用户基数庞大,教程资源丰富,是经过长期验证的可靠选择。
  4. 导入订阅与配置:在 Stash 或 Shadowrocket 中找到订阅管理入口,粘贴您的订阅链接并保存,应用会自动解析并加载节点列表与分流规则。
  5. 配置按需连接规则:设置分流规则使国内应用直连、境外应用走代理,可按域名、IP 段或 GeoIP 数据库进行精细化配置,提升使用体验。
  6. 保持应用更新:定期检查 App Store 中的版本更新,及时安装最新版本以获取安全修复和新功能;同时关注订阅链接的有效期,确保节点信息同步更新。

类别:安全隐私——以下是 Clash 保障隐私安全的六个核心要点:

  1. 开源代码可审计:Clash 基于 GPL-3.0 开源许可证发布,全部源代码公开托管在 GitHub 上,全球开发者可随时审查代码,确保不存在恶意后门或数据窃取逻辑。
  2. 数据完全本地化存储:所有配置文件、日志记录和缓存数据仅保存在用户本地设备中,Clash 不会主动收集或上传任何使用数据至远程服务器,用户对自身数据拥有完全控制权。
  3. 支持 TLS 加密传输:Clash 支持 TLS 加密协议,确保客户端与代理节点之间的通信数据经过加密保护,防止中间人攻击和流量嗅探,保障传输过程中的数据安全。
  4. 无遥测无广告:Clash 不包含任何遥测模块、用户行为追踪或广告组件,是一款纯粹的工具软件,不会收集用户的使用习惯、浏览记录等隐私信息。
  5. 版本安全提示机制:官方和社区会及时标记已归档或停止维护的客户端版本,引导用户使用安全、持续更新的版本,避免因使用过时软件而产生安全漏洞风险。
  6. 用户自主可控的配置:所有代理规则和节点配置均由用户自行管理和导入,Clash 不预设任何远程配置或默认节点,用户完全掌握自己的网络路由决策权。

开源许可证:GPL-3.0 | Clash 由社区贡献者共同维护

© 2024–2026 Clash Community. All rights reserved.

Open Source · Cross-Platform · Actively Maintained

Clash — Rule-Based
Cross-Platform Proxy Tool

Supporting Shadowsocks, VMess, Trojan, WireGuard, and multiple protocols. Intelligent traffic routing with automatic split — domestic direct connection, international proxied. Available on Windows, macOS, Linux, Android, and iOS for fast, secure network access.

Latest Stable: v2024.12 | Licensed under GPL-3.0

Granular Traffic Routing,
Built for Every Need

Clash delivers a complete capability stack from protocol support to intelligent traffic splitting, serving users across all technical levels.

🔌
Protocols

Multi-Protocol Support

Native compatibility with Shadowsocks, VMess, Trojan, Snell, SOCKS5, HTTP(S), WireGuard, and more — adapt to diverse network environments and deployment scenarios.

🔀
Routing

Smart Rule-Based Routing

Fine-grained routing by domain, IP range, and process name. Domestic sites connect directly; international traffic is automatically proxied — no manual switching needed.

💻
Cross-Platform

Full Platform Coverage

Windows, macOS, Linux, Android, iOS — all supported. Configurations can be synced and exported across devices.

🔮
Advanced

TUN Transparent Proxy

System-level transparent proxy via TUN/TProxy mode — no per-app configuration required, global coverage out of the box.

📡
Dev

RESTful API

Comprehensive API endpoints for remote config updates, node switching, and automated operations management.

⚙️
Advanced · For Experts

Fake-IP DNS · Proxy Groups · Remote Providers

Fake-IP DNS mode accelerates domain resolution. Proxy groups support fallback, load-balance, and url-test modes. Remote providers enable dynamic rule-set and node-list loading — no restart required.

Choose Your Platform,
Get the Recommended Client

Community-verified recommended clients for each platform. Click tabs to switch and view details.

🖥
Clash for Windows
v0.20.39 · Official Client
★ Recommended Download
🔄
Clash Verge Rev
v1.7.2 · Actively Maintained Alternative
Active Community Download
🍎
ClashX Pro
v1.118.0 · Premium Features Included
★ Premium Download
🔄
Clash Verge Rev
v1.7.2 · Consistent Cross-Platform UX
Active Community Download
🐧
Clash Core + Web Dashboard
CLI Installation · One-Liner Script Available
Download Core
📱
Clash for Android
v3.0.3 · Official Client with Rich Protocol Support
★ Recommended Download
🍏
Stash
Clash Core-Based · Available on App Store
★ Recommended App Store
🔧
Shadowrocket
Veteran iOS Proxy Tool · Powerful Rule Engine
App Store

Three Steps to Get Clash Running,
Manage Network Traffic Easily

No deep technical background required — follow the steps below to configure and enable the proxy.

1

Download & Install

Select your OS version from the download section above. Prioritize trusted sources (official GitHub repositories) to avoid security risks and bundled software.

2

Import Configuration

Import config via subscription link or local YAML file. Enable rule sets and proxy groups as needed. Subscription links are typically provided by node service providers with auto-update support.

3

Enable Proxy

Turn on system proxy or service mode and verify traffic split is working. Switch between direct, rule-based, or global mode depending on your network environment.

View Full Tutorial →

Open Source & Transparent,
Your Data Stays Yours

We understand privacy concerns around proxy tools. Clash was designed with security and transparency as core principles from day one.

📖

Open Source Transparency

Released under GPL-3.0 license. All source code is publicly available on GitHub — anyone can audit, no hidden backdoors.

🔒

Data Localization

Configurations and logs are stored locally on your device only. Clash does not upload any usage data to remote servers.

🛡️

Security Best Practices

Use TLS encryption, update clients and rule sets regularly, follow official security advisories, and stick to verified client versions.

Quick Answers to Common Questions

Covering product comparison, config acquisition, platform selection, troubleshooting, iOS compatibility, and security — each answer presented in step-by-step format.

Category: Product Comparison — A six-step breakdown:

  1. Understand the architectural difference: Clash operates at the application layer using rule-based traffic splitting, while traditional VPNs create an encrypted tunnel at the network layer, routing all traffic through a remote server indiscriminately.
  2. Compare traffic handling: Clash allows precise control over which traffic goes through the proxy based on domain, IP range, or process name; traditional VPNs typically use an all-or-nothing global forwarding approach.
  3. Assess flexibility: Clash proxy groups support fallback, load-balance, and url-test modes with customizable routing rules; traditional VPNs usually offer a simple on/off toggle with minimal granularity.
  4. Evaluate performance: Clash's split routing allows domestic sites to connect directly, reducing unnecessary proxy overhead; traditional VPNs may slow down local website access due to full-traffic forwarding.
  5. Consider configuration complexity: Clash requires some learning to write and understand YAML configs; traditional VPNs are generally plug-and-play with a lower barrier to entry but less flexibility.
  6. Make your choice: Choose Clash for fine-grained traffic management with domestic/international split routing and multi-node intelligent switching; choose a traditional VPN for simple encrypted tunneling without configuration overhead.

Category: Configuration Acquisition — Six steps to obtain and import:

  1. Understand what a subscription link is: It's a URL pointing to a remote server hosting a config file with node lists and routing rules, which the client periodically fetches for automatic updates.
  2. Choose a reputable node provider: Subscription links are typically provided by node service providers — select one with good reputation and stable service, referencing community reviews to avoid malicious actors.
  3. Obtain the subscription URL: Find the subscription link in your provider's user dashboard (usually starting with https://), then copy or use the one-click import button to get the full URL.
  4. Import into your Clash client: Open the client, navigate to the config or subscription management section, paste the link, and save — the client will automatically download and parse the configuration.
  5. Verify the configuration works: After import, confirm the node list loads correctly and that routing rules function as expected by testing access to both domestic and international websites.
  6. Set up automatic refresh: Enable auto-refresh in the client (recommended: daily or every 12 hours) to keep node information and rule sets consistently up to date.

Category: Platform Selection — Six platform-specific recommendations:

  1. Identify your OS and version: Different clients have minimum system requirements — for example, Windows clients generally require Windows 10 or later for optimal compatibility.
  2. Windows recommendation: Clash for Windows is the official go-to client with full feature support; Clash Verge Rev offers a modern UI and frequent updates as an actively maintained third-party alternative.
  3. macOS recommendation: ClashX Pro includes Premium kernel features and TUN mode support; Clash Verge Rev also supports macOS with a consistent cross-platform experience.
  4. Linux approach: Use Clash Core directly with the Web Dashboard for management, configure via command line and set up a systemd service for auto-start — maximum flexibility.
  5. Android recommendation: Clash for Android is the official client with rich protocol support, strong rule customization, subscription import, and per-app proxy capabilities.
  6. iOS alternatives: Clash has no official iOS version; Stash (a native iOS client built on Clash Core) and Shadowrocket are both available on the App Store with full subscription and rule functionality.

Category: Troubleshooting — A systematic six-step diagnostic approach:

  1. Check subscription link validity: Open the subscription URL directly in a browser to confirm it returns valid config data; if expired or broken, contact your provider for an updated link.
  2. Validate config file syntax: Use a YAML validator to check for syntax errors — pay special attention to indentation, port numbers, and protocol name spelling.
  3. Try a different client version: Some bugs are version-specific; roll back to a previous stable release or upgrade to the latest version to see if the issue persists.
  4. Clear local cache: Delete the client's cache directory and old config files, re-import the subscription and restart — corrupted cache can cause blank screens or connection failures.
  5. Inspect system network settings: Verify your firewall or security software isn't blocking Clash, check DNS settings are correct, and reset the network stack if necessary.
  6. Consult community resources: Visit GitHub Issues or community forums to search for similar problems; if unresolved, submit a detailed bug report with error logs and reproduction steps.

Category: Platform Compatibility — Six steps for iOS users:

  1. Understand the iOS landscape: Due to iOS sandboxing and App Store policies, Clash has no official iOS client, but mature community alternatives exist that deliver equivalent functionality.
  2. Primary recommendation — Stash: Stash is a native iOS app built on Clash Core, fully supporting Clash config files, subscription imports, and rule-based routing; available directly on the App Store.
  3. Alternative — Shadowrocket: A veteran iOS proxy tool with broad protocol support, powerful rule configuration, a large user base, and extensive tutorial resources — a well-tested reliable option.
  4. Import subscription and config: In Stash or Shadowrocket, locate the subscription management entry, paste your subscription link and save — the app will automatically parse and load node lists and routing rules.
  5. Configure on-demand routing rules: Set up split routing so domestic apps connect directly while international apps use the proxy, with fine-grained control by domain, IP range, or GeoIP database for optimal experience.
  6. Keep the app updated: Regularly check the App Store for version updates and install promptly for security patches and new features; also monitor subscription link validity to keep node info in sync.

Category: Security & Privacy — Six core privacy protection pillars:

  1. Auditable open-source code: Clash is released under the GPL-3.0 license with full source code publicly available on GitHub — developers worldwide can audit the code to ensure no malicious backdoors or data exfiltration logic exists.
  2. Fully localized data storage: All configs, logs, and cache stay on your local device only. Clash does not collect or upload any usage data to remote servers — you maintain complete data sovereignty.
  3. TLS-encrypted transport: Clash supports TLS encryption to protect communication between the client and proxy nodes, preventing man-in-the-middle attacks and traffic sniffing during transmission.
  4. No telemetry, no ads: Clash contains zero telemetry modules, user behavior tracking, or advertising components — it is a pure utility tool that respects your privacy by design.
  5. Version security advisories: The official team and community promptly flag archived or deprecated client versions, guiding users toward secure and actively maintained releases to avoid vulnerability risks from outdated software.
  6. User-controlled configuration: All proxy rules and node configs are managed and imported solely by the user — Clash presets no remote configurations or default nodes, giving you full autonomy over your network routing decisions.