Claude Skill
wnlen/clash-for-linux
Clash for Linux provides a complete, elegant Clash/Mihomo proxy environment for Linux. Easy to deploy with shell scripts, ideal for DevOps and daily use.
Overview
Repository
Install this Skill
git clone --branch master --depth 1 https://ghfast.top/https://github.com/wnlen/clash-for-linux.gitRegistry
Summary
A comprehensive and elegant Linux Clash / Mihomo proxy environment, designed for DevOps and daily use on Linux systems.
🐱 一个更完整、更优雅的 Linux Clash / Mihomo 代理环境(养虾人必备)
Key features
- Supports Clash Meta / Mihomo core
- Shell-based, easy to deploy and manage
- Optimized for Linux proxy environments
- Includes DevOps-friendly tooling
Use cases
- Setting up proxy on Linux servers
- Managing Clash/Mihomo in headless environments
- Integrating proxy into DevOps workflows
- Running proxy for development or testing
README excerpt
<h1 align="center"> 🐧 Clash for Linux</a> <br> </h1> <p align="center"> 💬 社区交流:<a href="https://t.me/+NsYaX9kzqERlNzZl">Telegram 群</a> </p> <h3 align="center"> 一个更完整、更优雅的 Linux Clash / <a href="https://github.com/MetaCubeX/mihomo">Mihomo</a> 运行平台。 </h3> <p align="center"> <img src="resources/shell.png" width="100%"> </p> # ✨ 核心特性 - 🚀 **自动识别系统架构**:自动下载并使用对应 Clash 内核 - 🧪 **端口自动检测与分配**:避免冲突 - 🔄 **多订阅管理**:可以保存多个订阅,通过 `clashctl use` 切换当前主订阅。 - 💫 **节点选择**:使用编号交互选择策略组和节点。 - 🌐 **Tun 模式**:用于透明代理接管场景(需root方式安装)。 - 🧠 **Mixin 机制**:可按需追加/覆盖 Clash 配置 - 👤 **不同权限**:兼容 `root` 与普通用户环境。 - 🔐 **安全默认配置**:自动生成或自定义 Secret - 🩺 **内置诊断工具(`doctor`)**:快速排障 ### 适用场景 - Linux 云服务器(VPS / 远程开发环境) - 本地开发环境(Ubuntu / Debian / WSL) - 路由 / 轻量系统(OpenWrt / NAS / 小主机 x86 / ARM) - 需要稳定访问 GitHub、Go / Node / Docker 生态的开发者 - 不希望手动维护 Clash 运行状态的用户 # 🚀 一键安装(推荐) 在终端中执行以下命令即可完成安装: ``` git clone --branch master --depth 1 https://ghfast.top/https://github.com/wnlen/clash-for-linux.git cd clash-for-linux bash install.sh ``` - 上述命令使用了[加速前缀](https://gh-proxy.org/),如失效可更换其他[可用链接](https://ghproxy.link/)。 - 可通过 `.env` 文件或脚本参数自定义安装选项。 - 在 WSL 环境中,不支持放在 Windows 挂载目录**/mnt/c/**下,请安装到 Linux 原生目录。 ------ ## ⌨️ 命令一览 ```bash 〽️ 常用命令 clashon 🚀 开启代理 clashoff ⛔ 关闭代理 clashctl select 💫 选择节点 🕹️ 控制台 clashui 🕹️ 查看 Web 控制台 📦 订阅 clashctl add ➕ 添加订阅 clashctl add local ➕ 从 runtime/subscriptions 导入本地订阅 clashctl use 💱 切换订阅 clashctl ls 📜 查看订阅列表 🔐 密钥管理 clashctl secret 🔑 查看密钥 clashctl secret 123 🔐 设置密钥 📌 高级 clashctl lan 🏠 局域网代理管理 clashctl tun 🧪 Tun 模式管理(需root方式安装) clashctl boot 🚦 开机代理接管管理 clashctl mixin 🧩 Mixin 配置管理 clashctl relay 🔗 多跳节点管理 clashctl sub 🧩 订阅高级管理(启用 / 禁用 / 重命名 / 删除) clash