RepositoryPython
moorcheh-ai

moorcheh-ai/memanto

Memory that AI Agents Love!

2.4kstars
736forks
4issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: memanto

#1 Repository of the week

1
TINIX TRENDING·Topic: moorcheh

#1 Repository of the week

1
TINIX TRENDING·Topic: semantic-memory

#1 Repository of the week

MEMANTO Logo

Your agents focus. Memanto remembers.

A companion memory agent with its own intelligence that keeps your agents focused on their tasks.

Persistent memory for Claude Code, Cursor, Codex, and 14+ other agents, built on the world's first information-theoretic search engine. 100% free, open source, and runs entirely on your machine - no API keys, no vector database, no backend to babysit.

Join Discord Setup Video Docs

PyPI - Total Downloads Ask DeepWiki License: MIT PyPI Version Twitter / X

moorcheh-ai%2Fmemanto | Trendshift

Star History Chart


What Is MEMANTO?

MEMANTO is a memory agent. It remembers, recalls, and answers — so your agents can achieve long-term goals and avoid confusion.

Most memory tools today are passive infrastructure: agents have to query them, parse the results, and figure out what to do next. MEMANTO is built differently. It's an active memory agent designed from the gaps agents themselves named when asked about their memory — three operations (remember, recall, answer) that give your agents persistent context across sessions, with state-of-the-art retrieval and zero ingestion latency.

Memanto in action

Without Memanto

Before

With Memanto Connected

After

Get started in 2 minutes

Works on macOS, Linux, and Windows.

Option A — Fully local (no account, no API key):

pip install memanto
memanto           # choose "On-Prem" — guides through Docker + Ollama setup

Requires Docker. Everything runs and stays on your machine.

Option B — Free cloud (no card, ~60 seconds):

pip install memanto
memanto           # choose "Cloud" — paste your free Moorcheh API key

Get your free API from : https://console.moorcheh.ai/api-keys

Switch between local and cloud at any time with memanto config backend.


What you get

  • No more re-explaining your codebase after every context reset. Memanto persists across sessions, your agent picks up where it left off.
  • Fewer tokens burned on repeated context. Memories are retrieved only when relevant, so context windows go further.
  • Memories searchable the instant they're stored. Zero indexing wait, no LLM extraction tax at write time.
  • One pip install. No vector DB to provision, no schema, no rerankers, no backend service to babysit.
  • Zero idle cost. Cloud scales to zero when not in use. On-prem runs only when you use it.

Integrations

Works with Claude Code, Cursor, Codex, Windsurf, Cline, Continue, Goose, GitHub Copilot, and more. See the full list →

memanto connect <integration-tool-id> # integrates in one command
#eg: memanto connect claude-code    

The Six Gaps

Most memory tools are passive infrastructure — agents have to query them, parse the results, and figure out what to do. Memanto is an active memory agent built from the gaps models themselves named:

#GapWhat MEMANTO does about it
1Static injection — memory arrives as a blob, not queryable by relevanceQueryable, not injectable
2No temporal decay — a preference from 6 months ago weighs the same as yesterday's deadlineVersioning, recency signals, temporal queries
3No provenance — can't tell explicit facts from inferred patterns or outdated infoConfidence + provenance metadata on every memory
4Flat memory — episodic, semantic, and procedural all collapsed to one layerTyped and hierarchical — 13 built-in memory categories
5No writeback — contradictions silently coexistConflict detection, explicit versioning, no silent overwrites
6Indexing delay — mandatory LLM extraction, graph construction bottleneckZero-overhead ingestion, available at write time

"My memory exists as a static snapshot injected into context — useful, but fundamentally passive." — A model quote that became Memanto's design brief.


Benchmarks

  • 89.8% on LongMemEval and 87.1% on LoCoMo — outperforming Mem0, Zep, and Letta. Public datasets →
  • Three primitives, not two: remember, recall, and answer LLM-grounded responses from memory, no extra API key.
  • Single-query retrieval. No multi-stage pipelines, no graph schema, no rerankers.
  • Typed semantic memory. 13 categories — instruction, fact, decision, goal, preference, relationship, and more.

Architecture

Memanto's retrieval is powered by Moorcheh, an information-theoretic semantic engine. It runs as a local Docker container (free, no account) or as a free cloud service (100K free operations) the memanto CLI manages either for you.

MEMANTO architecture

On-Prem

MEMANTO architecture


Why Moorcheh?

Moorcheh is the semantic engine behind Memanto's retrieval. Unlike vector databases that rely on approximate search and require indexing pipelines, Moorcheh uses an information-theoretic approach that returns exact results with zero indexing delay, write a memory and it's searchable immediately.

This means Memanto doesn't need a separate vector DB, embedding pipeline, or reranking stage. The Moorcheh engine runs as a local Docker container for on-prem users (no account needed) or as a managed cloud service with a free tier. Either way, it's invisible - the memanto CLI handles it.


Setup & Demo

Watch the video


