Pi Session Manager

Installation

Install Pi Session Manager on macOS, Windows, Linux, or as a headless CLI server.

Prerequisites

Pi must be installed for session resume and terminal integration. The session manager reads Pi's JSONL session files from ~/.pi/agent/sessions/.

Desktop App

Download the latest release from GitHub Releases.

macOS

ChipFile
Apple Silicon (M1/M2/M3/M4)Pi.Session.Manager_*_aarch64.dmg
IntelPi.Session.Manager_*_x64.dmg

Open the .dmg and drag Pi Session Manager to your Applications folder. On first launch, you may need to right-click → Open to bypass Gatekeeper.

Windows

FormatFile
Installer (recommended)Pi.Session.Manager_*_x64-setup.exe
MSIPi.Session.Manager_*_x64-setup.msi

Run the installer and follow the prompts. WebView2 is required (pre-installed on Windows 11).

Linux

FormatFile
Debian/Ubuntupi-session-manager_*_amd64.deb
AppImagepi-session-manager_*_amd64.AppImage
Fedora/RHELpi-session-manager_*_x86_64.rpm
# Debian/Ubuntu
sudo dpkg -i pi-session-manager_*_amd64.deb

# AppImage
chmod +x pi-session-manager_*.AppImage
./pi-session-manager_*.AppImage

# Fedora
sudo rpm -i pi-session-manager_*_x86_64.rpm

CLI / Headless Server

The pi-session-cli binary runs the backend without a GUI window — ideal for servers, remote access, or Docker deployments.

Download pi-session-cli from the Releases page (listed alongside the desktop builds).

chmod +x pi-session-cli
./pi-session-cli

This starts the HTTP server on http://0.0.0.0:52131 with the embedded frontend, WebSocket at /ws, and API at /api.

Docker

Build a statically-linked CLI binary using the included Dockerfile:

# Build the image
docker build -f Dockerfile.cli -t pi-session-cli .

# Extract the binary
docker cp $(docker create pi-session-cli):/pi-session-cli ./pi-session-cli
chmod +x pi-session-cli

Or run directly with Docker, mounting your Pi sessions directory:

docker run -d \
  -v ~/.pi:/root/.pi:ro \
  -p 52131:52131 \
  pi-session-cli

The Docker image uses musl for static linking, producing a binary with zero glibc dependency. This works on any Linux distribution, including older ones like CentOS 9.

Building from Source

Requirements

  • Node.js >= 20 with pnpm
  • Rust stable (via rustup)
  • Platform-specific dependencies (see below)

Platform Dependencies

macOS:

xcode-select --install

Ubuntu / Debian:

sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

Fedora:

sudo dnf install webkit2gtk4.1-devel libappindicator-gtk3-devel librsvg2-devel patchelf

Windows:

Build Steps

Clone and install

git clone https://github.com/Dwsy/pi-session-manager.git
cd pi-session-manager
pnpm install

Development mode

pnpm run tauri:dev

This starts both the Vite dev server (with HMR) and the Rust backend.

Production build

pnpm run tauri:build

Build artifacts are in src-tauri/target/release/bundle/.

Building the CLI

bash scripts/build-cli.sh

The CLI binary is output to target/release/pi-session-cli.

On this page