Skip to content

Muffin quick start

Source files: 10 · checked against muffin v0.3.0
  • muffin/crates/muffin/src/pages/overview.rs
  • muffin/crates/muffin/src/pages/proxies.rs
  • muffin/crates/muffin/src/pages/profiles.rs
  • muffin/crates/muffin/src/pages/connections.rs
  • muffin/crates/muffin/src/pages/diagnostics.rs
  • muffin/crates/muffin/src/pages/settings.rs
  • muffin/crates/muffin/src/shell_env.rs
  • muffin/crates/muffin/src/sysproxy.rs
  • muffin/crates/muffin-service/src/profiles.rs
  • muffin/crates/muffin-service/src/convert.rs

This page takes a freshly installed Muffin to a working connection. You need a subscription URL from your provider. It may serve an Etemenanki subscribe file, the format described in Subscribe files, or a subscription in another client’s format, such as a Clash (mihomo) profile or a list of share links, which Muffin converts; see Profiles.

  1. Start Muffin from the application menu, Launchpad or the Start menu. The window opens on the Overview, and Muffin starts its service. Without a profile, the Profile card shows Import a Profile, and the proxy already runs, sending everything direct.

  2. Import the subscription. Open Profiles, paste the URL into Profile URL and click Import. If you copied the link before opening the page, Muffin offers it in a banner instead: click Import there. Muffin downloads the subscription, converts it if it is in another client’s format, checks that the kernel accepts it, and saves it. The first profile you import becomes the active one; when its route groups match by geosite or geoip, as a converted profile’s do, Muffin first downloads the geodata files they need. The profile’s details show where it came from, when it was updated and, if the provider sends them, the traffic used and the renewal date.

  3. Pick a node. Open Proxies. The left column lists the route groups: Default carries the traffic no rule sends elsewhere, and in Rule mode the profile’s own groups follow it. Select a group, then click a node to send that group’s traffic through it. Test All measures how long each node takes to accept a TCP connection; Hysteria 2 and WireGuard nodes run on UDP, show UDP and are not measured.

  4. Send traffic through Muffin. On the Overview, turn on System Proxy. Browsers and other programs that honour the system proxy now use Muffin, and the sidebar says Connected. To cover every program, use TUN mode instead.

  5. Check it. The Overview shows the exit IP that websites see through Muffin, and how fast common sites answer. Open a web page, then Connections: each connection shows its destination, the route group that matched it and the node that carries it. If something does not work, Diagnostics › Run All Checks finds the step where the connection breaks; see Troubleshooting.

The mode decides how much traffic goes through the nodes. Switch it on the Overview, at the top of the Proxies page or in the tray menu:

Mode Use it when
Rule You want the provider’s route groups: for example, local sites direct and the rest through a node. This is the default.
Global Everything should go through one node, the one picked for Default.
Direct You want Muffin to stop proxying without turning it off.

Terminal programs read http_proxy, https_proxy and all_proxy instead. Settings › Network › Terminal shows the line that sets them, in the syntax of the shell you pick (bash, zsh, fish, PowerShell or cmd), and Copy copies it. For bash and zsh:

Terminal window
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7891

Programs with a proxy setting of their own can be pointed at 127.0.0.1:7890 (HTTP) or 127.0.0.1:7891 (SOCKS5).

Closing the window leaves Muffin in the tray, and the proxy keeps running. To start it with your session, turn on Settings › General › Launch at login, and Start in the background to start in the tray without the window. To stop everything, choose Stop Proxy and Quit in the tray menu.