CLI Reference

CapabilityCommandsWhat it does
System status dashboardmemanto statusView environment, configuration, server health, active session, and registered agents.
Local REST API + Web UImemanto serve, memanto uiRun the MEMANTO REST API locally and open an interactive browser UI. (Optional for CLI usage).
Agent lifecycle managementmemanto agent ...Create/list/delete agents, activate/deactivate sessions, and run agent bootstrap for an intelligence snapshot.
Memory capture at scalememanto rememberStore single memories, batch-ingest from JSON, or --from-conversation to automatically extract facts from chat logs.
Single-memory deletionmemanto forgetDelete one bad or outdated memory from the active agent after confirmation, or without the prompt with --force.
File upload to memorymemanto uploadUpload documents (.pdf, .docx, .xlsx, .json, .txt, .csv, .md) directly into an agent's memory namespace — content becomes instantly searchable via recall.
Advanced retrieval modesmemanto recallRun standard search plus temporal queries (--as-of, --changed-since) with filters.
Grounded QA over memorymemanto answerGenerate RAG answers using retrieved memory context.
Daily intelligence workflowsmemanto daily-summary, memanto conflictsGenerate summaries, detect contradictions, and resolve conflicts interactively.
Session and automation controlsmemanto session ..., memanto schedule ...Inspect sessions and enable scheduled daily summary runs.
Memory file pipelinesmemanto memory export, memanto memory syncExport structured memory markdown and sync MEMORY.md into projects.
Configuration inspectionmemanto config showInspect API key status, active agent/session, server settings, and schedule time.
Multi-agent ecosystem integrationmemanto connect ...Connect/remove/list integrations for Claude Code, Codex, Cursor, Windsurf, Antigravity, Gemini CLI, Cline, Continue, OpenCode, Goose, Roo, GitHub Copilot, and Augment (local or global).

For a complete command reference, see the CLI User Guide.

Supported Memory Types

instruction, fact, decision, goal, commitment, preference, relationship, context, event, learning, observation, artifact, error

Use memory types to categorize what you store so retrieval is cleaner and more controllable:

  • Save with a specific type: memanto remember "User prefers concise answers" --type preference
  • Filter by type when searching: memanto recall "user communication style" --type preference

📦 SDKs

  • TypeScript / Node.js — @moorcheh-ai/memanto — boots a local Memanto server via uvx and exposes an ergonomic Memanto client (remember / recall / answer).

REST API

Memanto exposes a session-based REST API for programmatic access. Start the server locally:

memanto serve

Full endpoint reference is available at docs.memanto.ai/api and at http://localhost:8000/docs when the server is running.


Research

Memanto: Typed Semantic Memory with Information-Theoretic Retrieval for Long-Horizon Agents

@misc{abtahi2026memantotypedsemanticmemory,
      title={Memanto: Typed Semantic Memory with Information-Theoretic Retrieval for Long-Horizon Agents}, 
      author={Seyed Moein Abtahi and Rasa Rahnema and Hetkumar Patel and Neel Patel and Majid Fekri and Tara Khani},
      year={2026},
      eprint={2604.22085},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2604.22085}, 
}

Support

Have questions or feedback? We're here to help:


MIT License

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
IAAR-Shanghai/Awesome-AI-Memory

Awesome AI Memory | LLM Memory | A curated knowledge base on AI memory for LLMs and agents, covering long-term memory, reasoning, retrieval, and memory-native system design. Awesome-AI-Memory 是一个 集中式、持续更新的 AI 记忆知识库,系统性整理了与 大模型记忆(LLM Memory)与智能体记忆(Agent Memory) 相关的前沿研究、工程框架、系统设计、评测基准与真实应用实践。

1.3k
Dec 1, 2026
RepositoryPython
mem0ai/mem0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

69.9k
Nov 27, 2026
RepositoryPython
EverMind-AI/EverOS

One portable memory layer for every AI agent: local-first, Markdown-native, user-owned, and self-evolving across apps, tools, and workflows.

14.0k
Nov 30, 2026
RepositoryPython
plastic-labs/honcho

Memory library for building stateful agents

8.4k
Dec 1, 2026
RepositoryPython
memodb-io/memobase

User Profile-Based Long-Term Memory for AI Chatbot Applications.

3.0k
Jan 11, 2026
RepositoryPython
oceanbase/powercontext

Agent memory: long-term memory & agent memory handoff. Claude Code & Codex.

1.9k
Nov 29, 2026
RepositoryPython
CodeAbra/iai-personal-memory-engine

A cyber brain for your AI. It never forgets a detail, remembers exactly what you said, and learns how you work over time. Free, local, works with Cursor, Claude Code, Codex, OpenClaw, Hermes and more. MIT.

925
Nov 13, 2026
RepositoryPython
NousResearch/hermes-agent

The agent that grows with you

267.7k
Dec 2, 2026
RepositoryTypeScript
thedotmack/claude-mem

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

121.3k
Dec 2, 2026