PiSovereign Documentation

A self-hosted, privacy-first AI assistant platform — deploy anywhere with Docker Compose.

Welcome to the official PiSovereign documentation. This guide covers everything from first deployment to production operations and development.


Introduction

PiSovereign runs a complete AI assistant stack on your own hardware. All inference stays local via Ollama — no data ever leaves your network. It deploys as a set of Docker containers on any Linux or macOS host and is optimized for the Raspberry Pi 5 with Hailo-10H NPU.

Core Principles:

  • Privacy First — All processing happens locally on your hardware
  • GDPR Compliant — No data leaves your network
  • Open Source — MIT licensed, fully auditable, #![forbid(unsafe_code)]
  • Extensible — Clean Architecture with Ports & Adapters

Key Features

FeatureDescription
Local LLM InferenceOllama with dynamic model routing by task complexity
Signal & WhatsAppBidirectional messaging with voice message support
Voice ProcessingLocal STT (whisper.cpp) and TTS (Piper), optional OpenAI fallback
Calendar & ContactsCalDAV/CardDAV (Baïkal, Radicale, Nextcloud)
EmailIMAP/SMTP with any provider (Gmail, Outlook, Proton Mail)
Weather & TransitOpen-Meteo forecasts, German public transit via HAFAS
Web SearchBrave Search with automatic DuckDuckGo fallback
Persistent MemoryRAG with embeddings, decay, deduplication, XChaCha20 encryption
RemindersNatural language scheduling with morning briefings
Agentic ModeMulti-agent orchestration for complex tasks with parallel sub-agents
Secret ManagementHashiCorp Vault with AppRole authentication
ObservabilityPrometheus, Grafana, Loki, OpenTelemetry
Docker ComposeSingle-command deployment with optional monitoring and CalDAV profiles

User Guide

DocumentDescription
Getting Started5-minute Docker deployment
Hardware SetupRaspberry Pi 5 + Hailo-10H assembly
Docker SetupDetailed deployment and operations guide
Vault SetupSecret management with HashiCorp Vault
ConfigurationAll config.toml options
External ServicesWhatsApp, email, CalDAV, search setup
Signal SetupSignal messenger registration
Reminder SystemReminders and morning briefings
TroubleshootingCommon issues and solutions

Developer Guide

DocumentDescription
ArchitectureClean Architecture overview
Memory SystemRAG pipeline and encryption
ContributingDevelopment setup and workflow
Crate ReferenceAll 16 workspace crates documented
API ReferenceREST API with OpenAPI spec

Operations & Security

DocumentDescription
Production DeploymentTLS, production config, multi-arch builds
MonitoringPrometheus, Grafana, Loki, alerting
Backup & RestoreData protection and recovery
Security HardeningApplication, network, and Vault security

Getting Help