minimlx

Local models,
at laptop speed.

A fast macOS command line for running Gemma 4, Qwen 3.6 and Qwen 3.8 entirely on your own machine, through Apple's MLX. Nothing leaves the device.

$pip install "minimlx[mtplx] @ git+https://github.com/bravenewxyz/minimlx"

What it does

Interactive chat

Streaming output, reasoning display, and a local tool loop — read, write, edit, grep, glob, ls, and bash.

Agentic coding

minimlx code runs one-shot programming tasks against your working tree with the same tools.

Voice conversation

Speak, transcribe, generate, speak back. Fully local, no cloud round trip.

Backend for Claude Code

minimlx serve speaks the Anthropic API, so Claude Code can run against a local model.

Speculative decoding

DFlash block-diffusion drafts, Google MTP drafters, and MTPLX builds that carry their own prediction head.

Prompt & KV caching

Cross-request prefix reuse, model aliases, and conversation logging out of the box.

Measured on an M5 Max

ModelBuildDecodePrefillPeak RAM
qwen38-27b-mtplx27B, 4/8-bit + MTP head 57 tok/s352 tok/s21.0 GB
qwen38-9b-4bit9B, 4-bit 98 tok/s358 tok/s5.3 GB
qwen38-9b9B, 8-bit 58 tok/s276 tok/s9.7 GB
qwen38-27b-4bit27B, 4-bit 32 tok/s234 tok/s15.5 GB
qwen38-27b27B, 8-bit 16 tok/s159 tok/s28.9 GB

MacBook Pro, Apple M5 Max, 128 GB unified memory. 300-token generations at --temp 0.7, decode rate from a cold model. Sustained load roughly halves these — an M-series laptop throttles well before the model does.

Getting started

# install (or clone first, if you want to hack on it)
$ pip install "minimlx[mtplx] @ git+https://github.com/bravenewxyz/minimlx"

# talk to it
$ minimlx chat
$ minimlx ask "explain crc32"
$ minimlx code "add a --json flag"

# point Claude Code at a local model
$ minimlx serve
$ export ANTHROPIC_BASE_URL=http://127.0.0.1:1234

Requires macOS on Apple Silicon and Python 3.11+.

In the terminal

minimlx chat running in a terminal, streaming a response with reasoning and tool output
minimlx chat — streaming output with reasoning and collapsible tool calls.