English | 中文
Keeps every conversation word-for-word and gives your AI agent the right
context on every turn.
Quick start ·
How it works ·
Benchmarks ·
Compatibility ·
Technical reference
What it is
A local server that speaks the MCP protocol and gives Claude, and any other
MCP-compatible agent, a long-term memory. It captures every turn of every session
verbatim, organizes those captures over time into a personal map of who you are,
and serves a small slice of relevant memory back at the start of each new
conversation and turn. You never have to say "remember this" or "what did we
say last time?".
I built this for myself. It worked. The benchmarks were mostly for my own
curiosity.
Under the hood it's not a wrapper around someone else's vector store and graph
library — the parts that matter are my own code: the storage engine, the
community-detection algorithm, the hyperdimensional memory substrate, and a
native engine that makes it fast.
And unlike cloud memory services, there's no API key, no account, and no
telemetry: the engine, the store, and the embeddings all run locally. The only
things that leave your machine are the normal model calls your CLI already makes,
a nightly consolidation step that asks your model for a single insight through
the same subscription your CLI already uses (on by default;
IAI_MCP_REM_DISABLED=1 turns it off), a daily version check, and the one-time
download of the embedding model.
Quick start
Claude Code
python3.12 -m pip install -U iai-pme
Then run inside Claude Code:
/plugin marketplace add CodeAbra/iai-personal-memory-engine
/plugin install iai-memory@iai-pme
Restart the session, then verify:
iai --version
iai-mcp daemon status
iai-mcp doctor
Python 3.11 is also supported.
macOS or Linux: all-in-one source install
curl -fsSL https://raw.githubusercontent.com/CodeAbra/iai-personal-memory-engine/main/scripts/bootstrap.sh | bash
This builds the Rust engine and TypeScript wrapper, installs the background
service and hooks, registers Claude Code, and runs the health check. It requires
Git, Python 3.11/3.12, Node.js 18+, and Rust. To inspect the steps without
changing anything:
curl -fsSL https://raw.githubusercontent.com/CodeAbra/iai-personal-memory-engine/main/scripts/bootstrap.sh | bash -s -- --dry-run
Other hosts
python3.12 -m pip install -U iai-pme
iai-mcp crypto init
iai-mcp daemon install
iai-mcp capture-hooks install --target codex
Replace codex with cursor, antigravity, hermes, openclaw, or all.
MCP tools work with any MCP-over-stdio client; automatic capture and context
injection depend on the hooks exposed by the host. See the
technical reference.