atomicstrata/atomicmemory
Portable semantic memory for AI agents: core engine, TypeScript SDK, framework adapters, MCP server, CLI, and host plugins.
AtomicMemory – Inspectable, correction‑aware memory for AI agents
What it is – A set of open‑source components (Core server, TypeScript SDK, CLI, adapters, and host plugins) that give LLM‑based agents a durable, queryable memory store. The memory can be run locally in Docker or accessed as a managed cloud service, and it is deliberately model‑agnostic so you can swap embeddings, rerankers, or LLM providers without changing your application code.
Why it matters – Typical LLM agents treat memory as an immutable log of past prompts, which makes it hard to correct outdated facts or to audit what the agent remembered. AtomicMemory adds:
- Correction‑aware updates – you can supersede, delete, or clarify entries instead of only appending.
- Inspectability – the Core server is open‑source (Rust + Postgres/pgvector) so you can audit mutation and retrieval paths.
- Portability – the same CLI/SDK protocol works whether you use the hosted cloud or a self‑hosted Core instance.
- Model‑flexibility – embeddings, reranking, and retrieval are pluggable behind explicit provider boundaries.
Core components
| Component | Language / Runtime | Status |
|---|---|---|
@atomicmemory/core |
Docker‑deployable Rust service (Postgres/pgvector) | published |
@atomicmemory/sdk |
TypeScript client library | published |
am CLI (@atomicmemory/cli) |
Rust binary | deprecated (use the am binary from releases) |
@atomicmemory/mcp-server |
Rust server that mediates between agents and Core | published |
| Framework adapters (LangChain, LangGraph, Vercel AI, OpenAI Agents, Mastra) | TypeScript | published |
| Host plugins (Claude‑Code, OpenClaw, Hermes, Codex, Cursor) | TypeScript | mixed (some coming soon) |
Getting started
- Install the CLI – one‑liner installer sets up a profile and, by default, creates a managed cloud memory project:
curl --proto '=https' --tlsv1.2 -fsSL https://get.atomicstrata.ai/install.sh | sh -s -- --init - Ingest and query – after
am inityou can store a fact and retrieve it:am memory ingest "I prefer aisle seats when flying." am memory search "seat preference" - Connect an agent – tell the MCP server which host (e.g., Cursor, Claude‑Code) should use this memory:
am integrate --yes --host cursor - Local mode – if you prefer to run everything yourself:
am init --local # pulls the Core Docker image am doctor --smoke # sanity‑check the local stack - Programmatic use – in a Node.js service, install the SDK and call the client:
import { MemoryClient } from '@atomicmemory/sdk'; const mem = new MemoryClient({ providers: { atomicmemory: { apiUrl: process.env.ATOMICMEMORY_CORE_URL!, apiKey: process.env.CORE_API_KEY! } } }); await mem.ingest({ mode: 'messages', messages: [{ role: 'user', content: 'I prefer aisle seats.' }], scope: { user: 'demo' } }); const res = await mem.search({ query: 'seat preference', scope: { user: 'demo' } });
Typical use cases
- Long‑running assistants that need to remember user preferences, task state, or corrected facts across sessions.
- Enterprise bots where auditability and the ability to delete or amend stored information are compliance requirements.
- RAG pipelines that want a mutable knowledge base rather than a static vector store.
- Multi‑model orchestration where the same memory service backs agents built on different LLM providers.
Performance claims – The README lists benchmark scores (BEAM‑100K/1M/10M, LoCoMo10) where AtomicMemory v66 achieves leading performance‑to‑cost ratios compared with published alternatives. Latency is targeted at single‑digit milliseconds for local retrieval, though exact numbers depend on hardware and dataset.
Installation & verification – The installer verifies SHA‑256 checksums and, when a GitHub CLI is authenticated, also validates build provenance. You can enforce attestation with AM_VERIFY_ATTESTATION=1.
License – Apache License 2.0 (per the LICENSE file).
Where to find more –
- Docs: https://docs.atomicstrata.ai
- Hosted cloud service: https://memory.atomicstrata.ai
- Repository layout and contribution guidelines are in the monorepo (
packages/,crates/,adapters/,plugins/).
Related
- Project
- Project
- Project
- Project
- Project