Skip to content
Menu

Product

Solutions

Integrations

Developers

Language

v3.1.0 is outSee what changed

Different agents. One memory.

ai-memory saves project notes for AI coding tools such as Claude Code and Codex. When you start another session, it supplies saved context and tools to search earlier work, so you spend less time re-explaining your project.

  • Open source, MIT
  • One binary, plain markdown
  • Default memory features need no model API key
CaptureObservations
ai-memory
RecallBriefing

Works with 32 coding agents, including Claude Code, Codex, Cursor, Gemini CLI, OpenCode, OpenCode 2

Claude CodeCodexCursorGemini CLIOpenCodeOpenCode 2Agents and editors

Before you connect a project

This is a tool for people already using AI to work on code. It stores context outside the coding agent so later sessions can retrieve it.

With capture enabled, prompts and limited tool observations are recorded. An empty project can import recent local agent history on first use. In single-user mode, recurring preferences can carry across projects.

These defaults describe ai-memory. Your coding agent has its own provider connections and data settings.

What happens while you work.

Capture saves observations from a session. A handoff summarizes unfinished work for the next one, while the project wiki holds longer-lived notes. The default path needs no cloud language model.

Capture

Consolidate

Recall

Hand off

A git-backed wiki of plain markdown files

  1. 1

    Capture

    Hooks record prompts and limited tool observations. Recognized credentials are redacted before storage, but filtering can miss sensitive text.

  2. 2

    Consolidate

    When a session ends, its observations become a readable markdown page in the project’s wiki.

  3. 3

    Recall

    The next session receives a brief and can search saved pages and observations. Retrieved notes can be incomplete or outdated; check important decisions against their sources.

  4. 4

    Hand off

    The next session picks up the baton, and only one session can claim it. It works across agents and across every machine that reaches the server.

Read the architecture

Install, set up, then launch your agent.

There is no sign-up. The default install listens on your machine only, so nothing else can reach it. You can add it to a project that is already under way: the first session imports the agent history you have on disk.

one machine
# 1. Install the binary: downloaded, checksum verified, no root
curl -fsSL https://github.com/akitaonrails/ai-memory/releases/latest/download/install.sh | sh

# 2. Create the data directory, start the service, wire every agent it finds
ai-memory setup

# 3. Launch your agent through it
ai-memory run claude
Any agent

32 coding agents, one memory

Claude Code, Codex, Cursor, Gemini CLI, OpenCode and more share one server. What one learned this morning is there for the next one this afternoon.

Agents and editors
Measured

0.951 hit@5 on LongMemEval-S, caveats included

hit@5 measures whether any session containing the evidence appears in the first five results. The published harness includes capture. This measures retrieval, not answer accuracy.

What was measured

Change everything. Keep what you know.

Switch agents mid-task.

Quit Claude Code, open Codex in the same directory. It starts with a handoff: what got done, what failed and what is still open.

How handoffs work
claude
> move refresh into middleware● Edit auth/middleware.rs● cargo test: 2 failed> /exit
codex
Handoff from Claude Code✓ Refresh moved to middleware✗ Cookie-only broke mobile? Rate limit on /refresh> fix the two failing tests

Switch machines.

Run one server and connect both machines to it. Memory is available while that server is reachable. Offline hook events wait locally for delivery; two servers do not replicate.

One server, many machines
desktop, office
~/app $ ai-memory run claude● 41 observations captured● session saved to the wiki
notebook, connected to the server
~/app $ ai-memory run claude> where did we leave off?You were rate limiting /refresh.Two tests in auth_spec still fail.

Share it with your team.

Connect your team’s agents to one server. Within projects they can access, new hires can find earlier decisions and their sources before asking teammates.

ai-memory for teams
this week
A
Ana fixed the flaky CI cache
R
Ravi chose advisory locks over a queue
M
Mei wrote the deploy runbook
Lia, first day
> catch me up on this project3 decisions, 1 runbook and 2 openquestions from the last two weeks.Start at decisions/advisory-locks

Saves searchable project notes.

Hooks are small commands triggered by the agent’s session events. They record observations that become markdown pages. Browse the wiki, search it, or edit it by hand.

See what is stored
captured
promptEdit auth.rscargo test failedgit rebase mainRead schema.sqlpromptBash: curl /refreshsession end
wiki/
├─ decisions/session-tokens.md├─ gotchas/mobile-cookie-jar.md├─ procedures/deploy.md├─ sessions/2026-09-18-auth.md└─ index.md

Choose how old session notes are kept.

Unused session pages can be removed automatically. You can enable compaction or merging to retain shorter versions without a cloud model. An optional background pass uses your configured language model to merge old pages; compaction and merge rewrites can be restored.

Page read

reinforces

Retention score

Forget-sweep

Cold?

Cold?

Evict

Compact

One survivor

git history

restore-page

Evict

Compact

One survivor

How memory ages

Your habits follow you to the next project.

Each project keeps its own memory. The profile carries how you usually work, learned from your projects on their own, and hands it to every new one at session start, below the repository’s rules. Start a new repository and the agent already knows your baseline.

Same project, any agent

Claude Code

ai-memory

Codex

OpenCode

Project A

Project B

Project C

Profile

New project

Memory across projects

Coming from another tool?

Most memory tools need an LLM, a vector store or a graph database before they remember anything. ai-memory needs one binary and a folder.

Full comparison, including where they win

Per-laptop MEMORY.md. It needs: Claude Code, One machine.

What stays the same

The "remember my project" convenience, in markdown.

What you gain

  • The same memory in Codex, Cursor, Gemini CLI and 20 more
  • One reachable server for your machines
  • Shared with your team
  • Real search, and capture of what the tools actually did

Built in the open, by a lot of people.

  • akitaonrails
  • djalmajr
  • viniciusdsandrade
  • everton-dgn
  • samirhvbr
  • petersonsalme
  • lucasliet
  • felipe-NR
  • root1945
  • kevin9327
  • wblech
  • rthiago
  • maxeinstein-dev
  • giovannirco

New here? The contributing page shows where bug reports, pull requests and new agent integrations go.

Give your agents a memory today.

Free and open source under the MIT license. The default memory features need no model API key; your coding agent may require its own account.