Active2026· 100% local inference · zero cloud prompt egress · native C++ runtime
offmind
Private, fully on-device Android AI assistant built around Gemma 4 E4B. Chats, memory, attachments, skills, and model inference stay completely local on the phone.
C++KotlinGemma 4 E4BAndroid NDKOn-Device LLM
Motivation#
Most mobile AI apps are thin chat shells streaming personal notes, files, and voice context to hosted APIs. offmind explores the opposite architectural boundary: running a capable multimodal assistant (Gemma 4 E4B) directly on commodity Android hardware with local long-term memory, attachment parsing, and tool/skill dispatch—without a single prompt leaving the handset.
System Architecture#
Diagram
Rendering diagram...
Key Engineering & Research Decisions#
- Zero hosted inference dependency: Model weights, tokenization, KV cache, and retrieval embeddings live exclusively in app-private storage.
- Native C++ inference boundary: Keeps tight control over memory mapping (
mmap), thread affinity across big.LITTLE cores, and KV cache eviction under Android's strict Low Memory Killer (LMK) constraints. - Skill & Attachment Pipeline: Structured local tool invocation lets the model ground answers against local documents and user attachments without blowing up the context budget.