Skip to main content

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.

PyPI Python License: MIT

kioku-litekioku (記憶) 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

kioku-lite


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.

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kioku_lite-0.1.20.tar.gz (252.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kioku_lite-0.1.20-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

Details for the file kioku_lite-0.1.20.tar.gz.

File metadata

  • Download URL: kioku_lite-0.1.20.tar.gz
  • Upload date:
  • Size: 252.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for kioku_lite-0.1.20.tar.gz
Algorithm Hash digest
SHA256 943ab86128076e1da716fcc6c9cc42e517a5e48f5791fb802ab764485ecb02f6
MD5 e713f96a3007cf687ba3e2fe777688d4
BLAKE2b-256 414860c77a75f2d3c5556dbb905c76544b89490445b60684e46768c8cebdd498

See more details on using hashes here.

File details

Details for the file kioku_lite-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: kioku_lite-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 49.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for kioku_lite-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 dba6c437faa69d8328836d01896fd49ba1c1d4b97a917a51aa516b700e3d0def
MD5 dd8659fd3d987f95c3de78874f75d8c3
BLAKE2b-256 121efb57c5cb217c1ed32da5dd10f92b823c652ad42be59ae644b7c3daa5576f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page