Run local models on your Mac

Portato is a menu bar app for chat and coding work with models that run on your own machine. It is built on mlx-node, an open source engine you can also use from the terminal, over HTTP or from TypeScript.

  • macOS 26.2 or newer on Apple Silicon
  • Preview builds for Windows ARM64 and Linux arm64
  • Free and open source

November card spending category breakdown

Inspect
Here is my November card statement. Break down my spending by category in a table, with the total and share of the month for each category.
statement-2026-11.pdf1 page · 144 KB

Here's your November 2026 spending by category (all 31 transactions, total $3,696.33):

CategoryAmountShare
Housing (rent)$1,850.0050.05%
Travel (Coastline Air, Seaside Inn)$437.0011.82%
Groceries$383.4610.37%
Utilities (power, water, internet, phone)$248.556.72%
Dining out$243.906.60%
Shopping (clothing, books, home)$239.706.48%
Transportation (transit, gas, parking, taxi)$138.103.74%
Health (pharmacy, dental)$78.652.13%
Fitness (gym)$39.001.06%
Subscriptions (video, music, news, storage)$37.971.03%
Total$3,696.33100%

Rent alone is half the month. The trip (flight + hotel) is the second-largest chunk at ~12%.

48.0 s · 3,970 tokens · 96.3 tok/s
Shift Enter New line
Here is my November card statement. Break down my spending by category in a table, with the total and share of the month for each category.
statement-2026-11.pdf1 page · 144 KB

Here's your November 2026 spending by category (all 31 transactions, total $3,696.33):

CategoryAmountShare
Housing (rent)$1,850.0050.05%
Travel (Coastline Air, Seaside Inn)$437.0011.82%
Groceries$383.4610.37%
Utilities (power, water, internet, phone)$248.556.72%
Dining out$243.906.60%
Shopping (clothing, books, home)$239.706.48%
Transportation (transit, gas, parking, taxi)$138.103.74%
Health (pharmacy, dental)$78.652.13%
Fitness (gym)$39.001.06%
Subscriptions (video, music, news, storage)$37.971.03%
Total$3,696.33100%

Rent alone is half the month. The trip (flight + hotel) is the second-largest chunk at ~12%.

48.0 s · 3,970 tokens · 96.3 tok/s
Shift Enter New line
This is Portato's own interface, showing a reply recorded from Qwen3.8-27B on an M5 Max. The card statement is made up. The speed is from that one reply, not a benchmark.

Chat, coding work and a control panel in one app

Portato bundles the engine, the mlx command and a coding agent. You need no Node.js and no terminal to start. Each picture is one of Portato's own components, showing data recorded from real sessions, not a benchmark.

  • Chat with a local model

    Attach text files, pictures and PDFs. Here the model reads a photo of a letter in Japanese.

  • Install models from a catalog

    Or point Portato at model files you already have on disk.

  • Every turn is measured

    Speed, token use and failures, by model and time range.

  • Let an agent work in a folder

    It reads, edits and runs commands in the folder you point it at. Each command shows its output.

  • Watch speculative decoding

    See how many drafted tokens each step keeps.

  • It runs on your machine

    The engine listens on 127.0.0.1 and asks for a token. The Control Panel opens no port.

The engine inside is mlx-node

Portato is one way in. The same engine installs from npm as the mlx command, an HTTP server and TypeScript packages. The APIs are TypeScript on a Rust and C++ native layer, and nothing runs Python at runtime.

Node.js 22.19 or newer. Apple Silicon with macOS 26.2 or newer. CUDA is a preview.

Read the quickstart

Terminal
A replay of a recorded quickstart run. Output is shortened and the home folder is written as ~.
  1. Command: npm install --global @mlx-node/cli. added 52 packages in 5s
  2. Command: mlx download model --model Qwen/Qwen3-0.6B. Model: Qwen/Qwen3-0.6B Output: ~/.mlx-node/models/qwen3-0.6b Downloading 9 file(s) (~1.41 GB)... Model downloaded successfully!
  3. Command: mlx serve --port 8080. [mlx] models dir: ~/.mlx-node/models | listening on http://127.0.0.1:8080 | discovered 1 model(s) | default: qwen3-0.6b [mlx] paged KV disk cache: on Press Ctrl+C to stop.

What the engine does

