Listed from the MCP registry; nobody on Odel publishes it.
Is this yours? Claim itCross-session memory for AI agents with a Source Receipt for every memory, over MCP.
One address for any MCP client. You sign in at cairn.ink once, after adding it.

At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
| Access to | Read | Change |
|---|---|---|
| Your identity | ||
| Profile | ||
| Email address | ||
| Stay signed in |
From the sign-in at cairn.ink, as the endpoint publishes it. You approve it there.
Odel could not list its tools without signing in.
Memory for Claude Code and Codex that you can inspect, correct and forget.
English · 繁體中文
A new Claude Code or Codex session often does not know the preferences and project decisions from your earlier conversations, so you end up repeating them. Cairn.ink Memory gives both tools one shared memory. Each memory keeps the text it was saved from, so when one is wrong or out of date you can see where it came from, then correct it or forget it.
This is a developer preview. See the current limits and the full known limitations.
npx @cairn-ink/memory setup
You need Node 22.16 or later, and Claude Code or Codex on your PATH.
Known issue: on Node.js 24.22.3, whose built-in SQLite is 3.54, some searches run slower, so recall can return fewer results when you have a lot of saved memory. Your saved data isn't affected. Node.js 22, or Node.js 24 up to 24.22.2, works as before. Setup uses the Node.js that ran it, so run setup again after you switch versions.
Setup first asks: where should your memory live?
| Local | Cloud | |
|---|---|---|
| Account | None | A cairn.ink account, one browser sign-in |
| Where memory lives | A SQLite database on this computer | cairn.ink |
| Saved automatically | Your Claude Code and Codex conversations, as plain text (on Linux and WSL; on macOS, Claude Code only for now) | Your conversations, which cairn.ink turns into memories |
| Saving a memory | Your agent saves one when you ask | Automatic, or ask your agent |
| Getting it back | Your agent searches when you ask | Relevant memories are added to each prompt |
| Other computers | Not synced | The same memory wherever you sign in |
| Price | Free | See pricing |
To skip the question, run npx @cairn-ink/memory setup --local or
npx @cairn-ink/memory setup --cloud. Restart Claude Code and Codex when setup
finishes. In Codex, also open /hooks and allow the Cairn entries. A computer
runs one mode at a time, and memories do not move between modes.
The package is @cairn-ink/memory. The unscoped packages named cairn-memory
on npm and PyPI are unrelated projects.
After a Local install, Claude Code and Codex both have memory tools from a
server named cairn-local. Ask in plain words:
Remember that my reports should be short.
In a later session:
What do you remember about how I like reports?
Show me where that memory came from.
Correct it: I need detailed reports now.
Forget that memory.
If your agent does not reach for the memory tools, name them: “use the cairn-local memory tools”.
Local mode also saves your conversations as you work, so you can ask about them later (on Linux and WSL, and for Claude Code on macOS; see Status):
What did we decide about the database migration last week?
Search over saved conversations catches up in the background: new turns are usually searchable within seconds, but older conversations can take a while to show up after setup or an upgrade.

