A Home Assistant add-on repository for running Mihomo (formerly Clash.Meta) as a transparent proxy with advanced routing capabilities.
This repository contains the following add-ons
Mihomo (Clash.Meta) - A rule-based transparent proxy with advanced routing capabilities.
This add-on enables you to run Mihomo (formerly Clash.Meta) on your Home Assistant instance. Mihomo is a rule-based network proxy that supports transparent proxy, multiple protocols, and advanced routing features.
The add-on provides a complete proxy solution with automatic daily updates, ensuring you always have the latest features and security patches from the Mihomo project.
- π Transparent Proxy (TProxy) - Seamless traffic routing on port 9898
- π Auto-updating - Daily builds with the latest Mihomo binary via GitHub Actions
- βοΈ Flexible Configuration - Support for custom configurations
- π§ RESTful API - Control via web interface on port 9090
- π Multi-protocol Support - SS, VMess, Trojan, VLESS, and more
- π Home Assistant Integration - Native add-on with full access to Home Assistant network
- π¦Ύ ARM64 Support - Optimized for Raspberry Pi 4 and similar devices
- Navigate to your Home Assistant Supervisor panel
- Click on "Add-on Store"
- Click the three dots menu and select "Repositories"
- Add this repository URL:
https://github.com/kapuic/hassio-mihomo - Find "Mihomo Proxy" in the add-on store and click Install
The add-on works out of the box with a default configuration. For custom setups:
- Create
/config/mihomo.yamlin your Home Assistant config directory - Add your proxy configuration (see Configuration Template)
- Restart the add-on
# Example configuration
mixed-port: 7893
allow-lan: true
mode: rule
log-level: info
dns:
enable: true
enhanced-mode: fake-ip
nameserver:
- 8.8.8.8
- 1.1.1.1
proxies:
# Add your proxy servers here
proxy-groups:
# Add your proxy groups here
rules:
# Add your routing rules here
- MATCH,DIRECTFor a complete configuration reference, see the mihomo-default.yaml template in this repository.
| Service | Port | Description |
|---|---|---|
| HTTP Proxy | 7890 | HTTP(S) proxy server |
| SOCKS5 Proxy | 7891 | SOCKS5 proxy server |
| Mixed Proxy | 7893 | Combined HTTP(S) and SOCKS proxy |
| TProxy | 9898 | Transparent proxy (Linux) |
| DNS | 53 | DNS server |
| API | 9090 | RESTful API endpoint |
Access the Mihomo dashboard by navigating to:
http://homeassistant.local:9090Or use your Home Assistant IP address: http://YOUR_IP:9090
You can use web dashboards like:
- metacubexd - Official dashboard
- Yacd - Yet Another Clash Dashboard
- Clash Dashboard
Enable TUN mode for system-wide proxy (requires additional configuration):
tun:
enable: true
stack: system
auto-route: true
auto-redirect: trueEnable protocol sniffing for better traffic identification:
sniffer:
enable: true
sniff:
TLS:
ports: [443, 8443]
HTTP:
ports: [80, 8080-8880]# View add-on logs in Home Assistant
ha addons logs mihomo- Port conflicts: Ensure no other services are using the configured ports
- DNS issues: Try disabling the DNS server or changing the port
- Connection refused: Check if
allow-lanis set totrue
- π¦ Mihomo (Clash.Meta) Repository
- π Mihomo Documentation
- π Home Assistant
- π Report Issues
This repository keeps a change log using GitHub's releases functionality.
Releases are based on Semantic Versioning, and use the format
of MAJOR.MINOR.PATCH. In a nutshell, the version will be incremented
based on the following:
MAJOR: Incompatible or major changesMINOR: Backwards-compatible new features and enhancementsPATCH: Backwards-compatible bugfixes and package updates
Got questions?
You have several options to get them answered:
- The Home Assistant Discord server for general Home Assistant discussions
- The Home Assistant Community Forum
- Join the Reddit subreddit in /r/homeassistant
- Check out certains FAQs on the wiki
You could also open an issue here on GitHub.
This is an active open-source project. We are always open to people who want to use the code or contribute to it.
We have set up a separate document containing our contribution guidelines.
Thank you for being involved! π
The original setup of this repository is by Ka Pui Cheung.
For a full list of all authors and contributors, check the contributor's page.
MIT License
Copyright Β© 2025 Ka Pui Cheung
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.