Tool-using agents
Let a model request actions through your app’s APIs, read the results, and decide what to do next.

Mei runs language models on Apple Silicon and makes them available to your apps through an OpenAI-compatible API.
Native Swift, powered by MLX. No Python environment required. Tested on an M1 Max with 32 GB of memory.
Get started Mei 0.19.0 · Apple Silicon · macOS 15+ · MIT licensedMei runs the model on your Mac. Your app provides the tools and carries out the actions the model requests.
See how your app, Mei and the model fit together →Let a model request actions through your app’s APIs, read the results, and decide what to do next.
Build assistants that search information supplied by your app, summarize it, or extract data from text.
Write small scripts, process data, or make changes to a few lines of code.
Mei supports Inkling 2 Mini alongside Groot, Qwen and Ornith. Choose a model that fits your Mac and the work you want to do.
The Groot, Qwen and Ornith downloads below are repacks of existing, quantized MLX models. A repack changes the packaged files, for example by removing unused components or adjusting the file layout. The repacking step leaves the retained language-model weights unchanged. Each Mei configuration selects a fixed version and includes the settings we tested with it.

19B parameters · text-only · 4.5 bits/weight
Our suggested first model for a 32 GB M1 Max, with an automatic serving profile for local assistants and tool calls.
Uses hermitdave’s MLX version. We removed image-processing weights and unused multi-token prediction components, and corrected the settings describing weight precision. The retained language-model weights are unchanged.
Mei automatically loads Groot’s measured settings: 256-token prefill, conversation anchors off, stock decode kernels and eligible blocked prefill. No kernel flags are needed.
mei pull groot-19b-a3b-text
mei --model groot-19b-a3b-text
35B parameters · text-only · 4-bit weights
A 35B mixture-of-experts text model with 4-bit weights and an automatic serving profile.
Uses mlx-community’s 4-bit MLX version with the image-processing weights removed. The text weights, tokenizer and chat template are unchanged. This version accepts text only.
Mei automatically loads Qwen’s measured settings: 1024-token prefill on a fitting Mac and two conversation anchors. Smaller devices use the documented prefill fallback.
mei pull qwen3.6-35b-a3b-text
mei --model qwen3.6-35b-a3b-text
35B parameters · MLX · 4-bit weights
Ornith’s 35B mixture-of-experts model, with aligned 4-bit MLX weights and an automatic serving profile.
Uses Ornith’s 4-bit MLX version. We changed the file padding to align the stored weights. The weight values are unchanged.
Mei automatically loads Ornith’s measured settings: 1024-token prefill on a fitting Mac and conversation anchors off. Smaller devices use the documented prefill fallback.
mei pull ornith-1.5-35b-a3b
mei --model ornith-1.5-35b-a3b
26.4B parameters · text-only in Mei · NVFP4/MXFP8
A looped model that supports text chat and streaming tool calls. The tested bundle is about 19.5 GB and was qualified on a 32 GB M1 Max.
Uses nativ-community’s MLX bundle. Mei fetches the pinned revision and skips unused speculative decoding weights.
Mei applies automatic context sizing for the prompt and reply, 4,096-token default output cap, 128-token prefill and one active generation. This profile supports text chat, streaming and tool calls. Prefix reuse, image input, speculative decoding and constrained output are outside its scope.
mei pull inkling-2-mini
mei --model inkling-2-miniOn the original weights, 22/25 passed the task suite. The optional vocabulary Q4 scored 20/25 and uses less memory. Use its memory cache for repeated chat prompts.
mei pull inkling-2-mini-mei-q4
mei --model inkling-2-mini-mei-q4 --cache-mode memoryThese are mixture-of-experts models. Each token uses only part of the model, but Mei still needs memory for the full set of weights, the prompt and generated text.
Mei now sizes each request against available memory. Choose a context limit ↗
Chat and raw completions count the formatted prompt and reply against one ceiling. With a fixed 26,624-token ceiling, a 26,000-token prompt leaves 624 tokens for the reply.
Read contextCap and availableContextTokens from /v1/mei/status to see the model’s server ceiling and how much fits now. If Mei returns HTTP 503, request a shorter reply or retry when memory is available.
Mei is written in Swift and uses MLX through vMLX to run models on Apple Silicon. Each server process loads one model and responds to HTTP requests from your app.
It runs as a compiled executable, so you don’t need to install Python or manage a Python environment to use it.
It can stream generated text and return tool calls. Supported features depend on the model: Groot, Qwen and Ornith can also produce JSON using supported schema rules and reuse calculations from earlier requests. Inkling uses its separate text profile. Mei reads long prompts in chunks to limit memory use.
We test on an M1 Max with 32 GB of memory. Other Apple Silicon Macs can run Mei too. The model you can run and its speed depend on your Mac’s memory, the length of the prompt and the work you ask it to do.
Read more about how Mei fits into your app →
Supported API features and limits ↗Mei is a command-line server. Install it, download a model, then connect your own app or send an API request. Mei does not include a chat interface.
This installs stable Mei 0.19.0. You need an Apple Silicon Mac running macOS 15 or later.
brew install tijs/tap/meiManual install: Apple Silicon archive and checksum.
These commands use Groot, our suggested first model for the 32 GB M1 Max. Install the Hugging Face download tool first. If you already have the hf command, skip that first block.
brew install uv
uv tool install huggingface_hubmei pull groot-19b-a3b-text
mei --model groot-19b-a3b-textMei downloads a fixed version and loads its validated settings automatically. mei pull groot-19b-a3b-text --dry-run previews what it would download. Each server runs one model; stop it with Ctrl-C before switching models.
Set your OpenAI-compatible client’s base URL to http://127.0.0.1:8024/v1 and use the served model ID groot-19b-a3b-text.
curl http://127.0.0.1:8024/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "groot-19b-a3b-text",
"messages": [{
"role": "user",
"content": "Hello, Mei."
}]
}'CoCore supports Mei as an external model server. When it connects, it checks whether the selected model can handle tool calls and structured responses.
CoCore setup instructions ↗Mei defaults to --context-cap auto. Restart with a numeric cap to choose a fixed total. Set your client’s context window to the same value.
On the 32 GiB M1 Max, the auto ceiling is 65,536 for Groot, 32,768 for stock Inkling and Qwen text, and 26,624 for SenseNova, Ornith and Qwen with vision. Inkling Q4 uses 26,624 with its in-memory prefix cache.
mei --model groot-19b-a3b-text --context-cap 65536| Mac unified memory | Tokens | When to use it |
|---|---|---|
| 24 GB | 8,192 | Try if the weights fit. Leave room for macOS. |
| 32 GB | 26,624 | Fixed latency-oriented example. A greedy raw Inkling Q4 completion processed 26,368 input tokens in 134 seconds on an M1 Max. |
| 64 GB or more | 65,536 | Try a long prompt and check Memory Pressure in Activity Monitor. |
Every model shares its cap between the formatted prompt and generated reply. Earlier Groot, Qwen and Ornith releases allowed extra reply space. Read contextCap and availableContextTokens from /v1/mei/status to see the configured ceiling and current estimate.