A desktop GUI for Pi, the AI coding agent.
Built with Tauri 2 + Svelte 5 — lightweight, fast, and native.
PATH, or placed in a backend/ folder alongside the Prism executable# Install dependencies
npm install
# Dev mode (hot-reload)
npm run tauri dev
# Production build
npm run tauri build
The installer will be in src-tauri/target/release/bundle/.
To create a self-contained build with Pi included:
src-tauri/backend/pi (or pi.exe on Windows)package.json, photon_rs_bg.wasm, theme/, export-html/, and docs/ from Pi's distbackend/ directory as a resourceIf no bundled backend is found, Prism will look for pi in your system PATH.
┌──────────────────────────────────┐
│ Tauri Shell │
│ (Rust — src-tauri/src/lib.rs) │
│ │
│ • Spawns Pi in --ws mode │
│ • Auth IPC (read/write creds) │
│ • URL opener │
│ • Process lifecycle │
└────────────┬─────────────────────┘
│ WebSocket (port 24193)
┌────────────▼─────────────────────┐
│ Svelte 5 Frontend │
│ (TypeScript + Vite) │
│ │
│ • Chat UI with markdown render │
│ • Theme engine (7 presets) │
│ • RPC client over WebSocket │
│ • Tool call & thinking display │
└──────────────────────────────────┘
| Provider | Auth Type | Models |
|---|---|---|
| Anthropic | API Key | Claude 4, Sonnet, Haiku |
| OpenAI | API Key | GPT-4o, o1, o3 |
| API Key | Gemini 2.5 Pro/Flash | |
| GitHub Copilot | OAuth | All Copilot-available models |
| OpenRouter | API Key | 200+ models |
| xAI | API Key | Grok |
| Mistral | API Key | Mistral Large, Codestral |
| Ollama | Local | Any local model |
Prism stores auth credentials in ~/.pi/agent/auth.json (same location Pi uses). No additional configuration needed — if Pi works from your terminal, Prism will work too.
MIT