# Windows/MAC教程(Clash)

{% hint style="info" %}
Clash 是一个使用 Go 语言编写，基于规则的跨平台代理软件核心程序。 Clash for Windows 是运行在 Windows 上的一图形化 Clash 分支。 通过 Clash API 来配置和控制 Clash 核心程序，便于用户可视化操作和使用。
{% endhint %}

## 软件下载

{% hint style="success" %}
**下载地址**

* Windows免代理地址1(amd64)：[点击下载](https://hub.gitmirror.com/https://github.com/akkwiki/akkwikigitbook/releases/download/first/Clash.for.Windows.Setup.0.20.39.exe)
* Windows免代理汉化版下载1（amd64）：[点击下载](https://hub.gitmirror.com/https://github.com/Z-Siqi/Clash-for-Windows_Chinese/releases/download/CFW-V0.20.35_CN/Clash.for.Windows.Setup.0.20.35.exe)
* Windows免代理地址1(老旧电脑)：[点击下载](https://hub.gitmirror.com/https://github.com/akkwiki/akkwikigitbook/releases/download/first/Clash.for.Windows.Setup.0.20.39.ia32.exe)
* MAC免代理地址1(intel 旧电脑)：[点击下载](https://hub.gitmirror.com/https://github.com/akkwiki/akkwikigitbook/releases/download/first/Clash.for.Windows-0.20.39.dmg)
* MAC免代理地址1(arm 新电脑)：[点击下载](https://hub.gitmirror.com/https://github.com/akkwiki/akkwikigitbook/releases/download/first/Clash.for.Windows-0.20.39-arm64.dmg)
* Github上的最新版本：[点击打开](https://github.com/Fndroid/clash_for_windows_pkg/releases)
* 遇到无法安装或者其他问题，请直接到GITHUB上下载（可能需要开启代理）
* ![](https://1971164367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc50Dsq8AidZM5PCNKV8Q%2Fuploads%2FyAhDnPx5C3nmfNR5moZw%2Fimage.png?alt=media\&token=d4968e1f-debe-4823-b1d4-3c5d78a7e926)
  {% endhint %}

## Clash for Windows配置

### 添加订阅

进入**用户中心**（首页） 点击Clash订阅，点击复制**Clash订阅**链接

<figure><img src="https://1971164367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc50Dsq8AidZM5PCNKV8Q%2Fuploads%2FBzDtkZQGSWjhJrgdi9NL%2Fimage.png?alt=media&#x26;token=b9027797-7d8e-4ae2-b497-fe4602680eee" alt=""><figcaption></figcaption></figure>

打开 Clash for Windows 应用程序，在左侧的标签页中点击 Profiles ， 在顶部输入您的 Clash 订阅链接(填入URL)，然后点击 Download 按钮下载配置文件，最后选择要使用的配置。

<figure><img src="https://1971164367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc50Dsq8AidZM5PCNKV8Q%2Fuploads%2Fsablyj50ar6lMCPXD4m4%2Fquickstart2.0091784e.png?alt=media&#x26;token=37d751ee-f583-4f5c-a0f5-99ba29a718ed" alt=""><figcaption></figcaption></figure>

进入**Proxies**界面，选择你需要的代理模式。其中：

**Global（全局模式）**：所有流量都使用代理（最简单）\
**Rule（规则模式）**：根据配置文件内的规则进行分流，部分流量使用代理，部分流量不使用\
**Direct（直连模式）**：所有流量都不使用代理\
**Script（脚本模式）**：根据高级脚本来进行分流（不推荐无编程经验用户使用）

\*这里我们使用\*\*Rule（规则模式）\*\*在模式下，点击分组右上角的小眼睛可以切换显示所有节点或收起分组，点击类似wifi图标的可以测试所以节点连通性。

这里点击**国外流量**右边的小眼睛选择一个节点

<mark style="color:red;">如果出现无法访问部分应用的情况下，请在顶部切换为</mark> <mark style="color:red;">**Global**</mark> <mark style="color:red;">模式并选择一个节点</mark>

<figure><img src="https://1971164367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc50Dsq8AidZM5PCNKV8Q%2Fuploads%2FDyAcdaW8a8aSyn5odB2e%2F%E6%8D%95%E8%8E%B7.png?alt=media&#x26;token=5ac98146-acda-4b0f-b4ac-aeb34da3f7ee" alt=""><figcaption></figcaption></figure>

#### 启用代理

启用代理，需要点击界面左侧菜单 General 选项卡，找到 `System Proxy` 并开启开关即可，开启状态下按钮状态为绿色，如下图所示为开启状态。

如果你部分软件还是无法使用，请尝试开启TUN Mode 选项

启动 TUN 模式需要进行如下操作：

1. 点击`General`中`Service Mode`右边`Manage`，在打开窗口中安装服务模式，安装完成应用会自动重启，Service Mode 右边地球图标变为`绿色`即安装成功（无法安装参考：[这里](https://docs.cfw.lbyczf.com/contents/questions.html#service-mode-%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85-windows)）
2. 点击`General`中`TUN Mode`右边开关启动 TUN 模式

<figure><img src="https://1971164367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc50Dsq8AidZM5PCNKV8Q%2Fuploads%2FHLbt39zUUKkgKevZbZpN%2Fimage.png?alt=media&#x26;token=700c447a-78a7-4dbb-90b4-1775cd3d22ae" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Clash for Windows常见问题**

* [General 加载失败，显示“failed to clash core, logs are not available.”](https://docs.cfw.lbyczf.com/contents/questions.html#general-%E5%8A%A0%E8%BD%BD%E5%A4%B1%E8%B4%A5-%E6%98%BE%E7%A4%BA-failed-to-clash-core-logs-are-not-available)
* [macOS 无法设置 System Proxy，系统代理项目灰色无法更改](https://docs.cfw.lbyczf.com/contents/questions.html#macos-%E6%97%A0%E6%B3%95%E8%AE%BE%E7%BD%AE-system-proxy-%E7%B3%BB%E7%BB%9F%E4%BB%A3%E7%90%86%E9%A1%B9%E7%9B%AE%E7%81%B0%E8%89%B2%E6%97%A0%E6%B3%95%E6%9B%B4%E6%94%B9)
* [Service Mode 无法安装](https://docs.cfw.lbyczf.com/contents/questions.html#service-mode-%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85)
* [macOS 版本启动要求授权](https://docs.cfw.lbyczf.com/contents/questions.html#macos-%E7%89%88%E6%9C%AC%E5%90%AF%E5%8A%A8%E8%A6%81%E6%B1%82%E6%8E%88%E6%9D%83)
* [macOS DMG 安装后无法打开，提示损坏](https://docs.cfw.lbyczf.com/contents/questions.html#macos-dmg-%E5%AE%89%E8%A3%85%E5%90%8E%E6%97%A0%E6%B3%95%E6%89%93%E5%BC%80-%E6%8F%90%E7%A4%BA%E6%8D%9F%E5%9D%8F)
* 更多软件常见问题
* [更多问题](https://docs.cfw.lbyczf.com/contents/questions.html#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) [搜索问题](https://github.com/Fndroid/clash_for_windows_pkg/issues)
  {% endhint %}
