Personal memory engine for AI agents — zero Docker, SQLite-everything (BM25 + sqlite-vec + SQLite graph)
Project description
kioku-lite
Personal memory engine for AI agents. Tri-hybrid search, zero Docker, single SQLite file.
kioku-lite — kioku (記憶) means "memory" in Japanese: 記 (ki) to record, 憶 (oku) to remember. A lightweight, fully local memory engine that gives AI agents long-term memory with causal reasoning, using tri-hybrid search (BM25 + Vector + Knowledge Graph) in a single SQLite file.
Homepage · Docs · The Story · PyPI
Read the intro: Why I built a Knowledge Graph memory engine for my AI agents — also in 日本語 and Tiếng Việt
Why kioku-lite
Most agent memory systems store flat text or vectors. They can't answer "Why was I stressed last month?" because they don't track how events, emotions, and decisions connect. kioku-lite solves this with a Knowledge Graph on top of traditional search — running 100% local with no LLM calls.
| System | Infrastructure | LLM required | Search | Knowledge Graph |
|---|---|---|---|---|
| Mem0 | Cloud-managed | Yes (every write) | Vector + Graph | ✅ Managed |
| Claude Code | Flat markdown files | No | Context window only | ❌ |
| OpenClaw | SQLite per-agent | No | Semantic (embedding) | ❌ |
| kioku-lite | Single SQLite file | Agent-driven, zero extra | Tri-hybrid (BM25 + vector + KG) | ✅ Agent-driven |
vs Mem0: Mem0 targets production apps — managed cloud infra, automatic LLM extraction on every write. kioku-lite targets personal use — fully local, fully offline, the agent is already an LLM so no extra call needed. Full comparison: docs
Features
- Tri-hybrid search — BM25 (FTS5) + Vector (sqlite-vec) + Knowledge Graph
- Zero infrastructure — no Docker, no ChromaDB, no external servers
- Fully offline — FastEmbed ONNX embedding, no API keys needed
- Agent-driven KG — agent extracts entities and indexes them (no built-in LLM)
- CLI + Python API — works with any agent that runs shell commands
- Built-in personas — companion (emotion tracking) and mentor (decision tracking)
- Multilingual — 100+ languages via multilingual-e5-large
Getting started
Install and connect to your agent in 3 commands:
pipx install "kioku-lite[cli]"
kioku-lite init --global
kioku-lite install-profile companion
That's it. Your agent now has long-term memory with Knowledge Graph.
Full setup guides for each agent type:
- Claude Code / Cursor / Windsurf — copy-paste the guide, agent does the rest
- OpenClaw — auto-generates SOUL.md + TOOLS.md
Architecture
Agent (Claude Code, Cursor, …)
│
├─ save "..." ──→ SQLite FTS5 + sqlite-vec + Markdown backup
├─ kg-index <hash> ──→ GraphStore (nodes, edges, aliases)
└─ search "..." ──→ BM25 ∪ Vector ∪ KG → RRF rerank
kioku-lite never calls an LLM. The agent extracts entities from its own context, keeping the memory engine 100% local and LLM-agnostic.
Deep dive: System Architecture · Write Pipeline · Search Pipeline · KG Open Schema
Development
git clone https://github.com/phuc-nt/kioku-agent-kit-lite
cd kioku-agent-kit-lite
pip install -e ".[cli,dev]"
pytest
License
MIT © 2026 Phuc Nguyen
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kioku_lite-0.1.25.tar.gz.
File metadata
- Download URL: kioku_lite-0.1.25.tar.gz
- Upload date:
- Size: 346.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f18cf20c36815d2f19817d827cc5c89df74bbe7dec9463026d8bd6d86aa863f1
|
|
| MD5 |
192fb57b861538821fa1e631c91ab98f
|
|
| BLAKE2b-256 |
7399afdf625737554a939b0f62623a99cb7a017d892c11c55e28c4f40f09301d
|
File details
Details for the file kioku_lite-0.1.25-py3-none-any.whl.
File metadata
- Download URL: kioku_lite-0.1.25-py3-none-any.whl
- Upload date:
- Size: 55.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d4da32cca1e1ca2325d52cfd31a8591f4d25469b6d4a74fdd3a2f99d5adeeea
|
|
| MD5 |
33da5b888cc6f8b84548e599c036e64a
|
|
| BLAKE2b-256 |
86a0f63d6f457441b45228aa8a9f5357f470e9d7ee1ab5d1c6f8d40ae96b006d
|