Haven is a fully self-hosted, offline-first, private AI companion and smart assistant ecosystem. Designed to give users absolute ownership over their data, models, and interactions, Haven replaces cloud-dependent subscriptions with low-latency local orchestration.
The Haven ecosystem consists of a high-performance C# backend orchestrator and a native Kotlin/Jetpack Compose Android client.
- Offline-First & Private: Your conversations, database, and models run entirely on your own local hardware (or private home server). No data ever leaves your network.
- Multi-Companion Orchestration: Create, edit, and talk to multiple distinct AI companion profiles. Customize their names, voice configurations, and system prompts on-the-fly.
- Native Real-Time Voice Engine:
- Local Voice Activity Detection (VAD): Integrates the open-source Silero VAD model locally via ONNX Runtime Mobile, letting the app detect speech naturally without push-to-talk delays.
- Low-Latency Speech Synthesis: Streams text-to-speech audio segments from the backend in real-time for fluid, natural vocal conversations.
- Web Management Console: An integrated, premium Web Admin Dashboard to monitor server resources (RAM, CPU threads, active models), manage companion profiles, and review paired mobile device links.
- Secure Mesh VPN Ready: Designed to work out-of-the-box over secure private mesh networks (like Tailscale) for encrypted, private remote access.
One of Haven's core design principles is accessibility. You do not need an expensive gaming rig or a high-end cloud GPU server to host the Haven backend.
By leveraging Importance Matrix (imatrix) calibration and ultra-efficient model quantizations (such as IQ4_XS and Q3_K_S), the ecosystem is optimized to run at highly interactive speeds on standard pure CPU hardware:
- Minimal RAM: Highly compressed 3B to 8B models (under 5GB file size) fit comfortably on standard laptops, mini-PCs, or budget home servers with only 8GB/16GB of system RAM.
- GPU Optional: Local inference engines (like Ollama or llama.cpp) process tokens quickly using standard multi-core CPU threads.
- Low Energy & Silent: Offloading compute to low-power CPU nodes keeps your system quiet and energy-efficient.
graph TD
subgraph Client [Haven Mobile - Android client]
A[Jetpack Compose UI] --> B[Room local DB]
A --> C[Local Silero VAD - ONNX Mobile]
C -->|Raw Audio Stream| D[OkHttp WebSocket]
end
subgraph Server [Haven Server - C# backend]
E[ASP.NET Core Web API] --> F[SQLite DB]
E -->|Companion Management| G[Filesystem JSON Store]
D <-->|Bidirectional WebSocket Chat| H[Chat & Voice Handlers]
H -->|Orchestrated Prompts| I[Local LLM Backend - Llama Server / Ollama]
H -->|Speech Generation| J[Local TTS Engine - Piper]
end
- haven-server: The C# backend server orchestrator, SQLite database manager, and web admin panel.
- haven-android: The native Android mobile client app written in Kotlin and Jetpack Compose.
- .github: Organization configuration, templates, and profile resources.
- Clone the
haven-serverrepository. - Configure your local LLM engine (Ollama or llama.cpp) and update
config.json. - Build and launch
haven-server.exe(defaults to port18799). - Access the web dashboard at
http://localhost:18799/admin.html.
- Download the latest compiled signed APK from the releases tab (or build it yourself using Gradle:
.\gradlew assembleRelease). - Sideload the APK onto your Android device.
- Open the app, go to Settings, and enter your Haven Server Host IP and Port.
- Establish a secure link and start chatting!
We welcome contributions to the Haven ecosystem! Feel free to open issues, submit pull requests, or share custom companion configurations. Keep local AI free, private, and open source.