How to run mini-me on razorbill
This guide shows how to point mm at razorbill, an MLX model server for Apple Silicon Macs (command rzb, no Python), through its OpenAI-compatible endpoint, and how to let mm start and stop it. It assumes rzb is built and installed on the Mac (razorbill's scripts/install.sh puts it in /usr/local/bin) and that you know how to build mm.
Steps
-
Download a model and start the server.
rzb servelistens on127.0.0.1:7920and loads a model on the first request that names it:rzb models pull mlx-community/Qwen3-4B-4bit rzb serve -
Write the agent file:
provider: razorbill model: mlx-community/Qwen3-4B-4bit -
Run
mmwith it and check the banner:provider: razorbill. rzb does not report the context window, so the banner saysctx: unknown. SetcontextWindow:to the model's window if you want compaction to be based on it.
Let mm start rzb
With autoStart, you skip step 1's rzb serve: when nothing answers at the agent's address, mm starts rzb serve there, downloads the model with rzb models pull when rzb does not list it, and stops the server when the last mm session that uses it exits.
provider: razorbill
model: mlx-community/Qwen3-4B-4bit
razorbill:
autoStart: true
# config: rzb-server.yaml # rzb serve --config, relative to this file
- On the Mac only. rzb runs on macOS (Apple Silicon). The start works only when
mmitself runs on the Mac. It does not work whenmmruns in a container or a Docker sandbox: theremmstarts nothing, and prints[warning: razorbill.autoStart: rzb runs on macOS only …]when no server answers. Startrzbon the Mac yourself in that case (see the next section). - Your own server is left alone. A server you started yourself (for example
rzb servein a terminal) is used as is and never stopped. - Shared between sessions. Several
mmsessions on the same address share one server. The output ofrzb serveand ofrzb models pullgoes to~/Library/Caches/mm/rzb/127.0.0.1-7920/rzb.log. - Another binary or settings.
server:names therzbexecutable (default:rzbon thePATH, then/usr/local/bin/rzb).config:is rzb's server configuration (declared models, defaults, limits).serverArgs:adds any other flag.startTimeout:(default15m) bounds the start and the download.
Variants
- From a container or a Docker sandbox. Start rzb on the Mac on every interface, with a key since it is then reachable from your network:
RZB_API_KEY=… rzb serve --host 0.0.0.0. With nobaseUrlanswering,mmfalls back tohttp://host.docker.internal:7920/v1by itself. Export the same key inRZB_API_KEYwheremmruns. In a sandbox, allowlocalhost:7920in the network policy. - A protected server. rzb checks
Authorization: Beareron every route but/healthwhen itsRZB_API_KEYis set.mmreadsRZB_API_KEYtoo (or the variable named underapiKeyEnv). A refused key is a start-up warning naming the variable. - Another model. Set
model:to an id exactly asGET /v1/modelslists it (curl -s localhost:7920/v1/models): a Hugging Face id in MLX format, or a short name declared in rzb's configuration. A model rzb does not list is a start-up warning,model "…" is not downloaded — rzb models pull …: the first question would download it, and the watchdog may give up before the download ends. - Write the file with the wizard.
mm init --provider razorbilllists the server's models and, on this machine, asks whethermmshould start rzb (--autostart, default yes). See How to create an agent. - Reasoning. rzb obeys
chat_template_kwargs.enable_thinking, and it wins overreasoning_effort. See How to turn a model's reasoning off. - Memory. rzb unloads an idle model itself (its
keep_alive, 10 minutes by default). It has no unload route, so/unloadand theunload_modeltool cannot free it sooner.
See also
- The
razorbillkeys: configuration reference. - Why each server has its own provider entry: providers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|