Skip to content
Bettbox

Six steps from installed to working

Written in the order you actually do them, with what you should see after each one. Step two is where people get stuck most, so its failure modes are listed at the end.

About 10 minutesNo YAML knowledge neededWindows / macOS / Linux / Android

01/ The flow

Six steps, in order

You do not need to understand rule sets, DNS or fake-ip first. Get traffic flowing, then fill in the details.

  1. 1

    Install it and let it run

    Pick the package for your architecture from the table on the download page. Double-click on Windows, drag into Applications on macOS, allow unknown sources before installing the APK on Android.

    If macOS says the developer cannot be verified on first launch, right-click the app and choose Open. Once is enough.

  2. 2

    Add a subscription

    Open Profiles, add one, and paste the entire subscription link from your provider, then update. On success the profile shows how many nodes were parsed.

    Already have a Clash config? Use Import from file and point it at the local YAML. No subscription yet? The providers page lists a few third-party services.

  3. 3

    Choose a run mode

    There are three. Rule sends traffic according to the rules in your config — the everyday choice. Global sends everything through the proxy nodes. Direct proxies nothing, which is useful to check whether the client itself is the problem.

  4. 4

    Turn on TUN

    TUN takes over all system traffic with a virtual interface, so even apps that ignore the system proxy go through it. Desktop asks for authorization once; Android shows a VPN connection prompt.

    If only browsers and other system-aware apps need to proxy, the system proxy is enough — no TUN required.

  5. 5

    Confirm the exit actually changed

    Run the network check and see whether the exit IP and region match your node. Then check that Active connections on the home screen is non-zero. Both good means traffic is going through the proxy.

    If the exit did not change but connections are non-zero, a rule is sending it direct. Check the matched rule under Debug.

  6. 6

    Let it run for weeks

    On desktop enable launch at login and “keep running when the window closes” in the tray. On Android allow background activity and remove battery optimisation for the app. If the core exits abnormally it restarts itself and leaves the reason in the UI.

02/ Concepts

TUN or system proxy

The system proxy is for software that respects system network settings: browsers and most download tools read it, but some games, terminal programs and apps that manage their own networking do not. TUN catches every IP packet at the system level, which covers more ground at the cost of an extra virtual interface.

In practice: rule mode plus TUN for daily use, configured once. Fall back to the system proxy only when TUN conflicts with something, such as certain virtual machines or packet-capture tools.

You can enable both — the client points the system proxy at the TUN entry — but then troubleshooting gets harder because you cannot tell which layer is doing the work.

  • System proxy: lightweight, but only affects software that reads it
  • TUN: covers all traffic, needs one system authorization
  • Both: convenient, but keep only one while debugging

03/ Configuration

What a subscription actually is

A subscription is a URL that returns a Clash / Mihomo YAML: a node list, proxy groups and routing rules. The client fetches it periodically, so when your provider changes nodes, one update on your side syncs it.

Some providers hand out a Base64 universal subscription instead, which the client also detects and converts. If neither is recognised, the link was usually truncated, had whitespace pasted into it, or the subscription itself was reset.

How rules are written, how groups nest, and how DNS works with fake-ip are core concerns — collected on the Mihomo core page.

04/ Troubleshooting

The four places people get stuck

The subscription will not import. What now?
Check in this order: is the link complete (chat apps love to truncate it), does it contain stray spaces or line breaks, does your provider dashboard load, is the subscription still active. If all that fails, reset the subscription link in the dashboard and import the new one.
It says the port is in use
Usually another proxy client is still running. Quit it completely — right-click the tray icon and exit, do not just close the window — then start Bettbox. If you changed the mixed port manually, make sure it does not collide with something else, such as a local dev server.
TUN is on but some app still bypasses the proxy
Open the connection list under Debug and check whether that app’s connections appear and which rule they matched. Common causes: a direct rule in your config, or an app using its own network stack such as some game anti-cheat modules or bridged VM networking.
Do I have to start it manually every day?
No. With launch at login enabled the desktop app starts with your session and restores the last mode. On Android, allowing background activity keeps it resident. The lifecycle handling covers network changes and wake from sleep.

Still stuck

More answers are in the FAQ. If you are sure it is a client bug, attach the debug log and open an issue at GitHub Issues with your platform, version and reproduction steps.