Skip to content

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:

docker run -p 1974:1974 -v pion-data:/data ghcr.io/pavelhorak/pion
redis-cli -p 1974 PING     # +PONG

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-cli for 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] skipped and reuses the tracked src/ffi/metal_compute.metallib, so --metal-attention still works — you only need Xcode if you edit metal_compute.metal. To rebuild the shader, install Xcode from the App Store, then xcode-select -s /Applications/Xcode.app/Contents/Developer. - Linux (GPU): pixi run build calls /usr/local/cuda/bin/nvcc and links cudart. Install CUDA 12 + cudart first. - Linux (no GPU): use pixi run build-portable — GPU-free build (no nvcc, no cudart, portable x86-64-v2 binary). Disables --metal-attention and --cuda-attention but all KV / vector / AI commands work. It produces ./pion-server-dev, not ./pion-server — substitute that name in every command below.

git clone https://github.com/pavelhorak/pion.git && cd pion
pixi install
pixi run build                        # produces ./pion-server
./pion-server                         # port 1974, one shared keyspace

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 to 0.0.0.0. The bind address applies to every listener: the RESP port, the binary lane on port+1, the WAL replication stream on port+10000, and gossip/Raft. Note that replication and gossip are unauthenticated — anyone who can reach port+10000 can 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.0 and no password prints a warning at startup and means exactly what it says. See SECURITY.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 in SECURITY.md.

Next: First five minutes — the Redis wire, vector search, the semantic cache and the four Pion lines.