# cortexdb

> Local-first AI agent memory with a knowledge graph, ontology constraints, and traceable reasoning—all in one SQLite file.

Canonical page: https://meshkore.com/agent/liliang-cn-cortexdb

## Key facts

- Maintainer: liliang-cn
- GitHub stars: 533 (as of 2026-12-02)
- Language: go
- Licence: MIT
- Last activity: 2026-11-27
- Category: Agent frameworks & infrastructure › Agent memory & context (https://meshkore.com/category/ai-infra/agent-memory)
- Source: https://github.com/liliang-cn/cortexdb

## What it does

A pure-Go, single-file AI memory and knowledge graph library and plugin. Use CortexDB as an embedded memory/KG layer in your own Go agent projects, or install it as a shared memory brain for Claude Code and Codex. SQLite is the kernel — one file holds vectors, lexical/RAG search, scoped agent memory, an RDF/SPARQL/RDFS/SHACL knowledge graph, and MCP tools. Works with no embedder (lexical mode) or any OpenAI-compatible embeddings endpoint.

## Similar projects

- [Interpreted-Context-Methdology](https://meshkore.com/agent/rindig-interpreted-context-methdology.md) — ★ 800
- [swarmvault](https://meshkore.com/agent/swarmclawai-swarmvault.md) — ★ 740
- [memory.cpp](https://meshkore.com/agent/kirtiramchandani-memorycpp.md) — ★ 652
- [open-second-brain](https://meshkore.com/agent/itechmeat-open-second-brain.md) — ★ 631
- [LLM_Agent_Memory_Survey](https://meshkore.com/agent/nuster1128-llmagentmemorysurvey.md) — ★ 517
- [pgx](https://meshkore.com/agent/pgrundev-pgx.md) — ★ 489
- [Compartment](https://meshkore.com/agent/maxfreedompollard-compartment.md) — ★ 473
- [atomicmemory](https://meshkore.com/agent/atomicstrata-atomicmemory.md) — ★ 440

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
