Categories
self-hosted ai memory long-term memory ai companion dream consolidation llm gateway pgvector openai proxyStars
Forks
Watchers
Developer links
Kiwi Mem
Your AI stops forgetting you between sessions with Kiwi Mem, a self-hosted gateway that gives chat models a long-term memory modeled on the human brain. It sits between your chat client and your LLM provider, quietly extracting what matters from every conversation and injecting the right memories into the next one. Each memory carries a heat score: topics you raise often stay vivid, emotional moments decay slowly, and things nobody mentions cool down and blur instead of filling a database forever. At night, the Dream process cleans up stale fragments, merges related ones into coherent memory scenes, and surfaces conclusions nobody stated out loud. Calendar summaries compress history from day to week to month to year, so yesterday stays detailed and last season becomes an outline. When a new fact contradicts an old one, the outdated version retires automatically, and memories you lock by hand never fade at all. Any OpenAI-format client can connect, and Anthropic accounts link directly in native format with streaming and tool use intact. The browser admin panel manages providers, memories, projects with private layers, and more than 80 runtime settings. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. AGPL-3.0 licensed.
Benefits
- Memory That Forgets Like You
- Heat scoring decays stale memories over time and rewarms topics you raise again, so recall stays relevant after months of conversation instead of drowning in everything ever said.
- Nightly Dream Consolidation
- While you sleep, Dream removes outdated fragments, merges related ones into memory scenes, and infers unstated conclusions, returning consolidated memories to daytime recall through vector search.
- History Compressed By Calendar
- Chat history rolls up from day pages into week, month, quarter, and year summaries, injecting recent days in detail and distant periods as outlines that fit the context window.
- Your Memories Stay Yours
- The whole memory store is self-hosted and exportable, with backups, cloud sync, and project layers that keep work, life, and fiction contexts separated on your own server.
Features
- Hybrid Memory Search
- Vector and keyword retrieval run in parallel and merge through Reciprocal Rank Fusion, with synonym expansion and semantic deduplication.
- Contradiction Invalidation
- New facts that conflict with stored memories retire the outdated version automatically, and hand-locked memories never decay or delete.
- Tool Drawer Loading
- More than 20 built-in tools load per message by vector relevance instead of filling every prompt, and external MCP servers join as drawer categories.
- OpenAI And Anthropic Formats
- OpenAI-compatible providers and Anthropic native format both connect directly, with streaming and tool use preserved across the gateway.
- Browser Admin Panel
- Providers, memories, Dream runs, calendar pages, and over 80 runtime parameters are managed at /admin with no restart required.
- Project Memory Isolation
- Global memories form a shared base, and each project adds private instructions, files, and memories that never leak into other chats.