← Catalog

pi-splash-server

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

Package

Install

Install with PiG

pig install npm:pi-splash-server

Install with Pi

pi install npm:pi-splash-server
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/sady4850/pi-splash-server/main/media/screenshot.png",
  "extensions": [
    "./extensions/splash.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.6 (README.md). PiG does not review it.

pi-splash-server

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

Pi fixing a bug with Qwen3.8-27B served by Splash on an M1 Pro

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.

Against plain mlx-lm

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.

(blank)Splashmlx-lm
Decode24.5 tok/s9.3 tok/s
Prompt processing91-166 tok/s48-55 tok/s
All ten tasks, Pi wall time329 s1,057 s
First task on a cold server, start included125 s418 s
First token of a new session on a running server0.7-0.8 s0.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.

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 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 suggests the measured Qwen3.8-27B quants (type part of a name, like q5 or iq3, to filter) with size, which one is recommended for which memory, what is already downloaded, and how each trades closeness to bf16 against speed (numbers in quants.md). To start a different model, run /splash stop first. Models from the list start with --language-only (no vision weights); the memory flags in the table below apply only to the model recommended for your Mac.

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.

The first session on a server sends one extra one-token request with Pi's system prompt and tools before its own. Splash keeps a state where that request ends, so every later new session starts from it: its first token comes in about 1 s instead of about 10 s on an M1 Pro. Splash 1.7.3 would not keep such a state for a system prompt and tools under 2,048 tokens, as Pi's are, unless the first message is a few words long.

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 and allow a few minutes, or longer with --long for a 32K prompt if the context allows it.

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:

MemoryModelFlags
64 GB+unsloth/Qwen3.8-27B-GGUF:UD-Q5_K_S
36 GB+unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M
32 GBmlx-community/Qwen3.8-27B-GPTQ-4bit--language-only --max-context 64K --max-memory 21G
24 GBISTA-DASLab/Qwen3.8-27B-GSQ-RCO-GGUF:IQ3_S--language-only
16 GBprism-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.

Settings

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

KeyDefault(blank)
port8000Server port. The provider is splash, or splash-<port> on another port.
modelrecommendedModel to start, e.g. mlx-community/Qwen3.8-27B-GPTQ-4bit or repo:VARIANT for GGUF.
flagsrecommendedExtra serve flags, replacing the recommended ones.
stopOnExitfalseStop the server when Pi exits.
keepAwaketrueKeep the Mac from idle sleep while the server runs (caffeinate -i).
launcheron PATHPath 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