# Install mihomo with Homebrew, MacPorts, Nix, scoop, winget

Another rule-based tunnel in Go, formerly known as ClashMeta. Version 1.19.28 via Homebrew; verified 2026-07-08.

## Install

```sh
sudo av install brew:mihomo
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mihomo
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mihomo
```

  Evidence: MacPorts ports tree: net/mihomo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mihomo
```

  Evidence: nixpkgs package indexes: pkgs/by-name/mi/mihomo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/mihomo
```

  Evidence: Scoop official bucket manifest trees: bucket/mihomo.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id MetaCubeX.Mihomo -e
```

  Evidence: Windows Package Manager source index: MetaCubeX.Mihomo from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:mihomo
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mihomo>
- **Version:** 1.19.28
- **Source summary:** Another rule-based tunnel in Go, formerly known as ClashMeta
- **Homepage:** <https://wiki.metacubex.one>
- **Repository:** <https://github.com/MetaCubeX/mihomo>
- **Upstream docs:** <https://wiki.metacubex.one/en>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/MetaCubeX/mihomo/archive/refs/tags/v1.19.28.tar.gz>
- **Last updated:** 2026-07-08T03:44:14Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- mihomo (cli)
- mihomo (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Service: declared
- Caveats: You need to customize $HOMEBREW_PREFIX/etc/mihomo/config.yaml.
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.19.28
- Package-manager updated: 2026-07-08
- Local data: ok
- Upstream repository: https://github.com/MetaCubeX/mihomo
- Upstream latest detected: v1.19.28 (current)
## Project history and usage

mihomo is the MetaCubeX rule-based network tunnel distributed by package managers under the description "formerly known as ClashMeta." MacPorts describes it as a Go program that supports HTTP, SOCKS, VMess, VLESS, Shadowsocks, Trojan, Hysteria, and other protocols, with built-in DNS server functionality including DoH and DoT support.

### Project history

Its operational model comes from the Clash-family proxy configuration style. The documentation organizes the system around proxy ports, SOCKS and mixed listeners, TUN and redirect modes, proxy providers, proxy groups, rule providers, route rules, DNS behavior, and an external controller API. The general configuration page shows common runtime controls such as LAN access, authentication for HTTP/SOCKS/mixed proxies, rule/global/direct modes, IPv6, process matching, and a REST-style external controller on a local address.

### How it is used

Package-manager adoption reflects its role as a proxy core rather than a desktop client: Homebrew, MacPorts, Nix, Scoop, and winget package the executable, while separate dashboards and clients can drive it through configuration files and its controller API. In practice it is used as the engine under rule-based proxy setups on desktops, servers, and gateways, especially where users need protocol diversity, subscription/provider handling, DNS policy, and route selection in one daemon.

### Sources

- <https://formulae.brew.sh/formula/mihomo>
- <https://github.com/MetaCubeX/mihomo/releases>
- <https://ports.macports.org/port/mihomo/details/>
- <https://wiki.metacubex.one/en/>
- <https://wiki.metacubex.one/en/config/general/>


## Security Notes

formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/mihomo/config.yaml, $XDG_CONFIG_HOME/mihomo/config.yaml
- Windows: %USERPROFILE%\.config\mihomo\config.yaml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mihomo
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - mihomo: normalized package name match | nixpkgs package indexes: pkgs/by-name/mi/mihomo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - mihomo: normalized package name match | MacPorts ports tree: net/mihomo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/mihomo: normalized package name match | Scoop official bucket manifest trees: bucket/mihomo.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - MetaCubeX.Mihomo: normalized package name match | Windows Package Manager source index: MetaCubeX.Mihomo from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [gost](https://www.automicvault.com/pkg/brew/gost/) - Shares av.db curated category or tags: cli, go, networking, proxy, tunnel.
- [overtls](https://www.automicvault.com/pkg/brew/overtls/) - Shares av.db curated category or tags: cli, networking, proxy, tunnel.
- [trojan-go](https://www.automicvault.com/pkg/brew/trojan-go/) - Shares av.db curated category or tags: cli, go, networking, proxy.
- [brook](https://www.automicvault.com/pkg/brew/brook/) - Shares av.db curated category or tags: cli, networking, proxy.
- [connect](https://www.automicvault.com/pkg/brew/connect/) - Shares av.db curated category or tags: cli, networking, proxy.
- [dante](https://www.automicvault.com/pkg/brew/dante/) - Shares av.db curated category or tags: cli, networking, proxy.
- [geph4](https://www.automicvault.com/pkg/brew/geph4/) - Shares av.db curated category or tags: cli, networking, proxy.
- [ghostunnel](https://www.automicvault.com/pkg/brew/ghostunnel/) - Shares av.db curated category or tags: cli, networking, proxy.

## Combined YAML source

View the package source record on GitHub. [combined/mihomo.yml](https://github.com/automic-vault/db/blob/main/combined/mihomo.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
