ai-memory
Long-term memory for AI coding agents: a Rust MCP server and CLI that keeps a git-backed markdown wiki shared across Claude Code, Codex, Cursor and more.
15.9K
GitHub Stars
20+
Supported Agents
MIT
License
Overview
ai-memory gives AI coding agents long-term memory that survives across sessions and across tools. It ships as a single Rust binary with an MCP and HTTP server, a CLI, capture hooks and an optional web UI. Memory is stored as a human-editable, git-backed markdown wiki with a derived SQLite full-text index (embeddings optional), so one agent can hand off to another with the same context. It supports Claude Code, Codex, Cursor, Gemini CLI, OpenCode and many more, and credits Andrej Karpathy's LLM Wiki idea as an inspiration.
The Verdict
Who Should Use ai-memory?
Best For
- Developers who switch between several coding agents
- Teams that want shared project memory with an audit log
- Anyone who wants memory as plain markdown, not a vector store
Not Ideal For
- Native Windows users (support is experimental)
- Teams wanting a managed cloud memory service
- Non-coding chatbot memory
What's Great
- Broad support matrix across 20+ agents
- Plain markdown in git: readable, editable, diffable
- Default capture hooks use no LLM calls
- Shared multi-user memory with an audit log, plus decay and opt-in consolidation
Watch Out For
- Docker quick-start has no authentication by default
- Native Windows support is marked experimental
- Self-hosted only; you run and back up the server yourself
Pricing
View all features & details
Key Features
- MCP and HTTP server, CLI, hooks, optional web UI
- Cross-agent handoffs
- Git-backed markdown wiki
- SQLite FTS5 index, optional embeddings
- Memory decay and opt-in consolidation
Use Cases
- Keeping project decisions across agent sessions
- Handing work from Claude Code to Codex without re-explaining
- A shared team memory for coding agents
How It Compares
| Feature | ai-memory | Open Second Brain | GBrain |
|---|---|---|---|
| Storage | Git markdown plus SQLite | Obsidian vault plus SQLite | PGLite or Postgres |
| Interface | MCP, HTTP, CLI | CLI, MCP, hooks | MCP, daemon |
| Language | Rust | Bun/TypeScript | TypeScript/Bun |
| License | MIT | MIT | MIT |
Loading reviews...
Is this your tool? Add a badge