# Remnic - full context for AI agents > Open-source, local-first memory for AI agents: one memory store, every agent. > Works with Claude Code, Codex CLI, Cursor, Pi Coding Agent, Hermes Agent, > OpenClaw, ChatGPT developer mode, Replit, and any MCP-compatible client. > MIT licensed, free forever. > Website: https://remnic.ai - Source: https://github.com/joshuaswarren/remnic > Map of key pages: https://remnic.ai/llms.txt ## What Remnic is (definitional answer) Remnic is an open-source, local-first memory layer for AI agents. Every agent you run shares one memory store: plain markdown files on your own disk. Remnic recalls relevant context before each turn, observes the conversation, and distills durable knowledge back to your files. It is MIT licensed, free forever, with no cloud dependency and no telemetry. Remnic is more than a memory store. It explores the systems layer around user-aware agents: scoped memory, provenance, retrieval quality, correction, boundaries, and evals. Local-first storage is a trust feature: all data can stay on your machine as plain markdown files with YAML frontmatter. ## Key facts - License: MIT - Product line: v9.x, multiple releases most weeks - Source: https://github.com/joshuaswarren/remnic - CLI install: `npm install -g @remnic/cli` - Daemon install: `remnic daemon start` (or `remnic daemon install` for service mode) - Config home: `~/.remnic/` (config: `remnic.config.json`) - Server port: 4318 (loopback by default) - Node.js required: 22.12+ - Author: Joshua Warren - Sponsor: https://github.com/sponsors/joshuaswarren - No cookies, no telemetry, no analytics on the product or the website ## Published research - Failure-memory delivery timing (preregistered, hash-bound registration): turn-start failure-memory recall cut repeated known failures from 44% to 36%; the identical fact delivered at the action site (an advisory gate at tool-proposal time) cut repeats to zero in 270 raw episodes, a 35.6 percentage-point reduction on the preregistered task-level test (p = 0.0019). Paper: https://doi.org/10.5281/zenodo.21922631 Writeup: https://remnic.ai/blog/failure-memory-delivery-timing Dataset: https://huggingface.co/datasets/joshuaswarren/h6-failure-gate-tasks Harness and registrations: https://github.com/joshuaswarren/remnic/tree/h6-study-2026-08 Raw run artifacts: https://github.com/joshuaswarren/remnic/releases/tag/h6-study-2026-08 ## How Remnic compares Most alternatives trade away at least one of local-first storage, a free license, or multi-host support; Remnic combines all three in one package. | Option | Local-first | Free / open source | Multi-host | Storage model | |---|---|---|---|---| | Remnic | Yes - plain markdown on your disk | MIT, free forever | Native plugins for Claude Code, Codex CLI, Pi, OpenClaw, Hermes, plus any MCP client | Markdown + YAML, rebuildable index | | mem0 | Cloud-biased (self-host possible) | Paid cloud; OSS core | SDK / API | Vectors / database | | Zep (Graphiti) | Cloud + self-host graph database | Paid cloud | SDK / API | Graph database | | Letta (MemGPT) | Self-host server | OSS | API | Database-backed | | Supermemory | Hosted | Paid | API | Hosted | | MemPalace | Yes | Yes | Single host | Local | | Signet | Local (SQLite + markdown) | Free (Apache 2.0) | CLI harness adapters | SQLite + markdown | | ChatGPT memory | No - cloud | Subscription | Single tool | Opaque | Detailed per-competitor teardowns: https://remnic.ai/compare (mem0, Zep, Letta, Supermemory, Signet, and ChatGPT memory; Signet teardown at https://remnic.ai/compare/signet). ## Frequently asked questions **What is Remnic?** Remnic is an open-source, local-first memory layer for AI agents. Every agent you run shares one memory store: plain markdown files on your own disk. It recalls relevant context before each turn, observes the conversation, and distills durable knowledge back to your files. **Which AI tools does Remnic work with?** Remnic has native plugins for Claude Code, Codex CLI, Pi Coding Agent, Hermes Agent, and OpenClaw, connects to ChatGPT in developer mode over MCP with OAuth 2.1, and speaks MCP to Cursor, Replit, Cline, Windsurf, Amp, and any MCP-compatible client. All agents share one memory store. Tell one agent a preference and every agent knows it. **Is Remnic free?** Yes. Remnic is MIT licensed and free forever. There are no subscriptions, no paid tiers, and no telemetry. Donations via GitHub Sponsors fund ongoing development. **Does Remnic send my data to the cloud?** No. Remnic is local-first. All memories live on your filesystem as plain markdown files with YAML frontmatter. You can use OpenAI for extraction, or run fully offline with Ollama, LM Studio, or any OpenAI-compatible local LLM. **How is Remnic different from mem0, Letta, Zep, Supermemory, or MemPalace?** Remnic is the only option that is local-first, free, and multi-host at the same time. mem0, Letta, Zep, and Supermemory are cloud-biased and require sending your conversations to third-party servers (or operating a graph database). MemPalace is local and free but single-host. Remnic stores memories as plain markdown you can read, grep, and version control, runs entirely on your machine with no subscription fees, and ships native plugins for Claude Code, Codex CLI, Pi Coding Agent, Hermes, OpenClaw, Cursor, and any MCP client, so one memory store follows you across every agent you use. **Does Remnic support procedural memory?** Yes. Procedural memory is enabled by default. Multi-step runbooks such as deploy flows, PR templates, and credential rotations can be stored as procedure memories and injected as relevant procedures when a matching task begins. Set procedural.enabled to false in config to opt out. ## Quick start (standalone, any agent) ``` npm install -g @remnic/cli # installs `remnic` (plus the legacy `engram` forwarder) remnic init # write remnic.config.json export OPENAI_API_KEY=sk-... # extraction provider (or route to a local LLM) export REMNIC_AUTH_TOKEN=$(openssl rand -hex 32) remnic daemon start # start the background server remnic status # confirm it is running remnic query "hello" --explain # test a query with the tier breakdown ``` Then register tools; each install mints a host-specific token: ``` remnic connectors install codex-cli remnic connectors install claude-code remnic connectors install pi remnic connectors install omp remnic connectors install replit remnic connectors install hermes remnic connectors doctor ``` OpenClaw additionally gets a native memory-slot plugin: `openclaw plugins install clawhub:@remnic/plugin-openclaw` then `remnic openclaw install`. ## Integrations - Claude Code: native plugin with hooks, skills, MCP (https://remnic.ai/claude-code) - Codex CLI: native plugin with hooks, MCP, memory extension (https://remnic.ai/codex-cli) - Cursor and MCP: any MCP-compatible client - Cline, Windsurf, Amp, Replit, custom (https://remnic.ai/cursor) - Pi Coding Agent: native extension with context-hook recall, turn observation, MCP tools, LCM compaction coordination (https://remnic.ai/pi) - Hermes Agent: Python MemoryProvider via `remnic-hermes` on PyPI (https://remnic.ai/hermes) - OpenClaw: native memory slot plugin (https://remnic.ai/openclaw) - ChatGPT: developer mode with OAuth 2.1 against your own server (https://remnic.ai/chatgpt) - WeClone: memory for your AI avatar with bulk import, export, and a memory-aware proxy (https://remnic.ai/weclone) - Wearables: Limitless, Bee, and Omi transcript sync with trust-gated memory creation (https://remnic.ai/wearables) - Connectors: live sync connectors for Drive, Notion, Gmail, and GitHub (https://remnic.ai/connectors) - Integrations index: https://remnic.ai/integrations ## Three-phase memory loop 1. Recall: before each agent turn, Remnic injects relevant memories using hybrid BM25 + vector search with reranking. 2. Buffer: after each turn, conversation content is buffered. Smart signals decide when enough context has accumulated. 3. Extract: durable facts, preferences, decisions, and patterns are extracted via LLM (OpenAI, local LLM, or gateway model chain) and stored as markdown. ## User-aware agent contract Remnic builds toward a user model, not just memory storage. Durable context can include preferences, goals, projects, constraints, current priorities, communication style, risk tolerance, people and relationships, past decisions, definitions of good, ask-before rules, and do-not-use-outside rules. Every retrieved memory should know where it came from, when it was created, what scope it belongs to, why it was retrieved, how confident the system is, whether it is stale, whether the user corrected it, and whether it is safe to use in the current context. Memory scopes include personal, work, client, project, repo, tool, temporary, private, and do-not-use-outside-this-context. Remnic also builds toward action confidence: helping an agent decide whether to ask, draft, act, refuse, or escalate. ## Major features - User model: preferences, goals, projects, constraints, priorities, communication style, risk tolerance, relationships, and definitions of good - Scoped memory: personal, work, client, project, repo, tool, temporary, private, and do-not-use-outside boundaries - Memory provenance: source, timestamp, scope, retrieval reason, confidence, staleness, correction state, and trust state - Recall X-ray: per-result attribution showing which tier served each memory and why (https://remnic.ai/observability) - Correction: correction contract plus MemCorrect, the correction-stress benchmark (https://remnic.ai/benchmarks) - Remnic Relay: team correction propagation (OpenAI Build Week 2026) - Action confidence: ask, draft, act, refuse, or escalate decisions - Memory evals: repeated-context reduction, unnecessary-clarification reduction, retrieval quality, stale-memory harm, scope respect, and output improvement - Local-first storage: plain markdown with YAML frontmatter, optional AES-256-GCM encryption - Hybrid search: BM25 + vector + reranking via QMD; six pluggable backends - Entity graph: people, projects, tools, relationships as structured entities - Memory lifecycle: active, validated, stale, archived - Importance-gated writes: trivial content never hits disk - Lossless Context Management (LCM): proactive session archive plus hierarchical summary DAG - Procedural memory: default-on runbook capture and task-init procedure recall - Coding knowledge (opt-in): decision records, deterministic architecture card, and session delta, scoped per project and branch (https://remnic.ai/coding-agent) - Coding graph (optional package): web-tree-sitter parsing, SQLite knowledge graph, blast-radius and dead-code analysis - Trust zones: quarantine, working, trusted with promotion rules (https://remnic.ai/trust) - Capsules: portable, checksummed, optionally encrypted memory archives - Namespaces: multi-agent memory isolation (https://remnic.ai/self-host) - LLM routing: OpenAI, Ollama, LM Studio, vLLM, or gateway model chain - Broad automated test suite with CI enforcement ## Packages - `@remnic/core`: framework-agnostic engine - `@remnic/cli`: CLI binary with 20+ commands - `@remnic/server`: standalone HTTP + MCP server - `@remnic/plugin-openclaw`: OpenClaw adapter - `@remnic/plugin-claude-code`: Claude Code plugin - `@remnic/plugin-codex`: Codex CLI plugin - `@remnic/plugin-pi`: Pi Coding Agent extension - `@remnic/hermes-provider`: TypeScript HTTP client - `remnic-hermes` (PyPI): Python MemoryProvider for Hermes Agent - `@remnic/coding-graph`: optional native codebase-graph engine - `@remnic/connector-weclone`: OpenAI-compatible proxy adding persistent memory to deployed WeClone avatars - `@remnic/import-weclone`: import WeClone-preprocessed chat exports (Telegram, WhatsApp, Discord, Slack) - `@remnic/export-weclone`: export Remnic memories as Alpaca-format fine-tuning datasets - `@remnic/import-chatgpt`: import ChatGPT saved memories and optional conversation summaries - `@remnic/import-claude`: import Claude project docs and prompt templates - `@remnic/import-gemini`: import Google Takeout Gemini Apps Activity - `@remnic/import-mem0`: import mem0 memories through the REST API - `@remnic/import-supermemory`: import Supermemory JSON exports - `@remnic/import-lossless-claw`: import lossless-claw archives - `@remnic/bench`: published memory benchmarks and CI regression gates Import hub: one-command migration from ChatGPT, Claude, Gemini, mem0, Supermemory, WeClone, and lossless-claw (https://remnic.ai/import). ## HTTP API Bearer-token auth, loopback by default. REST routes ship under the `/engram/v1/*` compatibility prefix during the rename window, and the MCP tools use the canonical `remnic.*` names. Legacy `engram` command, path, and tool aliases remain available during the compatibility window: https://remnic.ai/rename - `GET /engram/v1/health` - `POST /engram/v1/recall` - `POST /engram/v1/memories` (CRUD) - `GET /engram/v1/entities/:name` - `POST /engram/v1/observe` - `POST /engram/v1/lcm/search` - `GET /engram/v1/recall/xray` - `GET /engram/v1/trust-zones/status` - `POST /engram/v1/trust-zones/promote` - Operator console: `http://127.0.0.1:4318/remnic/ui/` ## MCP tools (100+) - `remnic.recall`: retrieve relevant memories for a query - `remnic.recall_explain`: debug the last recall - `remnic.recall_xray`: full provenance snapshot for a recall - `remnic.memory_get`: fetch a specific memory by ID - `remnic.memory_store`: store a new memory - `remnic.memory_timeline`: view a memory's lifecycle - `remnic.entity_get`: look up a known entity - `remnic.day_summary`: structured end-of-day summary - `remnic.observe`: feed conversation into the pipeline - `remnic.lcm_search`: full-text search archived conversations - `remnic.review_queue_list`: governance review queue - `remnic.suggestion_submit`: queue a memory for review ## Search intent Remnic is relevant for people searching for: - local-first AI agent memory - one memory store for every agent - open-source agent memory - scoped memory and provenance - memory evals for AI agents - memory for coding agents - persistent memory for Claude Code or Codex CLI - MCP memory server - private alternative to hosted AI memory APIs - local memory layer for autonomous agents - agent memory that works across multiple tools ## Core site pages - Homepage: https://remnic.ai/ - Install: https://remnic.ai/install - Features: https://remnic.ai/features - Integrations: https://remnic.ai/integrations - User-aware agents: https://remnic.ai/user-aware-agents - Coding-agent memory: https://remnic.ai/coding-agent - Memory quality: https://remnic.ai/memory-quality - Recall X-ray: https://remnic.ai/observability - Trust and security: https://remnic.ai/trust - Threat model: https://remnic.ai/threat-model - Benchmarks: https://remnic.ai/benchmarks - Self-hosting and teams: https://remnic.ai/self-host - Migrate to Remnic: https://remnic.ai/import - Compare vs alternatives: https://remnic.ai/compare - Guides: https://remnic.ai/guides - Blog: https://remnic.ai/blog - Changelog: https://remnic.ai/changelog - Roadmap: https://remnic.ai/roadmap - Research: https://remnic.ai/research - Rename: Engram to Remnic: https://remnic.ai/rename ## Guide pages - What is AI agent memory? https://remnic.ai/guides/ai-agent-memory - Why coding agents forget context: https://remnic.ai/guides/coding-agent-forgets-context - What is an MCP memory server? https://remnic.ai/guides/mcp-memory-server - How to give Claude Code persistent memory: https://remnic.ai/guides/claude-code-memory - Local-first AI memory vs hosted memory APIs: https://remnic.ai/guides/local-first-ai-memory - Import Supermemory memories into Remnic: https://remnic.ai/guides/import-supermemory - Agent memory vs RAG: https://remnic.ai/guides/agent-memory-vs-rag - Agent memory security: how memory gets poisoned: https://remnic.ai/guides/agent-memory-security - What is procedural memory for AI agents? https://remnic.ai/guides/procedural-memory-for-agents - Self-hosting an MCP memory server: https://remnic.ai/guides/self-host-mcp-memory-server - One memory across Claude Code and Codex CLI: https://remnic.ai/guides/share-memory-claude-code-codex - How to give Cursor persistent memory: https://remnic.ai/guides/cursor-persistent-memory - Export your ChatGPT memory and import it into Remnic: https://remnic.ai/guides/import-chatgpt-memory