Memora Agent Memory
A structured memory layer that stores rich agent history and retrieves it through abstractions and semantic cues.
- Source repo
- microsoft/Memora
- Stars
- ★ 268
- Last updated
- 5mo ago
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 45/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A Python team building a conversational assistant can retrieve a user's history before each response and save the completed exchange afterward.
- Not a fit if
- Teams wanting a ready-made chat app or full agent runtime
- Teams without a GPU that want the experimental GRPO retrieval policy
- Maintenance
- Commits in the last 6 monthslast commit 2026-06-16
- Source review
- 45/100 · Major gaps 1 safety controls not found
What does this agent do, and when should you use it?
Memora is a Python memory framework for AI agents built around a three-part representation: memory values, primary abstractions, and cue anchors. Full-fidelity information remains in an unindexed memory value, while indexed abstractions and cues provide the structure used for organization, updates, and retrieval. Its library includes MemoraClient, chat and document builders, document processors, ChromaDB and Redis clients, and semantic, prompted, hybrid, and experimental GRPO retrieval components. Applications write conversations or documents through the Python API, retrieve relevant entries, and inject them into their own model prompts; Memora does not define a complete agent runtime or end-user interface. The source distribution also contains Hydra-configured runners for the LoCoMo and LongMemEval benchmarks.
The lifecycle begins with MemoraClient.add(context, type="doc"). Memora processes conversations or documents, segments conversations into topical episodes, and extracts factual, episodic, and procedural information into entries containing a memory value, primary abstraction, and cue anchors. It stores memories with semantic embeddings in ChromaDB, deduplicates, merges, and updates entries, and can maintain a cue index that maps higher-level cues to memories. MemoraClient.query(context, top_k=5) performs semantic retrieval, while MemoraClient.advance_query(...) exposes prompted, hybrid, or experimental GRPO strategies. Prompted retrieval uses an LLM-driven iterative policy, hybrid retrieval combines semantic similarity with BM25 or keyword matching, and GRPO can load a trained local retrieval-policy checkpoint. The returned entries expose fields such as entry.index and entry.value; the host application is responsible for inserting them into a prompt and producing the final response. The repository also includes processors for PDF, DOCX, Excel, Markdown, and other document formats, an interactive memory-store browser, and benchmark experiment runners.
- A Python team building a conversational assistant can retrieve a user's history before each response and save the completed exchange afterward.
- Long-context memory researchers can use the LoCoMo and LongMemEval runners to test semantic, prompted, or cue-indexed retrieval configurations.
- Engineers building a multi-agent environment can expose a unified memory space to several agents while scoping access by agent or role.
- Applications that retain facts, episodes, and procedures can preserve detailed source information in memory values while retrieving through abstractions and cues.
- Teams with GPU capacity can collect and score retrieval trajectories, then train a Qwen 3B/7B policy with GRPO and LoRA.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install -e
- Environment variables
OPENAI_API_KEYAZURE_OPENAI_ENDPOINTAZURE_MANAGED_IDENTITY_CLIENT_ID- Runtime
- Python 3.10+
How do you install or deploy this agent?
Python >= 3.10 is required. Install from source with:
git clone https://github.com/microsoft/Memora
cd Memorapip install -e .
For the documented standard configurations, set up either OpenAI API or Azure OpenAI. With OpenAI, run export OPENAI_API_KEY="sk-..." and configure openai.api_type: "openai", openai.api_key: "${oc.env:OPENAI_API_KEY}", and openai.embedding_model: "text-embedding-3-small" in YAML. For Azure, set AZURE_OPENAI_ENDPOINT and AZURE_MANAGED_IDENTITY_CLIENT_ID, then configure the chat and embedding endpoints, API version, deployment name, and embedding model. A GPU is explicitly required only for training the experimental GRPO policy.
How do you use this agent?
Construct the cfg object as demonstrated in quickstart.py, then run:
from memora.memora_client import MemoraClientmemory_client = MemoraClient(cfg=cfg, user_id="my_user")
memory_client.add("Alice is moving to Seattle for a new job.", type="doc")
results = memory_client.query("Where is Alice moving?", top_k=5)for entry in results:
print(f"{entry.index}: {entry.value}")For prompted retrieval, call memory_client.advance_query("Where is Alice moving?", query_type="prompt", top_k=5). In an agent loop, call query before response generation, place the returned memories in the host application's prompt, and save the combined User and Assistant exchange afterward with add(..., type="doc"). To run the documented LoCoMo example, enter app/locomo and execute python run_memora.py llm.model="gpt-4.1-mini" memory.memory_store="memora-cue" memory.enable_cue_index=True retrieval.strategy="prompt".
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- verifiable attribution
- rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.
What are this agent's strengths and limitations?
- Its separation of unindexed memory values from indexed primary abstractions and cue anchors preserves source detail without embedding the full raw content directly.
- Memora covers ingestion, segmentation, deduplication, merging, updates, retrieval, and result formatting behind the relatively small MemoraClient interface.
- It offers semantic, LLM-prompted, semantic-plus-BM25 hybrid, and experimental learned retrieval paths for different recall and execution requirements.
- A shared memory space, agent or role scoping, and support for local or remote storage configurations make it applicable to multi-agent environments.
- LoCoMo and LongMemEval runners are included for testing configurations against established long-term-memory benchmarks.
- The documented standard setup depends on OpenAI API or Azure OpenAI model and embedding services, requiring credentials, network access, and paid external calls.
- Prompted retrieval performs iterative LLM-guided searches, which can add latency and model-call expense compared with one-pass semantic retrieval.
- The GRPO path is explicitly experimental; training requires a GPU and adds trajectory collection, scoring, LoRA training, and checkpoint-management work.
- The host application must still implement answer generation, prompt assembly, and the surrounding agent loop; this is not a ready-made chat application or full agent runtime.
- Migrating an existing memory system requires integration work and conversion into Memora's value, abstraction, and cue representation, with ChromaDB and embedding configuration in the documented flow.
How does this agent compare with similar options?
Unlike RAG pipelines or flat stores that directly index all memory content, Memora keeps the full memory value unindexed and indexes a one-to-one primary abstraction plus many-to-many cue anchors. Compared with graph-based knowledge bases, it uses a lighter scaffolding layer and does not require the underlying memory to conform to a fixed graph structure. The intended tradeoff is richer retained detail with more controlled retrieval entry points; adopters should validate the practical result with the included LoCoMo or LongMemEval experiments.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Memora Agent Memory This agent | 45 · Major gaps | Library / SDKFree + model costs | ★ 268 | 5mo ago | Python | OpenAI API |
| HUD | 61 · Some gaps | CLIFree + model costs | ★ 336 | 2d ago | Python | OpenAI API · Claude API |
| Memanto | 56 · Major gaps | CLIFreemium | ★ 2.4k | today | Python | Codex · Claude Code |
| AI Agents Projects & Tutorials | Insufficient evidence | Library / SDKFree + model costs | ★ 3k | 26d ago | Jupyter Notebook | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The code shows the browser and CLI reading a local database path, searching, and exporting reports, but does not explain path permission boundaries or protection for exported data, so least privilege and sensitive-data handling are only partial. Configuration examples mention API keys and environment variables without describing the full data flow or secret handling; ordinary browsing, memory writes, and external model calls have no confirmation step. No recovery or rollback mechanism is shown. The MIT license, Microsoft copyright notices, and security reporting guidance clearly support full source-attribution credit.
The README says Python >=3.10 while its badge says 3.12; dependencies are unpinned and no lockfile or availability guidance is shown, weakening consistency and dependency availability. The CLI prints exceptions and exits, but handling is broad and does not provide diagnosis for common failures.
The README addresses developers building agent memory and lists memory types, retrieval strategies, storage backends, and two benchmark scenarios, providing useful scenario coverage. Boundaries are mostly expressed as feature claims; privacy isolation, shared memory, and backend compatibility are not substantiated by the supplied code, and automatic-ingestion triggers and conditions are broad. Python, Azure/OpenAI configuration, and GPU training requirements offer some environment guidance.
Project structure, installation steps, a quick example, benchmark instructions, and an MIT license are present, but installation guidance is brief and does not explain config initialization or dependency groups. CLI and quick-start examples help, while no FAQ is shown. GRPO is marked experimental, but other limitations and maintenance plans are sparse. The CLI reports version 0.1.0 and no changelog is supplied; Microsoft provenance is verified and a security reporting path is given, but named maintainers and update cadence are absent.
Memory operations, browser statistics and reports, and multiple retrieval options offer direct utility for agent developers, with readable example output. Claims of more precise access, deduplication, and coordination are mostly README descriptions without result evidence in the supplied files. The dependency set spans many database, model, and training components, with no slim installation option or cost guidance, so cost-benefit is only partly established.
The README describes the representation, workflow, and usage, while code directly demonstrates browser and CLI behavior; several capability claims are not corroborated by supplied code or independent materials. Some claims are distinguishable from observed facts, but effectiveness language is not clearly labeled as unverified in this packet, limiting traceability and separation of fact from inference.
- Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
- Python version information conflicts: the README badge says 3.12, while installation requires >=3.10.
- The supplied material gives limited detail on secrets, external model calls, and memory storage or data flow; verify the relevant implementation and configuration before using sensitive information.
- Dependencies are unpinned and include many training and model components; the supplied material contains no dependency security audit evidence.
FAQ
Is an OpenAI service required?
Does Memora generate the final answer?
Can several agents share memory without sharing everything?
Is a GPU necessary?
How should a team evaluate it for long conversations?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.