ai-memory (akitaonrails/ai-memory)

Searching Database…

What is this?A long-term memory service for AI coding agents. Quit Claude Code mid-task, start Codex or Cursor in the same directory, and the next agent picks up a handoff: where you left off, what failed, what is still open.
How is it different from the memory Claude Code or Cursor already have?Built-in agent notes live on one machine and belong to one agent, so they vanish when you switch tools or work with teammates. ai-memory is one shared store that 20+ harnesses feed, spanning agents, machines and people.
How do I get it running?Run the server (the Docker/Podman image akitaonrails/ai-memory, or the AUR package on Arch), then wire your agent with two commands (--client codex, --agent codex). Hooks capture everything automatically after that.
Which coding agents can it plug into?Twenty-plus first-party integrations kept honest by CI: Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Devin, Kimi Code, Kiro, Grok Build CLI, OpenClaw, plus MCP-only clients like Claude Desktop, Zed and VS Code Copilot.
Does it work on Windows?Linux and macOS are fully supported, and Windows via WSL2 is supported, but native Windows is still experimental. Docker images ship for both amd64 and arm64, so Apple Silicon needs no emulation.
Do I need an API key or an LLM subscription for it to work?No. The default path uses zero LLM calls: capture, search and handoffs all work with no API key at all. Adding a provider (Anthropic, OpenAI, Gemini, or OpenAI-compatible like Ollama) upgrades summaries and enables semantic search.
What does it record about my coding sessions?Lifecycle hooks capture prompts, tool calls and session boundaries, sanitized at a typed privacy boundary before anything is stored. Per-repository [capture] rules can exclude paths or invert to allowlist mode.
Where does the memory actually live?In plain markdown: a git-backed wiki of ordinary .md files you can grep, edit by hand or open in Obsidian. The SQLite database is just a derived index that can always be rebuilt from the files.
Can my whole team share one memory server?Yes. Point everyone at one server: knowledge is shared per project, personal handoffs stay personal, and multi-user auth, per-person attribution and an audit log are built in — not a paid tier.
How do I use it day to day?Mostly you do not think about it: hooks capture work silently and each session ends with a handoff. Ask 'where did we leave off?', 'search memory for Y' or 'catch me up', and run ai-memory bootstrap once to index an existing project's history.
Is there a web interface?Yes, a read-only one: start the server with --enable-web to browse the wiki in a browser, plus a JSON API under /api/v1.
Size
57.1 MB
Stars
16.6K
Age
6mo
Commits · 90 Days