Agent guide · rapid-mlx 1.1.3

Run Crush with a Local Model on Mac

Run Crush with a local model on your Mac using one command. Rapid-MLX saves a private agent profile and starts a local model when needed.

One command to launch Crush

First install Rapid-MLX and install Crush. If you used the install script, restart Terminal or run export PATH="$HOME/.local/bin:$PATH" first. Then run:

$ rapid-mlx launch crush

Tomorrow: Run rapid-mlx launch crush again. Rapid reuses the saved profile, model, loopback key and port. It does not change your existing Crush configuration. To remove only Rapid's private profile, run rapid-mlx launch crush --remove.

Mac unified memoryModel choicesDownload and memory guidance
16 GBqwen3.5-4b-4bit fits 16 GB per the registry; not verified live on a 16 GB Mac.About 3 GB download.
18–36 GBqwen3.5-9b-4bit default; start with qwen3.5-4b-4bit on 18–24 GB.About 6 GB for 9B or 3 GB for 4B.
48 GB+qwen3.5-9b-4bit responsive default; qwen3.8-27b-4bit higher-capability option.About 6 GB for 9B or 16 GB for 27B; 27B needs roughly 20–26 GB free unified memory.

Download size is not runtime memory use. Leave room for the client, context and other applications; keep context short when memory is tight.

First reply: The first reply can take longer than later turns: an uncached model must download, the server must load it, and the agent may send a long prompt that takes time to prefill. Wait for the model to become ready; there is no fixed first-reply time. A warm, cached model is usually quicker.

Quick answer

How do I use Crush with a local model on Mac? Install Rapid-MLX, then run rapid-mlx launch crush. The same command reconnects on another day; --remove removes Rapid's private profile.

The agent hub covers the other supported agents. The manual setup below is useful when you intentionally want to edit your regular agent configuration.

Quick start

Install Crush 0.98.1. Start the server and keep it running while you configure and use Crush.

$ rapid-mlx serve qwen3.5-4b-4bit
$ rapid-mlx agents crush --setup
$ crush run --model rapid-mlx/qwen3.5-4b-4bit "Use a tool to inspect this directory, then summarize it."

Setup writes ~/.config/crush/crush.json, or $XDG_CONFIG_HOME/crush/crush.json when that variable is set. CRUSH_GLOBAL_CONFIG takes precedence and uses its directory instead. Use --base-url http://127.0.0.1:PORT/v1 for another port, --model to specify the server alias, and --dry-run to preview the file.

Connection

The generated JSON registers the rapid-mlx provider as openai-compat, with a /v1 base URL and a model entry containing its context window. It also selects that model as Crush's large model. For a keyed server, export RAPID_MLX_API_KEY before setup and before starting Crush; the file stores an environment reference.

Crush 0.98.1 prefers the newer crushrc format. Its configuration guide still supports JSON. A project .crushrc or global crushrc can override the JSON model selection. Check the model shown by crush models if another provider is selected. Setup sets a five-minute request timeout for the large agent prompt on smaller Macs.

Check it

$ rapid-mlx agents crush --test

This runs the integration checks and a headless Crush request against the local model.