/clash-verge

A Clash GUI based on tauri. Supports Windows, macOS and Linux.

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Clash
Clash Verge

A Clash GUI based on tauri.

Features

  • Full clash config supported, Partial clash premium config supported.
  • Profiles management and enhancement (by yaml and Javascript). Doc
  • Simple UI and supports custom theme color.
  • Built-in support mihomo core.
  • System proxy setting and guard.

Install

Download from release. Supports Windows x64, Linux x86_64 and macOS 11+

Or you can build it yourself. Supports Windows, Linux and macOS 10.15+

Notes: If you could not start the app on Windows, please check that you have Webview2 installed.

FAQ

1. macOS "Clash Verge" is damaged and can't be opened

open the terminal and run sudo xattr -r -d com.apple.quarantine /Applications/Clash\ Verge.app

2. macOS Tun Mode not work

change core permissions:

sudo chown root:admin /Applications/Clash\ Verge.app/Contents/MacOS/mihomo
sudo chmod +sx /Applications/Clash\ Verge.app/Contents/MacOS/mihomo

due to the core cannot redirect dns automatically, you may need to manually set dns server with:

# set to Tun Mode built-in dns
networksetup -setdnsservers Wi-Fi 198.18.0.2
# restore to default dhcp dns
networksetup -setdnsservers Wi-Fi "Empty"

Development

You should install Rust and Nodejs, see here for more details. Then install Nodejs packages.

yarn install

Then download the clash binary... Or you can download it from clash premium release and rename it according to tauri config.

# force update to latest version
# yarn run check --force

yarn run check

Then run

yarn dev

# run it in another way if app instance exists
yarn dev:diff

Or you can build it

yarn build

Todos

This keng is a little big...

Screenshots

demo1 demo2 demo3 demo4 demo5 demo6

Custom Theme

demo1 demo2 demo3 demo4 demo5 demo6

Disclaimer

This is a learning project for Rust practice.

Contributions

Issue and PR welcome!

Acknowledgement

Clash Verge was based on or inspired by these projects and so on:

License

GPL-3.0 License. See License here for details.