Kai
An open-source AI assistant with persistent memory that runs on Android, iOS, Windows, Mac, Linux, and Web.
Overview
Kai is built with Kotlin Multiplatform and Compose Multiplatform. It connects to 11+ LLM providers with automatic fallback, remembers important details across conversations, and can act autonomously via scheduled heartbeats and tool execution.
Key Features
- Persistent memory — Kai remembers important details across conversations and uses them automatically
- Customizable soul — Define the AI's personality and behavior with an editable system prompt
- Multi-service fallback — Configure multiple providers; Kai automatically tries the next one on failure
- Tool execution — Web search, notifications, calendar events, shell commands, and more
- Autonomous heartbeat — Periodic self-checks that surface anything needing attention
- Encrypted storage — Conversations are stored locally with encryption
- Text to speech — Listen to AI responses
- Image attachments — Attach images to any conversation
How It Works
┌────────┐
│ User │
└───┬────┘
│ message
▼
┌─────────────────────────┐
│ Chat │
│ │
│ prompt + memories │
│ │ │
│ ▼ │
│ ┌────────┐ │
│ │ AI │◀─┐ │
│ └───┬────┘ │ │
│ │ tool calls │
│ │ & results │
│ ▼ │ │
│ ┌────────┐ │ │
│ │ Tools │─┘ │
│ └───┬────┘ │
│ │ │
└────────┼───────────────┘
│ store / recall
▼
┌─────────────────┐ hitCount >= 5
│ Memory │───────────────────┐
│ │ │
│ facts, prefs, │ ▼
│ learnings │ ┌────────────────┐
│ │◀─delete──│ Promote into │
└─────────────────┘ │ System Prompt │
▲ └────────────────┘
│ reviews
│
┌─────────────────┐
│ Heartbeat │
│ │
│ autonomous │
│ self-check │
│ every 30 min │
│ (8am–10pm) │
│ │
│ all good? │
│ → stays silent │
│ needs action? │
│ → notifies user│
└─────────────────┘
Supported Services
| Service | API Type |
|---|---|
| OpenAI | OpenAI-compatible |
| Gemini | Gemini native |
| DeepSeek | OpenAI-compatible |
| Mistral | OpenAI-compatible |
| xAI | OpenAI-compatible |
| OpenRouter | OpenAI-compatible |
| Groq | OpenAI-compatible |
| NVIDIA | OpenAI-compatible |
| Cerebras | OpenAI-compatible |
| Ollama Cloud | OpenAI-compatible |
| OpenAI-Compatible API (Ollama, LM Studio, etc.) | OpenAI-compatible |
Plus a built-in Free tier that requires no API key.
Platforms
| Platform | Distribution |
|---|---|
| Android | Google Play, F-Droid, APK |
| iOS | App Store |
| macOS | Homebrew, DMG |
| Windows | MSI |
| Linux | DEB, RPM, AppImage, AUR |
| Web | Browser |
Feature Documentation
- Chat & Conversations — Message history, conversation persistence, image attachments, and speech output
- Multi-Service — Provider configuration, fallback chain, and connection validation
- Tools — Available tools, execution flow, safety guards, and enablement
- Memories — Memory lifecycle, categories, reinforcement, and promotion
- Heartbeat — Autonomous self-checks, active hours, and configuration
- Tasks — Scheduled tasks, future execution, and task management
- Daemon — Background service for scheduled tasks and heartbeat execution