28,227
stars
4,071
forks
195
watchers
363
prs
4,213
issues
198
releases
README
OpenClash 一个可运行在 OpenWrt 上的 Mihomo (Clash Meta) 客户端 简介 OpenClash 是一个面向 OpenWrt 的 LuCI 插件,用于管理 Mihomo(原 Clash Meta)内核,兼容 Shadowsocks、ShadowsocksR、VMess、VLESS、Trojan、Snell、TUIC、Hysteria 等主流协议,通过灵活的规则配置实现按需分流与透明代理。 功能特性 | 模块 | 说明 | |------|------| | 内核 | 内置 Mihomo(Meta)与 Smart 智能内核,支持在线更新与切换 | | 运行模式 | redir-host / fake-ip 与混合模式、TUN 模式,兼容 iptables 与 nftables | | 订阅管理 | 多订阅并存,支持 Subconverter 在线转换、自定义 User-Agent 与请求头 | | 配置管理 | 多配置文件一键切换、在线编辑、备份/恢复、Age 加密 | | 访问控制 | 黑白名单、自定义防火墙规则 | | 流媒体 | Netflix / Disney+ / HBO 等自动选线 | | 覆写设置 | 模块化覆写 YAML,方便配置文件定制 | 目录 - 简介 - 功能特性 - 快速开始 - 使用手册 - 下载 - 依赖 - 源码编译 - 致谢 - 请作者喝杯咖啡 - 许可证 快速开始 网页安装 1. 从 Release 页面 下载对应架构的安装包(.ipk 或 .apk); 2. 登录 OpenWrt 的 LuCI 后台,前往 系统 → 软件包 上传并安装; 3. 刷新或者重新登录页面,在 服务 → OpenClash 中导入订阅或上传配置文件并启动。 命令行安装 安装依赖并下载最新版(iptables 防火墙): shell opkg 系统(ipk) opkg update opkg install bash iptables dnsmasq-full curl ca-bundle ipset ip-full iptables-mod-tproxy iptables-mod-extra ruby ruby-yaml kmod-tun kmod-inet-diag unzip luci-compat luci luci-base curl -L --retry 2 https://api.github.com/repos/vernesong/OpenClash/releases/latest -o /tmp/openclash_version [ -f "/tmp/openclash_version" ] && download_url=$(cat /tmp/openclash_version | jsonfilter -e '@.assets[].browser_download_url' | grep '\.ipk$') && curl -L --retry 2 "$download_url" -o /tmp/openclash.ipk || echo "OpenClash last version get failed" [ -f "/tmp/openclash.ipk" ] && opkg install /tmp/openclash.ipk || echo "OpenClash download failed" apk 系统(apk) apk update apk add bash iptables dnsmasq-full curl ca-bundle ipset ip-full iptables-mod-tproxy iptables-mod-extra ruby ruby-yaml kmod-tun kmod-inet-diag unzip luci-compat luci luci-base curl -L --retry 2 https://api.github.com/repos/vernesong/OpenClash/releases/latest -o /tmp/openclash_version [ -f "/tmp/openclash_version" ] && download_url=$(cat /tmp/openclash_version | jsonfilter -e '@.assets[].browser_download_url' | grep '\.apk$') && curl -L --retry 2 "$download_url" -o /tmp/openclash.apk || echo "OpenClash last version get failed" [ -f "/tmp/openclash.apk" ] && apk add -q --force-overwrite --clean-protected --allow-untrusted /tmp/openclash.apk || echo "OpenClash download failed" 安装依赖并下载最新版(nftables 防火墙,Firewall4): shell opkg 系统(ipk) opkg update opkg install bash dnsmasq-full curl ca-bundle ip-full ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base curl -L --retry 2 https://api.github.com/repos/vernesong/OpenClash/releases/latest -o /tmp/openclash_version [ -f "/tmp/openclash_version" ] && download_url=$(cat /tmp/openclash_version | jsonfilter -e '@.assets[].browser_download_url' | grep '\.ipk$') && curl -L --retry 2 "$download_url" -o /tmp/openclash.ipk || echo "OpenClash last version get failed" [ -f "/tmp/openclash.ipk" ] && opkg install /tmp/openclash.ipk || echo "OpenClash download failed" apk 系统(apk) apk update apk add bash dnsmasq-full curl ca-bundle ip-full ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy lu
Top issues
#1469使用了一段时间openclash,发现微信刷图好慢,而且是时快时慢,500M+60M ADSL 麻烦老大看下 补上视频!66 comments · 2021-07-13#5074[Bug]谷歌商店无法正常下载更新软件41 comments · 2026-04-04#5117[Feature] 请求新版本支持anytls的协议23 comments · 2026-04-27#4790[Bug] 节点订阅无法按设定循环时间自动更新16 comments · 2025-10-19#5365[Bug] 开启fakeip-tun模式时无法代理op本地docker容器流量7 comments · 2026-10-20#5335[Feature] 支持规则动态引用当前代理策略组7 comments · 2026-09-25#5357[Bug] 升级到最新版的openclash之后无法关闭本地dns劫持4 comments · 2026-10-15#5295[Bug] 中国大陆使用香港节点,登陆steam无法正常更新游戏,显示无互联网连接5 comments · 2026-08-21
Discussions
#5404有没有大佬能有时间讲一下YAML如何配置链式代理? 在网上学了没学会。0 comments · 2026-11-12#5370会在OpenWrt官方源上上架吗0 comments · 2026-10-23#5368关于 MetacubeXD 的流量统计0 comments · 2026-10-22#5347黑白名单模式下,无线可代理上网,有线无法走代理1 comments · 2026-10-11#5346master 通道内核仍是 sing-tun v0.4.22,TUN system 栈会周期性静默关掉长连接(dev 通道已修复)0 comments · 2026-10-08#5329openclash 依然是软路由 上手难度最大的插件2 comments · 2026-09-22#5309OpenClash 单连接下载只有80Mbps,多连接150Mbps,正常吗0 comments · 2026-09-02#5308能否增加一个定时打开和关闭openclash运行的功能0 comments · 2026-09-02
Latest release
v0.48.002 v0.48.002 2026-10-12发布时间 2026-10-12 11:40 GMT+0800 使用手册 WIKI & SKILL 安装命令 在路由器上以 root 身份执行(需要 curl 与 ca-bundle): shell (curl -fsSL -o /tmp/install.sh https://raw.githubusercontent.com/vernesong/OpenClash/dev/install.sh || curl -fsSL -o /tmp/install.sh https://cdn.jsdelivr.net/gh/vernesong/OpenClash@dev/install.sh) && sh /tmp/install.sh 手动安装(不使用脚本时) 安装依赖并下载最新版(iptables 防火墙): shell opkg 系统(ipk) opkg update opkg install bash iptables dnsmasq-full curl ca-bundle ipset ip-full iptables-mod-tproxy iptables-mod-extra ruby ruby-yaml kmod-tun kmod-inet-diag unzip luci-compat luci luci-b