2018-08-08 22:00:04 +08:00
< h1 align = "center" >
2022-07-10 22:24:25 +08:00
< img src = "https://github.com/MetaCubeX/Clash.Meta/raw/Meta/Meta.png" alt = "Clash" width = "200" >
2018-08-08 22:00:04 +08:00
< br >
ClashX
< br >
< / h1 >
2018-06-14 17:38:27 +08:00
2018-08-08 22:00:04 +08:00
2022-07-10 22:24:25 +08:00
A rule based proxy For Mac base on [Clash Meta ](https://github.com/MetaCubeX/Clash.Meta ).
2018-08-08 22:00:04 +08:00
2018-06-14 17:38:27 +08:00
2023-06-03 13:38:58 +08:00
## 注意
2023-06-07 00:10:12 +08:00
- ClashX / ClashX Pro / ClashX Meta 只是一个代理工具,不提供任何代理服务器。如果服务器不可用或与服务器续费有关的问题,请与您的提供商联系。
- ClashX / ClashX Pro / ClashX Meta 目前并没有创建官网。凡是声称是 ClashX / ClashX Pro / ClashX Meta 官网的一定是骗子。
2023-06-03 13:38:58 +08:00
2018-11-09 10:12:26 +08:00
## Features
2018-06-14 17:38:27 +08:00
2022-07-10 22:24:25 +08:00
- Clash.Meta Core
- Tun mode support
2018-08-08 22:00:04 +08:00
2018-11-09 10:12:26 +08:00
## Install
2018-06-14 17:38:27 +08:00
2022-07-10 22:24:25 +08:00
You can download from [Release ](https://github.com/MetaCubeX/Clash.Meta/releases ) page
2020-11-17 13:30:25 +08:00
2018-06-14 17:38:27 +08:00
2019-02-11 16:37:30 +08:00
## Build
2020-03-13 18:17:34 +08:00
- Make sure have python3 and golang installed in your computer.
2020-12-24 21:21:47 +08:00
- Install Golang
```
brew install golang
or download from https://golang.org
```
2019-10-02 21:43:18 +08:00
- Download deps
2019-02-11 16:37:30 +08:00
```
2019-10-02 21:43:18 +08:00
bash install_dependency.sh
2019-02-11 16:37:30 +08:00
```
2020-03-13 18:17:34 +08:00
2019-02-11 16:37:30 +08:00
- Build and run.
2018-11-09 10:12:26 +08:00
## Config
The default configuration directory is `$HOME/.config/clash`
2020-02-25 09:41:51 +08:00
The default name of the configuration file is `config.yaml` . You can use your custom config name and switch config in menu `Config` section.
2019-02-11 16:37:30 +08:00
2019-09-15 21:13:43 +08:00
2022-07-10 22:24:25 +08:00
Checkout [Clash Meta ](https://docs.metacubex.one ) or [Clash ](https://github.com/Dreamacro/clash ) or [SS-Rule-Snippet for Clash ](https://github.com/Hackl0us/SS-Rule-Snippet/blob/master/LAZY_RULES/clash.yaml ) or [lancellc's gitbook ](https://lancellc.gitbook.io/clash/ ) for more detail.
2019-02-11 16:37:30 +08:00
2019-03-31 16:38:00 +08:00
## Advance Config
2020-04-24 21:08:29 +08:00
2023-02-20 19:05:08 +08:00
### Change the ports of ClashX
2020-04-24 21:08:29 +08:00
2023-02-20 19:05:08 +08:00
Please modify the `config.yaml` file generated by ClashX, not the other config file you created or downloaded. The `General` section settings in your custom config file would be ignored. Then relaunch ClashX to apply changes.
2020-04-24 21:08:29 +08:00
2019-03-31 16:38:00 +08:00
### Change your status menu icon
2019-10-02 21:43:18 +08:00
Place your icon file in the `~/.config/clash/menuImage.png` then restart ClashX
2019-08-21 16:52:50 +08:00
2019-03-31 16:38:00 +08:00
### Change default system ignore list.
2023-02-01 13:29:27 +08:00
- Change by menu -> Config -> Setting -> Bypass proxy settings for these Hosts & Domains
2019-07-30 21:03:24 +08:00
2022-07-10 22:24:25 +08:00
### URL Schemes (May not work).
2019-03-31 16:38:00 +08:00
2021-11-14 15:50:53 +08:00
- Using url scheme to import remote config.
2019-08-21 16:52:50 +08:00
```
2019-10-01 16:40:52 +08:00
clash://install-config?url=http%3A%2F%2Fexample.com& name=example
2019-08-21 16:52:50 +08:00
```
2021-11-14 15:50:53 +08:00
- Using url scheme to reload current config.
```
clash://update-config
```
2018-06-14 17:38:27 +08:00
2021-10-04 13:49:50 +08:00
### Get process name
You can add the follow config in your config file, and set your proxy mode to rule. Then open the log via help menu in ClashX.
```
script:
code: |
def main(ctx, metadata):
# Log ProcessName
ctx.log('Process Name: ' + ctx.resolve_process_name(metadata))
return 'DIRECT'
```
2021-07-05 10:24:50 +08:00
### FAQ
2019-10-02 21:43:18 +08:00
2021-07-05 10:24:50 +08:00
- Q: How to get shell command with external IP?
A: Click the clashX menu icon and then press `Option-Command-C`
2021-11-13 20:51:35 +08:00
### 关闭ClashX的通知
1. 在系统设置中关闭 clashx 的推送权限
2022-11-20 12:08:46 +08:00
2. 在菜单栏->配置->更多设置中选中减少通知
2021-11-13 20:51:35 +08:00
Note: 强烈不推荐这么做, 这可能导致clashx的很多重要错误提醒无法显示。
2022-03-22 21:39:29 +08:00
### 全局快捷键
2023-06-07 13:55:38 +08:00
- 在菜单栏配置->更多配置中, 自定义对应功能的快捷键。( 需要v1.2.6之后的版本)
2023-06-03 13:38:58 +08:00
- 使用AppleScript设置, 详情点击 [全局快捷键 ](Shortcuts.md )