Install¶
Pion is one binary. Pick the path that matches your machine; every path ends
at a server answering PING on port 1974. The text on this page is the
README's own install section, included at build time.
macOS 14 or later on Apple Silicon:
brew install pavelhorak/tap/pion
brew services start pion # 127.0.0.1:1974; restarts at login and after a crash
redis-cli -p 1974 PING # +PONG
The service starts with --kvcache --metal-attention --nle-embed, so the
prompt cache (the four PionPromptCache lines) and the semantic cache work
against it as installed. As a service, Pion keeps its WAL, snapshots and crash log in
$(brew --prefix)/var/pion and logs to $(brew --prefix)/var/log/pion.log.
pion-server is also on your PATH; run by hand, it writes its data to the
directory you start it from.
macOS 14 or later on Apple Silicon, without Homebrew:
curl -fsSL https://github.com/pavelhorak/pion/releases/latest/download/pion-macos-arm64.tar.gz | tar xz
cd pion-*-macos-arm64
./pion-server.sh # port 1974
redis-cli -p 1974 PING # +PONG
Launch through pion-server.sh, not bin/pion-server: the wrapper points the
binary at the runtime libraries the tarball bundles. Linux tarballs for x86_64
and arm64 come from the same release (swap the file name for
pion-linux-x86_64.tar.gz or pion-linux-arm64.tar.gz) and need glibc 2.38 or
newer. Checksums, the Metal shader library and building a tarball yourself:
doc/operations.md §5.
The client for the prompt-cache path. It needs Pion running with
--kvcache --metal-attention: the Homebrew service does that; otherwise
start the binary with those flags.
Runnable end to end against a running Pion:
examples/prompt_cache_demo.py times vanilla
mlx-lm's cold prefill against five cached requests, each followed by a full
answer, and prints every one. Install with pip install 'pion-vllm-mlx[mlx]'.
Each release publishes a multi-arch image (linux/amd64 and linux/arm64) to GitHub Container Registry:
Data (WAL, snapshots, blob arenas) lives in the /data volume. The image runs
with --epoll, because Docker's default seccomp profile blocks io_uring, and
ships no Python, so features that need an embedding model need a host install.
Building the image yourself, bind mounts and io_uring:
doc/operations.md §5.
Prerequisites: - pixi builds and runs everything here —
curl -fsSL https://pixi.sh/install.sh | bash, then restart your shell. It brings its own Mojo toolchain; nothing else needs installing. -redis-clifor the snippets below (brew install redis/apt install redis-tools). Any Redis client works — Pion speaks RESP2 and RESP3. - macOS: the Metal shader step (xcrun metal) needs full Xcode (not just Command Line Tools). Without it the build prints[Metal] skippedand reuses the trackedsrc/ffi/metal_compute.metallib, so--metal-attentionstill works — you only need Xcode if you editmetal_compute.metal. To rebuild the shader, install Xcode from the App Store, thenxcode-select -s /Applications/Xcode.app/Contents/Developer. - Linux (GPU):pixi run buildcalls/usr/local/cuda/bin/nvccand linkscudart. Install CUDA 12 + cudart first. - Linux (no GPU): usepixi run build-portable— GPU-free build (no nvcc, no cudart, portable x86-64-v2 binary). Disables--metal-attentionand--cuda-attentionbut all KV / vector / AI commands work. It produces./pion-server-dev, not./pion-server— substitute that name in every command below.
Before you expose it to a network¶
Security model, in one paragraph. Pion listens on 127.0.0.1 by default and there is no TLS. Setting a password (
--requirepass-file,PION_REQUIREPASS, or--requirepass) switches the default to all interfaces, following Redis's protected-mode convention — a password is taken as the signal that you intend to serve remotely. Override either way with--bind <addr>; an address that does not parse is a startup failure, never a silent fall back to0.0.0.0. The bind address applies to every listener: the RESP port, the binary lane onport+1, the WAL replication stream onport+10000, and gossip/Raft. Note that replication and gossip are unauthenticated — anyone who can reachport+10000can stream the WAL — so put those behind a private network, and terminate TLS at a proxy if you need encryption in transit (the tested recipe). Running with--bind 0.0.0.0and no password prints a warning at startup and means exactly what it says. SeeSECURITY.md. No telemetry: Pion never phones home — no update check, no analytics — and connects out only to what you configure or enable; the full list is inSECURITY.md.
Next: First five minutes — the Redis wire, vector search, the semantic cache and the four Pion lines.