Goes live December 8, 2026

It appears on the home page and opens for votes when its launch week starts.

Kairn

Kairn

Knowledge graph memory for Claude Code, Codex and other MCP clients

FreeCLIOpen SourceAI4 impressionslaunches Dec 81 comment

Maker links to DevHunt

Comments

>log in to comment
  • Robin Lorenz[maker]· 2h ago

    I built Kairn because every new Claude Code session starts from zero. It imports the sessions you already have (title and first prompt, offline, no AI calls), keeps decisions in a local SQLite knowledge graph, and gives your assistant summaries first, details on request. The weak spots are public too: 56.2% overall on LongMemEval-S, every category in BENCHMARKS.md. What should it remember for you first?

Kairn stores what your AI learned (decisions, solutions, gotchas, patterns) as a knowledge graph in a local SQLite database. Its context tool finds the entries that match the keywords of the task (SQLite full-text search) and returns short summaries first, full details on request. Optional and off by default: reranking with embeddings from a local Ollama server. 22 MCP tools, MIT licence, the data stays on your machine. Install: pip install kairn-ai

More CLI tools →83 free dev tools →

Looking for MCP servers to install? MCP servers list: 290 servers by category, official and community →

  • Context‑aware knowledge engine with intelligent context routing
  • Local knowledge graph with full‑text recall
  • Skill for recalling project knowledge before acting
  • Saving and recalling require no LLM call

Kairn stores AI-learned information in a local SQLite knowledge graph and retrieves it via keyword search.

for
Developers building AI agents with Claude Code, Codex or other MCP clients.
pricing
open source
license
MIT
primeline-ai/kairn 13 3Pythonupdated 18 days ago
works withClaude CodeCodexMCP clients

Key features

6 features of Kairn
  • SQLite knowledge graph — Persists decisions, solutions, patterns and gotchas in a local SQLite database.
  • Keyword context tool — Finds matching entries using full-text search and returns short summaries first.
  • Optional reranking — Can rerank results with embeddings from a local Ollama server (off by default).
  • MCP client integration — Provides plugins for Claude Code and Codex to automatically store and recall knowledge.
  • MIT licence — Open-source license ensures free use and modification.
  • Data stays local — All stored knowledge remains on the developer’s machine for privacy.

Use cases

  • Recall past decisions when debugging code
  • Provide concise summaries of known patterns during a chat session
  • Fetch detailed solutions for recurring gotchas in a project
  • Enhance Claude or Codex prompts with relevant prior knowledge

Kairn vs alternatives

KairnZepMem0supermemoryLlamaIndex
Best forLocal knowledge-graph memory for LLM agentsEnterprise context layer for agentsHosted AI memory serviceGeneral agent memoryLLM apps over external data
PricingOpen sourceSubscriptionSubscriptionSubscriptionFree
DevHunt upvotes10000
LaunchedDec 2026————
  • Kairn vs Zep: Zep provides an enterprise-grade context layer with remote storage, while Kairn is local-only and open source.
  • Kairn vs Mem0: Mem0 offers a hosted AI memory service; Kairn stores data locally in SQLite.
  • Kairn vs supermemory: supermemory is a generic memory layer for agents, but Kairn adds full-text search and optional Ollama reranking.
  • Kairn vs LlamaIndex: LlamaIndex focuses on indexing external data sources, whereas Kairn indexes the agent’s own learned knowledge locally.

Kairn FAQ

How is Kairn installed?+

Run pip install kairn-ai and then start the server with kairn serve or use the provided MCP plugin.

Where is the data stored?+

All knowledge is saved in a local SQLite file under the user’s .kairn directory, never sent to the cloud.

Is reranking enabled by default?+

No, reranking with Ollama embeddings is optional and disabled by default.

Which AI models can use Kairn?+

Kairn works with Claude Code, Claude Codex and any MCP-compatible client that can call the plugin.

What license does Kairn use?+

Kairn is released under the MIT licence.

Do I need any extra tools?+

The plugin requires uv to run and optionally a local Ollama server for embedding-based reranking.

Summarized by DevHunt from github.com · Dec 2, 2026. Details may change; check the official site.