Clashctl installs and manages the Mihomo or Clash proxy stack on Linux, including a web panel and shell commands. It supports root and normal users on common distributions and container setups.
Overview
Clashctl bundles deployment of the Mihomo kernel, dependent packages, and a web control panel so a proxy environment is ready after one install script. It evolved from the older clash-for-linux-install project and targets operators who want scripted setup instead of manual binary placement.
The tool integrates with systemd or OpenRC, exposes commands for Bash, Zsh, and Fish, and works for both privileged and unprivileged accounts. Day-to-day actions include toggling proxies for the current shell, starting and stopping the core, inspecting status, following logs, enabling TUN mode, upgrading the kernel, and applying Mixin configuration.
Subscription URLs can be added and enabled from the shell workflow, and documentation on the project wiki covers advanced layouts. Uninstall removes the install tree and data unless the user backs up items first; a hidden backups folder is left for recovery until manually cleared.
The authors state the project is intended for learning shell automation and must not be used for activities that violate applicable law.
Key features
- One-step Mihomo deployment
- Bundled web administration panel
- Proxy on-off for current terminal
- TUN mode support
- Kernel upgrade command
- Mixin configuration
- systemd and OpenRC integration
- Bash, Zsh, and Fish hooks
Use cases
- Linux proxy stack setup
- Subscription-based rule proxies
- Shared server egress control
- Developer shell proxy toggling
- Container-friendly proxy installs