# ClashX 配置教程

## 安装

ClashX 是一款基于 clash 内核的开源 macOS 客户端。由于某些原因，作者已将 ClashX 下架，下面是 ClashX 最后一个版本的 DMG 安装文件，还请直接下载安装即可。

{% hint style="info" %}
<https://pub-eac3eb5670f44f09984dee5c57939316.r2.dev/ClashX.dmg>
{% endhint %}

安装后打开 ClashX 同意权限申请，确认在系统菜单栏中有 ClashX 的标识。

## 配置订阅

{% hint style="info" %} <mark style="color:red;">**⚠️ 请注意，还请务必注意！在订阅配置成功之前，请务必不要先打开「系统代理」的开关！否则会出现订阅失败的情况。**</mark>
{% endhint %}

打开浏览器登陆 AgentNEO，点击套餐进入套餐详情。

![](/files/-MWgXD6yei2xIB3oMbss)

点击右侧「**配置链接**」。

![](/files/-MWgZ--Mh1uEBfqNRTaX)

### 一键导入

下滑到「**Clash 配置链接**」处，点击「**一键导入（全平台）**」，

![](/files/-MWg_PKkjafWWqZtTLy8)

{% hint style="info" %}
如果点击「一键配置（全平台）」没有响应，请参考下面手动导入一节。
{% endhint %}

浏览器会自动呼出 ClashX 客户端，点击「**打开 ClashX.app**」以确认。

![](/files/-MWihnx3E568vCAoc9fU)

随后会自动打开 ClashX 的托管配置窗口并自动填入订阅信息。点击确认即可完成。

![](/files/-MWgbBnH5ulLY-G7E6DK)

### 手动导入

下滑到「**Clash 配置链接**」处，点击「**复制地址**」，

![](/files/-MWgcEItJHF8fyaqDKle)

随后点击系统菜单栏中的 ClashX 图标，依次点击「**配置**」-「**托管配置**」-「**管理**」打开托管配置管理窗口。

![](/files/-MWgdX516y-8Wjf1do1g)

点击「**添加**」后，将复制的订阅链接粘贴到 URL 文本框中，Config Name 输入 *AgentNEO* 以便于识别。设置完成后点击「**确定**」即可完成手动配置。

![](/files/-MWiEHW3KuwmEiEjd1rm)

## 更新订阅配置

> 及时更新订阅配置是非常重要且有用的事情，这可以让你的节点、规则等信息保持最新，以获得更稳定和更快速的体验。

点击系统菜单栏中的 ClashX 图标，依次点击「**配置**」-「**托管配置**」-「**管理**」打开托管配置管理窗口。

![](/files/-MWgdX516y-8Wjf1do1g)

选中需要更新的订阅点击下方「**更新**」即可更新订阅节点、规则。

![](/files/-MWiFPIJPPKxAOnJtxGI)

## 使用 ClashX

1. 开启 / 关闭 ClashX
   * 将「设置为系统代理」选项激活 / 反激活
2. 设置运行模式
   * 全局连接 - 所有请求通过节点代理
   * 规则判断 - 根据配置规则进行自动分流，按照规则列表设置运行
   * 直接连接 - 所有请求都不通过节点代理，直接从本地发起请求

![](/files/-MWiHBpOahQJlDYeUlA7)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agentneo.gitbook.io/docs/macos/clashx-pei-zhi-jiao-cheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
