Aletheia

Introduction to Aletheia, a local memory hub for AI coding tools

Aletheia (aletheia-mem) is a free, local memory and rules hub for AI coding tools. It keeps what your tools learn in one SQLite file on your machine, and any tool can read that file over MCP, REST or a command line.

What it is

Every coding agent forgets between sessions, and each one remembers in its own format. Aletheia gives you one place that holds the memory and the rules. It works as persistent memory for coding agents, as an MCP memory server, and as a rules hub that writes your standing instructions into the files each tool already reads, such as CLAUDE.md and AGENTS.md.

These docs call an AI coding tool a host, and Aletheia itself the hub. A person uses the hub in three steps:

  1. Install it and connect a tool. The tool's hooks send what happened in each session to Aletheia.
  2. Aletheia redacts secrets, stores the text, and turns it into short facts and summaries.
  3. The next session starts with a short block of what you already decided, plus your rules.

There is no account and no telemetry. The server listens on 127.0.0.1 unless you change ALETHEIA_HOST. The server and the hooks make no network call unless you configure a model provider, a sync hub or an alert webhook. A few commands load an optional vector package, and in a git clone Bun may download it; Installation has the details.

Key features

Who it is for

A first look

You do not need a connected host to see the idea. Save a memory from the command line, then search it:

aletheia save "The deploy script needs Node 20.19.6 on the staging server" --project shop --pin
aletheia search "node staging" --project shop
Saved as #1.
#1 2026-10-29 [note] The deploy script needs Node 20.19.6 on the staging server (shop, cli)

A host that reads the same store, through hooks, MCP or aletheia context, would see that note at the start of its next session in the shop project. Quickstart runs this end to end.

How it works

host hook -> redact -> store in SQLite -> queue -> compress -> context back to the next session

A hook in your tool sends a prompt, a tool call or a session summary to aletheia hook. The text is redacted and written to hub.db. A background worker, started by aletheia-server, picks up queued sessions and compresses them into facts and a session summary. At the start of the next session, a hook asks Aletheia for context and the tool receives it. How Aletheia works follows each step through the code.

What it does not do

System requirements

Where the name comes from

The landing page of the project writes the name as ἀλήθεια · a-lethe · "un-forgetting" and titles the project "Aletheia: un-forgetting for AI tools". The idea is the one this page started with: your tools forget between sessions, and Aletheia keeps what they learned so the next session does not start blank.

Next steps