onememory
Provides OpenAI Codex with a shared, persistent memory layer across sessions, including project-scoped configuration, decisions, conventions, failures, and solutions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@onememorywhat's the current Node version for this project?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
onememory
One memory across every agent.
onememory is an open-source, self-hostable, local-first persistent memory engine for AI coding
agents and AI assistants. It gives every agent — Claude Code, OpenAI Codex, Cursor, Pi, OpenCode,
or any MCP-compatible runtime — a shared, low-token, continuously improving memory layer, so agents
arrive knowing your project, its decisions, conventions, failures, and solutions.
Status: Phase 1 implementation. The local CLI, embedded and Postgres storage, retrieval, MCP, and project-scope Claude Code/Codex wiring are implemented. See the phased plan for verification evidence and remaining gates.
Why
Agent memory today is either a giant manually-maintained AGENTS.md or a naive vector store that
dumps thousands of tokens of stale, duplicated context into every session. onememory is built on
a different premise:
Memory is not a vector database. It is a typed knowledge system with a lifecycle.
Ten memory layers — episodic, semantic, procedural, working, project, entity, decision, failure, preference, source — instead of one undifferentiated pile of text.
An explicit lifecycle — observe → ingest → normalize → extract → classify → deduplicate → entity-resolve → score → store → retrieve → reinforce → consolidate → decay → archive.
Temporal truth — memories carry
valid_from/valid_until; questions like "what Node version does this project use?" return the current fact, not every fact ever seen.Token efficiency as a first-class metric — retrieval packs a token budget with the most information-dense memories, not the most numerous.
Code memory without re-embedding your repo — git fingerprints mean unchanged files cost zero tokens on re-index; drift marks only affected memories stale.
Skills from repeated successes — verified failure/solution patterns become reusable skills.
Local-first — works 100% offline with no account, no telemetry, and local models (Ollama / on-device embeddings). Hosted LLM providers are optional, not required.
Postgres-compatible — same Postgres dialect and schema embedded (no Docker), via Docker Compose, or on any cloud / hosted Postgres. Multi-tenant SaaS is a deployment mode, not a fork.
Related MCP server: memento
Package
CLI |
|
License | Apache-2.0 |
Runtime | TypeScript on Bun / Node LTS |
Storage | Postgres + pgvector (server) · PGlite embedded (local) |
Protocol | REST + MCP (stdio & Streamable HTTP) |
Quick start
Initialize a project with the local-first defaults. Runtime wiring is opt-in:
npx @onememory-ai/cli init --with-claude --with-codex
onemem doctor
onemem serveinit registers the project and writes project-scoped Claude Code and Codex configuration.
doctor reports each runtime under agent runtimes and checks its MCP URL against the daemon
configuration. Start the daemon before opening either agent.
The generated MCP URL follows daemon.host and daemon.port in .onememory/onememory.yaml.
If you run onemem serve --port <n>, that runtime override does not rewrite the generated agent
configuration; doctor reports the mismatch. To keep the agent URL and daemon aligned, update
daemon.port and rerun onemem init --with-claude --with-codex.
The default local profile has no configured embedder or LLM provider. Doctor reports those as optional degraded capabilities; lexical and graph retrieval and heuristic extraction remain available without external calls.
Documentation
Path | Contents |
| Landscape research (Supermemory, Mem0, Zep, Letta, MCP memory servers) with primary-source citations |
| Architecture decision records |
| Memory model, lifecycle, event/memory schemas, database schema, retrieval design, code memory, security & deployment |
| Phased implementation plan |
| Issue backlog per mission (mirrored to GitHub once the repo is published) |
| Risks and unresolved architectural decisions |
Contributing
Read AGENTS.md first — it is the operating manual for both human and agent contributors.
This server cannot be deployed
Maintenance
Related MCP Connectors
- memnodeOAuthdev.memnode
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
A second brain for your AI agent. Shared memory for your team's AI agents, plus public and private knowledge bases — works with ChatGPT, Claude, Cursor and any MCP client.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents to maintain persistent, cross-session memory of codebase architecture, naming conventions, and decisions through MCP tools. Eliminates repetitive project re-explanation by automatically injecting stored context into every session with local-first SQLite storage and optional team sharing capabilities.4MIT
- AlicenseNot gradedqualityAmaintenanceProvides persistent memory for AI coding agents via MCP, enabling agents to store and semantically recall facts, events, and lessons across sessions, all running locally without cloud dependencies.Apache 2.0
- AlicenseAqualityAmaintenanceLocal-first persistent memory for coding agents and MCP clients. It keeps important project context across sessions and reduces wasted tokens by retrieving only relevant memories instead of replaying unnecessary history.8MIT
- AlicenseNot gradedqualityAmaintenanceProvides local-first persistent memory with a typed knowledge graph and bounded multi-hop retrieval via MCP, letting coding agents and local LLM systems store, search, and recall facts across sessions without hosted services or model dependencies.MIT