| You want to | Tool |
|---|---|
| Save a memory together with its source text | remember_memory |
| Search memories and saved conversations by keyword, with no model key | find_memory_candidates, read_memory_context |
| Let a model pick the relevant memories, with your OpenAI key | recall_memory |
| See a memory, its current revision and its source text | inspect_memory |
| Replace what a memory says | correct_memory |
| Take a memory out of use | forget_memory |
The source text kept with a memory is called a Source Receipt. It shows what was submitted when the memory was saved or corrected. It does not prove that the memory is true. All tools and parameters
Cairn.ink Memory keeps what your agents learn in three layers, like the three stones of a cairn.
| Layer | What it holds | Local mode | Cloud mode |
|---|---|---|---|
| Conversations | What was said, as searchable text | Saved automatically on your computer (Linux and WSL; Claude Code on macOS) | Sent to cairn.ink |
| Memories | The preferences, decisions and facts worth keeping, each with its Source Receipt | Saved when you or your agent ask | Extracted from your conversations automatically, or saved on request |
| Cards | Topic pages that pull related memories together into a map | Not built by default | The map you browse on cairn.ink |
In Local mode, a lookup returns memories and, where the saved conversations behind them are already indexed, dated excerpts from those conversations, so an answer can arrive with its evidence.
Cloud saves and recalls for you, so you do not have to ask.
npx @cairn-ink/memory pause, and npx @cairn-ink/memory resume afterwards.
If only Claude Code is connected, use /cairn-memory:pause and
/cairn-memory:resume inside it instead. Paused text is not saved later.npx @cairn-ink/memory status shows whether yours is one.
Automated codex exec runs are not saved unless you opt in.Read what Cloud sends and how to control it before you turn it on for work conversations. Cloud mode in detail covers manual plugin install, the hosted MCP endpoint, the Codex rules and the plugin's privacy contract.
~/.cairn-memory/data/memory.sqlite, with plaintext
search indexes in a folder beside it (memory.sqlite.raw-search). Nothing is
sent to Cairn, and no Cairn account is involved. Setup downloads the engine's
packages from npm.npx @cairn-ink/memory config --local-capture off,
or install with npx @cairn-ink/memory setup --local --no-capture.
npx @cairn-ink/memory raw list lists saved conversations without their text.
npx @cairn-ink/memory raw delete <conversation-id> previews what would be
removed, and adding --yes deletes it. Memories saved from that conversation
stay until you forget them.OPENAI_API_KEY, your memories and search text are sent to
OpenAI for semantic search, up to an estimated US$1 per day per running Cairn server. recall_memory also sends the text it selects,
and its model calls are not counted in that estimate. Pausing or turning off
saving does not stop these requests yet. Saved conversations are sent only if
you opt in with --raw-semantic or configure --context-embedder yourself.
To keep everything on your computer, do not give the server a key.
--no-context-semantic turns off semantic search and its requests, but with
a key present recall_memory still calls the model whenever your agent uses
it. Defaults, costs and off switches has the details.raw delete to remove a specific conversation.npx @cairn-ink/memory uninstall --local disconnects the
tools and keeps your data on disk. Uninstalling Cloud keeps your memories on
cairn.ink.Local data, backup and deletion · Privacy and threat model · Defaults, costs and off switches
Setup registers the memory server for every Claude Code and Codex session on this computer. Each session starts its own copy, so a harness that launches many agents also launches that many memory servers on one database. To keep workers from loading it:
--strict-mcp-config, which loads only
the servers you pass with --mcp-config.codex exec --ignore-user-config, which skips
the global configuration where the server is registered.Your own interactive sessions keep using memory as before.
From 0.6.8, Claude Code runs started by scripts or the Agent SDK (for example
claude -p) are not saved. Interactive sessions keep being saved as before.
In 0.6.6 and 0.6.7, these runs are saved like interactive sessions. To keep
harness runs out of the store on those versions, turn saving off for Claude Code with
npx @cairn-ink/memory config --local-capture off --client claude. This also
stops saving your interactive Claude Code sessions until you run
npx @cairn-ink/memory config --local-capture on --client claude.
This is a developer preview. Know these limits before you rely on it:
npx @cairn-ink/memory setup --local --client claude. On native Windows
setup --local refuses to run, so use WSL or the
source-checkout guide for PowerShell.brew upgrade updates Node. Fixed in the next release.~/.claude or ~/.codex is a symbolic link, and it does not support a
custom CLAUDE_CONFIG_DIR yet.source_unavailable) after you forget or correct a memory, until the other memories that came from a conversation it hid are corrected or forgotten. This needs a model key and is unchanged from 0.6.7; ordinary recall keeps working. After you forget something, the conversation it came from and any resumed or forked copy of it (for example claude --resume) are not saved from then on. Any conversation that tries to save a message dated within 30 minutes of the forgotten message is not saved from then on either, including one you start right after the forget. To resume saving, start a new conversation more than 30 minutes after the forgotten message was written. After any local forget, correct, conversation delete or Episode forget, conversations whose message times are unknown are hidden from Raw search, and a conversation that saves a message without a time is not saved from then on, including new conversations. Memories are kept. Claude Code and Codex normally record message times, so this only affects messages whose transcript entry has no timestamp.--retained-raw-profile: reading a saved conversation by its id and listing saved conversations are not yet stopped by a forget. On stores that were not upgraded with the offline safety migration they still return a conversation hidden by a forget or correction, with its text. On upgraded stores the hidden conversation is returned without its text, and listing saved conversations and the saved-text usage summary are refused (evidence_unavailable, source_unavailable) after a forget. Search, recall and memory sources do not return hidden conversations. Fixed in the next installer; until then cairn-memory raw delete --conversation ID --yes removes a hidden conversation's saved text. Installed setups do not expose these readers. Other limits that only direct integrations reach (session-start and summary reads after a forget, listing memories on stores upgraded with the offline safety migration, and index word statistics before cleanup) are listed in the changelog.recall_memory
returns model_not_configured, and keyword search still works. A fully local
model path is not verified yet.Roadmap · Changelog · What each claim rests on
Star the repository to follow new releases.
Cairn.ink Memory is the open-source memory layer in this repository. Cairn.ink is the hosted product, a shared memory map where people and their AI tools organize, review and share what they know. Cloud mode connects Claude Code and Codex to your Cairn.ink account. Local mode never contacts it.
@cairn-ink/memory, and the Claude Code plugin with its
marketplace manifest;The Cairn.ink hosted extraction service, user database, auth, billing, abuse controls and production operations live in a separate private repository. See architecture and self-hosting.
| If you want to | Read |
|---|---|
| See every setup option, switch modes or fix a stuck install | Installer guide |
| Connect Cloud by hand, or read its rules and privacy contract | Cloud mode in detail |
| Build from a source checkout or wire a client by hand | Local preview from source, Windows guide |
| Watch it run before installing | 36-second recorded walkthrough (MP4) |
| Build on the engine | Architecture, MCP tools |
| Use it from Hermes | Hermes setup |
| Report a security problem | SECURITY.md |
If a user asked you to install Cairn.ink Memory:
@cairn-ink/memory from npm. Its source is
github.com/Cairn-ink/cairn-memory. Do not install the unscoped
cairn-memory packages on npm or PyPI.--no-capture if the user
does not want that.npx @cairn-ink/memory setup --local or
npx @cairn-ink/memory setup --cloud. On a fresh install, a non-interactive
run without a mode flag writes nothing.The dependency-free plugin runtime and test suite require Node.js 20 or newer.
Maintainer-only Claude plugin validation requires Node.js 22 and is isolated
under tools/plugin-validation, so it is never installed with the plugin.
npm test
npm run test:setup
npm run validate
npm ci --prefix tools/plugin-validation
npm run validate --prefix tools/plugin-validation
For the local store on Node >=22.16, with no dependency installation:
npm run test:core
npm run demo:store
Contributions are welcome after reading CONTRIBUTING.md and the privacy invariants in docs/protocol.md. The code is licensed under Apache-2.0.