# ai-memory

> Long-term memory for AI coding agents, shared across agents, projects and machines

Source: https://talira.ai/catalog/ai-memory-bn4w404w
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, MCP server
- Categories: [ai / agents / memory](https://talira.ai/categories/ai/agents/memory), [developer tools / ai coding / context](https://talira.ai/categories/developer-tools/ai-coding/context)
- Platforms: linux, macos, windows, docker[^1]
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- MCP server: yes[^1]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^1]
- Backed by: [Fabio Akita](https://talira.ai/orgs/fabio-akita.md)
- Creator: Fabio Akita (akitaonrails)

ai-memory is a self-hosted long-term memory server for AI coding agents. Lifecycle hooks in Claude Code, Codex, Cursor, Gemini CLI, OpenCode and more than 30 other agents capture prompts and tool observations, redact recognised credentials, and consolidate them into a git-backed wiki of plain Markdown files per project, which later sessions search and get briefed from over MCP. Typed handoffs let you quit one agent mid-task and continue in another, `ai-memory run` can carry a session's local history across, a personal profile follows you into new repositories, and a shared server gives a team multi-user auth and an audit log. Capture, search, handoffs and memory decay need no LLM API key; an optional background pass with an LLM merges cold notes. One Rust binary by Fabio Akita, MIT licensed.

## Links

- Website: https://aimemory.sh/
- GitHub: https://github.com/akitaonrails/ai-memory

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://github.com/akitaonrails/homebrew-tap>[^1]

## Problems it solves

- switch from Claude Code to Codex mid-task without re-explaining the architecture and what already failed
- my coding agent forgets everything about the project between sessions
- share what one developer's AI sessions learned about the codebase with the rest of the team's agents
- keep AI agent memory as plain Markdown files I can grep, edit and keep in git
- carry my coding preferences into every new repository so agents stop asking
- pick up the same AI-assisted project on my laptop that I started on my desktop
- long-term memory for coding agents that works without paying for an LLM or embedding API

## Features

- works with 30+ coding agents including Claude Code, Codex, Cursor, Gemini CLI and OpenCode
- lifecycle hooks capture prompts and tool observations automatically
- credential redaction before storage
- git-backed wiki of plain Markdown files as the source of truth
- typed handoffs between agents, each claimed exactly once
- ai-memory run carries a session's local history to the next agent
- cross-project personal profile
- multi-user server with per-person attribution and an audit log
- memory decay and compaction with zero LLM calls
- optional LLM pass that merges cold notes while idle
- single self-contained binary; Linux, macOS, WSL2, experimental native Windows

## Capabilities

- Has a command line tool: plan not known
- Has an MCP server: plan not known

## Trust

Overall: 0.46 out of 1.
Signals: backing 0.50, extensibility 0.40.

- backed by Fabio Akita
- created by Fabio Akita (akitaonrails)
- has an MCP server for agents

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Engram](https://talira.ai/catalog/engram-6p0bcdf2.md): Persistent memory for AI coding agents
- [Mem0](https://talira.ai/catalog/mem0-1hspsvwb.md): The memory layer for AI agents
- [MemPalace](https://talira.ai/catalog/mempalace-5jj32hay.md): Local-first AI memory. Verbatim storage, pluggable backend, 96.6% R@5 raw on LongMemEval, zero API calls.
- [Hindsight](https://talira.ai/catalog/hindsight-epw5kxdn.md): Long-term memory for AI agents that learns from experience
- [OpenViking](https://talira.ai/catalog/openviking-9dqr3z4v.md): The context database for AI agents
- [Letta](https://talira.ai/catalog/letta-8fr9dnmv.md): Build stateful agents with memory that can learn and improve over time

## Sources

[^1]: https://github.com/akitaonrails/ai-memory (checked 22 Nov 2026)
[^2]: https://github.com/akitaonrails/ai-memory/blob/main/LICENSE (checked 22 Nov 2026)