Many chats share one model
Requests to the same model decode together in one batch, up to 4 chats on Qwen3.5-family models and 8 on Macs with 256 GB or more.
Models bigger than memory
Large mixture-of-experts models keep their experts on the SSD and read only the ones each token needs.
A cache that survives restarts
Chat state is kept on disk, so a restarted server does not read the whole history again.
GGUF files load as they are
K-quant weights are repacked into MLX layout in memory, and no second copy of the model is written to disk.
Speculative decoding
Some models guess a few tokens ahead with extra heads or a small draft model, then check the guesses in one pass.
Context up to a million tokens
Qwen3.5-family models and Qwen3.8-Flash-Next take --max-context up to 1,048,576 tokens when memory holds it.

One repository: the app, ten packages and the engine

Everything here is built from the same source tree. Pick a package to see what it does and how to call it.

  • packages/desktop

    Portato, the desktop app. It bundles everything below.

    Meet Portato
  • packages/*

    Ten public packages on npm under @mlx-node. Each has a page in the docs.

    Open the quickstart
  • crates/*

    The native engine in Rust and C++ on top of MLX, loaded by the packages as @mlx-node/core.

    Read the architecture notes

@mlx-node/cli

The mlx command. Download, convert and serve models, and run a coding agent on a local model.

npm install --global @mlx-node/cli
Read the docs for @mlx-node/cli
terminalbash
mlx download model --model Qwen/Qwen3-0.6B
mlx serve --port 8080
mlx agent
mlx launch claude

mlx agent runs a coding agent on a local model. mlx launch claude runs Claude Code on one.

@mlx-node/lm

Load a model and keep a chat session in your own process. Streaming, tool calls, images and embeddings use the same package.

npm install @mlx-node/lm
Read the docs for @mlx-node/lm
chat.tsts
import { homedir } from 'node:os';
import { join } from 'node:path';

import { loadSession } from '@mlx-node/lm';

const session = await loadSession(join(homedir(), '.mlx-node', 'models', 'qwen3-0.6b'));
const opts = { config: { reasoningEffort: 'none' } };

const first = await session.send('Write a haiku about TypeScript.', opts);
console.log(first.text);

const followUp = await session.send('Make it shorter.', opts);
console.log(followUp.text);

@mlx-node/server

The OpenAI Responses API and the Anthropic Messages API on 127.0.0.1. mlx serve starts it; the package lets you start it from your own code.

npm install @mlx-node/server
Read the docs for @mlx-node/server
host.tsts
import { createInferenceHost } from '@mlx-node/server/host';

// Finds the models in ~/.mlx-node/models and listens on 127.0.0.1.
const host = await createInferenceHost({ port: 8080 });
console.log(host.url);
console.log(host.models.map((model) => model.name));

// Later: stop the server and close the model caches.
await host.close();

@mlx-node/vlm

Read a page with PaddleOCR-VL. Qianfan OCR and the PP-StructureV3 pipeline cover layout and tables.

npm install @mlx-node/vlm
Read the docs for @mlx-node/vlm
ocr.tsts
import { readFile } from 'node:fs/promises';
import { homedir } from 'node:os';
import { join } from 'node:path';

import { VLModel } from '@mlx-node/vlm';

const ocr = await VLModel.load(join(homedir(), '.mlx-node', 'models', 'paddleocr-vl'));
console.log(await ocr.ocr(await readFile('page.png')));

@mlx-node/asr

Speech to text with Qwen3-ASR, for audio files, live streams and meetings.

npm install @mlx-node/asr @mlx-node/tts
Read the docs for @mlx-node/asr
transcribe.tsts
import { homedir } from 'node:os';
import { join } from 'node:path';

import { Qwen3AsrModel } from '@mlx-node/asr';
import { readWav } from '@mlx-node/tts';

// A mono WAV file. transcribe() resamples it to 16 kHz.
const { samples, sampleRate } = await readWav('recording.wav');

const models = join(homedir(), '.mlx-node', 'models');
const asr = await Qwen3AsrModel.load(join(models, 'qwen3-asr-1.7b-mlx-mxfp4'));
const { text } = await asr.transcribe(samples, { sampleRate });
console.log(text);
await asr.dispose();

@mlx-node/tts

Qwen3-TTS streams audio while it is generated, with preset voices, designed voices and voice cloning.

npm install @mlx-node/tts
Read the docs for @mlx-node/tts
speak.tsts
import { homedir } from 'node:os';
import { join } from 'node:path';

import { loadTtsModel, WavWriter } from '@mlx-node/tts';

const models = join(homedir(), '.mlx-node', 'models');
const model = await loadTtsModel(join(models, 'qwen3-tts-12hz-0.6b-customvoice'));
const wav = await WavWriter.open('hello.wav', model.capabilities.sampleRate);
try {
  const speech = model.synthesizeStream('Hello from mlx-node.', { voice: 'vivian' });
  for await (const chunk of speech) {
    await wav.write(chunk);
  }
} finally {
  await wav.close();
  await model.dispose();
}

@mlx-node/rerank

Order documents by relevance to a query with Jina Reranker v3 or v3.5.

npm install @mlx-node/rerank
Read the docs for @mlx-node/rerank
rerank.tsts
import { homedir } from 'node:os';
import { join } from 'node:path';

import { loadReranker } from '@mlx-node/rerank';

const models = join(homedir(), '.mlx-node', 'models');
const reranker = await loadReranker(join(models, 'jina-reranker-v3.5-mlx'));
try {
  const { results } = await reranker.rerank({
    query: 'What is unified memory?',
    documents: ['CPU and GPU share a memory pool.', 'A city park.'],
    topN: 1,
  });
  console.log(results[0]); // { index, relevanceScore }
} finally {
  await reranker.dispose();
}

@mlx-node/privacy

Find and mask personal data on your own machine with a port of openai/privacy-filter. Eight kinds of entity.

npm install @mlx-node/privacy
Read the docs for @mlx-node/privacy
redact.tsts
import { homedir } from 'node:os';
import { join } from 'node:path';

import { PrivacyFilter } from '@mlx-node/privacy';

const models = join(homedir(), '.mlx-node', 'models');
const pf = await PrivacyFilter.load(join(models, 'privacy-filter'));
const { redacted } = await pf.redact('Email alice@example.com or call +1 555 0100.');
console.log(redacted); // labels like [private_email], [private_phone]

@mlx-node/trl

GRPO with four loss types, and SFT. For Qwen3 and the Qwen3.5 family on Apple Silicon.

npm install @mlx-node/trl
Read the docs for @mlx-node/trl
train.tsts
import { homedir } from 'node:os';
import { join } from 'node:path';

import { GRPOTrainer, loadLocalGsm8kDataset } from '@mlx-node/trl';
import { extractGsm8kAnswer, extractXmlAnswer } from '@mlx-node/trl';

// 1 when the <answer> tag holds the dataset's answer ("$" signs ignored), else 0.
function score(text: string, answer: string | null) {
  return extractXmlAnswer(text)?.replaceAll('$', '') === answer ? 1 : 0;
}

const trainer = await GRPOTrainer.create({
  modelPath: join(homedir(), '.mlx-node', 'models', 'qwen3-0.6b'),
  outputDir: 'outputs/grpo',
  groupSize: 4,
  lossType: 'grpo',
  enableThinking: false,
  rewardFunction: (outputs, answer: string | null) => {
    return outputs.map(({ completion }) => score(completion.text, answer));
  },
});
for (const { prompt, metadata } of await loadLocalGsm8kDataset('train', { limit: 100 })) {
  const answer = extractGsm8kAnswer(String(metadata?.raw_answer));
  const { step, meanReward } = await trainer.trainStep([prompt], answer);
  console.log({ step, meanReward });
}
await trainer.saveCheckpoint('final');

@mlx-node/agent

The model catalog and the local model list that the mlx agent and Portato use. The agent itself runs through mlx agent.

npm install @mlx-node/agent
Read the docs for @mlx-node/agent
catalog.tsts
import { homedir } from 'node:os';
import { join } from 'node:path';

import { discoverMlxModels, visibleCatalog } from '@mlx-node/agent';

// The models the first-run picker offers on a Mac or a machine without CUDA.
for (const entry of visibleCatalog()) console.log(entry.label, '-', entry.description);

// The chat models already on disk.
const local = await discoverMlxModels(join(homedir(), '.mlx-node', 'models'));
console.log(local.map((model) => model.agentModel.id));

The samples read models from ~/.mlx-node/models, where mlx download puts them. Each package page says how to get its model. @mlx-node/core is the native addon; the packages load it for you.

Measured on one M5 Max

One machine with 128 GB of memory. The setup and the source for each number are listed below.

Prefill speed against llama.cpp at 18,754 prompt tokens
1.569x
778.2 against 495.9 tok/s, same GGUF file1.268x at 6,219 tokens and 1.303x at 32,488
Total output of four chats on one model, against one chat alone
1.90x
115.03 tok/s summed across the fourThe ratio is the source's own. One trial per case
Prefill after a restart, for a 25,276-token chat
146ms
25,264 tokens came back from the disk cache36,255 ms on the first start. One trial
Peak memory while running a model of about 500 GB
29.7GiB
DeepSeek V4.1 Flash, experts read from the SSDIt is slow: 2.09 to 2.50 tok/s. Peak was 23.6 to 29.7 GiB across prompts
  1. 1.569x prefill. Qwen3.8-27B UD-Q4_K_XL, the same GGUF file in both runtimes. Matched 2,048-token prefill chunks; BF16 K/V in mlx-node, F16 in llama.cpp. Greedy, 512 new tokens, no speculative decoding, median of 3. M5 Max with 40 GPU cores and 128 GB, macOS 26.6.2, 2026-09-09. Issue #142
  2. 1.90x with four chats. Qwen3.8-27B UD-Q4_K_XL with its DFlash2 draft, 20 tools, thinking on, temperature 1.0. M5 Max, 128 GB, one trial per case, 2026-11-17. The four-chat row has its own one-chat baseline in the source, so do not divide 115.03 by a figure from another row. The source says to read its step ratio and not tok/s, because tok/s carries sampling luck; on 2026-11-18 its per-step ratio for four chats was 1.88x to 1.98x. Concurrent inference notes
  3. 146 ms. Same model, machine and date as line 2. One trial. Concurrent inference notes
  4. 29.7 GiB peak. DeepSeek V4.1 Flash UD-Q4_K_XL, a 9-file GGUF of about 500 GB. 32 new tokens, greedy, each prompt cold in a fresh process, other apps holding about 69 GiB. M5 Max, 128 GB, internal SSD, 2026-10-28. Model notes

Not every row wins. Gemma 4 12B prefill ran at 0.921x of llama.cpp at 7,733 prompt tokens, and Qwen3.8-27B decode at 0.999x at 32,488.

See every measurement

Models and platforms

Thirteen chat model families run today. Apple Silicon is the main target. CUDA is a preview.

A first model

Portato and the mlx agent offer these four chat models on first run.

Models the first-run picker offers
ModelDownloadOffered onNotes
Qwen3.8-27B17.5 to 18.6 GBEvery supported machineThe default. A 3.85 GB draft model comes with it
Inkling-2-Mini17.7 to 20.2 GBEvery supported machineA 1.0 GB draft model comes with it
Qwen3.8-Flash-Next112.2 GB96 GiB of RAM or moreExperts are read from the SSD
Hy4-flash169.4 GB (macOS build)96 GiB of RAM or moreExperts are read from the SSD. A 6.24 GB draft model comes with it on macOS

Every chat model family

These families come from nine makers.

Pick a maker to see only its families. Arrow keys move between makers.

Qwen
Qwen3
Qwen3.5, 3.6, 3.8 dense
Qwen3.5, 3.6 MoE
Qwen3.8-Flash-Next
Google
Gemma 4
Meta
Muse-Glimmer 30B
Liquid AI
LFM2, LFM2.5
LFM2.5-8B-A1B
IFM
K2-Horizon
NVIDIA
Nemotron 3.5 Lightning
DeepSeek
DeepSeek V4.1 Flash
Thinking Machines Lab
Inkling-2-Mini
Tencent
Hy4-flash

The model guide lists what each family supports, with sizes and context limits. Open the model guide

The marks are trademarks of their makers. Showing one does not mean its maker endorses mlx-node.

Platforms

Platform support
PlatformBackendStatusWhat you get
macOS 26.2 or newer on Apple SiliconMetalSupportedInference, training, images and audio. npm binary and the Portato app
Linux arm64 (glibc) on NVIDIA DGX SparkCUDA 13PreviewInference only. npm binary and a Portato preview build
Windows ARM64 on NVIDIA RTX SparkCUDA 13.4PreviewInference only. npm binary and a Portato preview build

x86_64 and Intel Macs are not supported. Read the platform notes

Questions people ask first

  • Portato is the desktop app built on mlx-node. It lives in the menu bar, bundles the engine, the mlx command and the agent, and has a Control Panel for models, sessions, speed and caches.

Open an issueAsk on GitHub if your question is not here.

Download Portato, or start from the terminal

The app needs no setup. The mlx command takes one npm install.

Free and open source. Apple Silicon first, CUDA in preview.