Skip to content

Installation ​

1. Download ​

Latest GUI.for.Clash: Download Link

Latest GUI.for.SingBox: Download Link

We provide the following files for different OS and CPU architectures in the project's Github Releases page

  • Windows-amd64
  • Windows-arm64
  • Windows-386
  • macOS-amd64
  • macOS-arm64
  • Linux-amd64
  • Linux-arm64

Check the device's operating system and CPU architecture, download the corresponding file

2. Windows ​

Unzip the downloaded file, and move it to any folder of your choice;

Take GUI.for.Clash as an example: D:\MyPrograms\GUI.for.Cores\GUI.for.Clash;

The path of the exe file is: D:\MyPrograms\GUI.for.Cores\GUI.for.Clash\GUI.for.Clash.exe.

Notes:

  • Avoid using spaces in the path
  • Avoid using Chinese characters in the path

3. macOS ​

Double click the zip file, move the unzipped file to Desktop, follow these steps:

  1. Double click the executable, The error message "Cannot open... because the developer cannot be verified", click Cancel button;

  2. Go to System Settings - Privacy & Security - Security, "Cannot be opened because the developer cannot be verified", click "Open Anyway", enter the password to confirm.

Note:

  • The unzipped executable must be moved at least once (as the example step above, it is moved from Downloads to Desktop), otherwise the executable will not have the permission to write

4. Linux ​

Only tested on Ubuntu 22.04.4, if you are on other distributions, download the same file and try to run it.

Run the following command in a terminal, then follow the prompts to choose the application (GUI.for.Clash or GUI.for.SingBox) and options:

bash
curl -fsSL https://gui-for-cores.github.io/install.sh | bash

The script downloads the latest release and verifies its sha256, installs it to ~/.local/opt/<AppName>, and optionally creates the desktop shortcut, a command-line symlink (gui-for-clash / gui-for-singbox), checks runtime dependencies and configures passwordless TUN. A GitHub mirror can be entered for downloading. Later upgrades are handled by the application itself; run the script again to repair or uninstall.

Manual Installation ​

Unzipped the file, move the executable to the directory of your choice, take GUI.for.Clash for example: ~/.local/opt/GUI.for.Clash

Create the desktop shortcut manually: create a file named GUI.for.Clash.desktop in ~/.local/share/applications directory, copy and paste the following content:

[Desktop Entry]
Version=1.0
Name=GUI.for.Clash
Comment=A GUI client for Clash
StartupWMClass=GUI.for.Clash
Exec=/path/to/GUI.for.Clash/GUI.for.Clash %u
Icon=/path/to/GUI.for.Clash/appicon.png
Terminal=false
Type=Application
Categories=Network;Utility;
StartupNotify=true
MimeType=x-scheme-handler/clash;

5. Directory Dissection ​

Data Directory Location ​

By default, the application stores its data in the current user's data directory. Using GUI.for.Clash as an example (replace the folder name with GUI.for.SingBox for GUI.for.SingBox):

  • Windows: %LOCALAPPDATA%\GUI.for.Clash
  • macOS: ~/Library/Application Support/GUI.for.Clash
  • Linux: $XDG_DATA_HOME/GUI.for.Clash, or ~/.local/share/GUI.for.Clash if XDG_DATA_HOME is not set

Portable Mode ​

The application runs in portable mode and stores its data in the data folder next to the application if either of the following is true:

  • A data folder already exists next to the application (users upgrading from older versions keep using it automatically, no migration needed)
  • The application is started with the --portable flag

You can also use the --data-dir=<path> flag to store data in any directory. A relative path is resolved against the application's directory.

Notes:

  • On macOS, the data folder should be placed in the same directory as the .app, not inside the .app
  • If Startup on Boot is enabled, turn it off and on again after changing launch flags

Directory Structure ​

Using portable GUI.for.Clash as an example. In non-portable mode, the data directory has the same contents as the data folder:

GUI.for.Clash
└─ data                      // Application resource directory
|   ├─ .cache                // Cache folder, temporary files should be placed in this directory
|   ├─ mihomo                // Core files directory
|   ├─ locales               // Localization files for multiple languages
|   ├─ plugins               // Plugin directory, only stores plugin source code, each plugin corresponds to a plugin-xxx.js file
|   ├─ rolling-release       // Rolling release resource directory, stores compiled frontend files
|   ├─ rulesets              // Ruleset directory, referenced by the core application
|   ├─ subscribes            // Subscription directory, referenced by the core application
|   ├─ third                 // Third-party application directory, third-party applications downloaded by plugins should be placed and run in this directory
|   ├─ plugins.yaml          // Plugin index file
|   ├─ profiles.yaml         // Configuration index file
|   ├─ rulesets.yaml         // Ruleset index file
|   ├─ scheduledtasks.yaml   // Scheduled tasks index file
|   ├─ subscribes.yaml       // Subscriptions index file
|   └─ user.yaml             // Application configuration file: APP settings, plugin settings
└─ GUI.for.Clash.exe         // Main application