pi-splash-server

Run a local Splash server from Pi or omp, with the model and flags picked for your Mac (M1/M2 via splash-m1)

Packages

Package details

extension

Install pi-splash-server from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-splash-server
Package
pi-splash-server
Version
0.1.17
Published
Dec 4, 2026
Downloads
3,127/mo · 2,550/wk
Author
sady4850
License
MIT
Types
extension
Size
108.6 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "image": "https://raw.githubusercontent.com/sady4850/pi-splash-server/main/media/preview.png",
  "video": "https://cdn.jsdelivr.net/gh/sady4850/pi-splash-server@main/media/demo.mp4",
  "extensions": [
    "./extensions/splash.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-splash-server

Run a local Splash server from inside Pi or omp, with the model and flags picked for your Mac. On M1/M2 it drives splash-m1, on M3 and newer official Splash.

/splash start in Pi on an M1 Pro: pick a quant, the server loads in the background, the session switches to it

Splash itself already writes a Pi provider (splash-m1 pi), but the server has to be started by hand with flags you have to know. This package starts it in the background, shows download and load progress in Pi's status bar, and switches the session to it when it is ready.

Requirements

  • Apple silicon Mac. M1/M2 need macOS 26.4 or newer (splash-m1).
  • The Splash runtime, /splash install:
    • M1/M2: after you confirm, it runs the official splash-m1 installer of the latest release (install-m1.sh from paperniuk/splash) in the background, with progress in the status bar. The result is the same as installing by hand: ~/Library/Application Support/Splash-M1/<version> and a splash-m1 command in /opt/homebrew/bin or ~/.local/bin, so the terminal and Pi share one install. By hand: curl -fsSL https://github.com/paperniuk/splash/releases/latest/download/install-m1.sh | sh
    • M3 and newer: it puts brew install incoai/tap/splash into Pi's editor as a !! shell line; you see it and press Enter.
  • Disk for the model: 11-23 GB depending on the tier (weights plus a 3.9 GB draft model), and some more for Splash's SSD prompt cache (~25 GB free is comfortable).

Install

pi install npm:pi-splash-server

Update with pi update. To try it without installing: pi -e npm:pi-splash-server.

Use

In Pi:

/splash doctor         chip, memory, disk, runtime, recommended model and flags, what is left to download
/splash start [model]  start the recommended model, or any repo or repo:QUANT, in the background and switch to it
/splash                status and the next step
/splash use            switch to a Splash server started outside Pi
/splash bench [--long] measure speed and memory use on the running server
/splash bench share    open a prefilled GitHub issue with the last bench report
/splash bench compare  compare the last two bench reports (or two named JSON files)
/splash stop           stop the server
/splash log            last lines of the server log
/splash install        install the runtime (M1/M2 directly, M3+ via a brew line in the editor)
/splash update         same for a newer runtime release

While you type /splash start, Pi lists models with their size and download status and marks the pick for your Mac. Type part of a name, like q5 or iq3, to filter. For Qwen3.8-27B picks, Pi compares quants in that family using the bf16 closeness and decode speed measurements in quants.md. If Splash serves a different model, /splash start <model> asks before switching to it. The recommended model uses the flags in your Mac's row below. Other listed models use their own flags when specified. Otherwise they start with --language-only (no vision weights) and, if your row has --max-memory, with that budget too. Splash fits as much context as the budget holds (about 90K tokens on a 32 GB M1 Pro with either MLX 4-bit model).

start and use switch the session to the Splash model; /model switches back, the server keeps running. When files are missing, start says how much it will download and how much disk is free, and asks first; the status bar then shows what, how much and how fast. Loading takes about one to two minutes; the first start also calibrates the Neural Engine on M1/M2. The server outlives Pi, so the next Pi session finds it ready.

On M1/M2, /splash update refuses while a Splash server runs: the installer replaces the files a running server loads from. Stop it, update, start again. Only one install runs at a time, across Pi and omp sessions; the others show its progress, and /splash start refuses until it is done.

Measure your Mac

/splash bench measures prompt processing, cache reuse, decode speed and memory use for any model started with /splash start <repo or repo:QUANT>. Close other heavy apps, plug in, and allow about 4 minutes, or longer with --long for a 32K prompt if the context allows it.

Decode with a draft model shows as 38.5 tok/s = 17.6 cycles/s × 2.19 tok/cycle: how many verify cycles the engine runs per second, times how many tokens each cycle yields. The first moves with the engine, the second with how well the draft guesses. The last test repeats the 1K prefill; if it runs 5% or more slower than at the start, the report says the Mac may be throttling.

When the model's experts stream from the SSD (a MoE larger than memory, or --expert-memory), each test also shows experts read 2.34 GiB/run: how much of the model Splash read from the SSD during that request. More reads usually mean slower and noisier runs.

To check an update, run /splash bench before and after it, then /splash bench compare. Each test that ran more than once shows within noise when the run ranges overlap and better or worse when they do not.

To share the result, run /splash bench share. It opens a bench report issue with the report filled in; nothing is sent until you press Submit. The report has the chip, memory, macOS, runtime, model, server flags (paths and keys removed) and the numbers.

What it picks

Qwen3.8-27B, by memory:

Memory Model Flags
64 GB+ unsloth/Qwen3.8-27B-GGUF:UD-Q5_K_S
36 GB+ unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M
32 GB mlx-community/Qwen3.8-27B-GPTQ-4bit --language-only --max-memory 21G
24 GB ISTA-DASLab/Qwen3.8-27B-GSQ-RCO-GGUF:IQ3_S --language-only
16 GB prism-ml/Ternary-Bonsai-2-27B-gguf:PQ2_0 --language-only

/splash doctor shows the evidence for each pick (measured on which Mac, or not yet). The table lives in data/recommendations.json. Reports from /splash bench on 16, 24 and 64 GB Macs are welcome. /splash start also offers Qwen3.8-Flash-Next GSQ Q2_0 for 64 GB Macs (66 GB download, experts streamed from SSD, measured by a user on M1 Max).

Ten Pi tasks over a small repository (explain it, find a script, edit the README, new sessions, -c follow-ups, server restarts), one run each, on an M1 Pro 32 GB with the same weights, mlx-community/Qwen3.8-27B-GPTQ-4bit, thinking on. Splash is splash-m1 1.7.3-m1 started by this package, with its DFlash2 draft; mlx-lm is mlx_lm.server 0.32.2 started the way @taoc/pi-mlx-models starts it, with no draft. All answers were right on both.

Splash mlx-lm
Decode 24.5 tok/s 9.3 tok/s
Prompt processing 91-166 tok/s 48-55 tok/s
All ten tasks, Pi wall time 329 s 1,057 s
First task on a cold server, start included 125 s 418 s
First token of a new session on a running server 0.7-0.8 s 0.6-1.0 s
Server start until the first token ~62 s ~35 s

mlx-lm answers at once and loads the model on the first request; Splash loads, warms up and checks its Neural Engine split before it says ready, then wins from the first task on. The draft model is a large part of the decode gap and exists only on the Splash side.

Settings

All optional, in ~/.pi/agent/splash/config.json:

Key Default
port 8000 Server port. The provider is splash, or splash-<port> on another port.
model recommended Model to start, e.g. mlx-community/Qwen3.8-27B-GPTQ-4bit or repo:VARIANT for GGUF.
flags recommended Extra serve flags, replacing the recommended ones.
stopOnExit false Stop the server when Pi exits.
keepAwake true Keep the Mac from idle sleep while the server runs (caffeinate -i).
launcher on PATH Path to splash-m1 or splash.

omp

The extension also loads in omp: omp plugin install pi-splash-server. If your omp config already has a provider named splash, rename it: the extension registers its own splash.

License

MIT