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

At a glance

How it runs
Library / SDKCLI
Works with
Universal · cross-platformOpenAI API
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Python >= 3.10ChromaDBHydraOpenAI API or Azure OpenAIGPU for optional GRPO trainingShell / CLINetwork accessLocal filesystem
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

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.

  1. A Python team building a conversational assistant can retrieve a user's history before each response and save the completed exchange afterward.
  2. Long-context memory researchers can use the LoCoMo and LongMemEval runners to test semantic, prompted, or cue-indexed retrieval configurations.
  3. Engineers building a multi-agent environment can expose a unified memory space to several agents while scoping access by agent or role.
  4. Applications that retain facts, episodes, and procedures can preserve detailed source information in memory values while retrieving through abstractions and cues.
  5. 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_KEY AZURE_OPENAI_ENDPOINT AZURE_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 Memora

pip 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 MemoraClient
memory_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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Verified present in source (3/3)
  • verifiable attribution
Not found in source — apply before daily use
  • 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?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
45/ 100 5-point scale 2.3 / 5
Trust 11/29
Reliability 5/14
Adaptability 9/18
Convention 10/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

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.

Reliability5 / 14 · 1.8/5

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.

Adaptability9 / 18 · 2.5/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability3 / 8 · 1.9/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision dec3f8f2444e
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/memora.svg)](https://followagents.com/en/agents/memora)
<a href="https://followagents.com/en/agents/memora"><img src="https://followagents.com/badge/memora.svg" alt="FARS review"></a>

FAQ

Is an OpenAI service required?
The documented standard configurations support OpenAI API and Azure OpenAI. Experimental GRPO retrieval can use a trained local Qwen 3B/7B policy instead of prompted retrieval calls, but the supplied material does not establish that the complete ingestion, embedding, and answer-generation path operates without a configured model service.
Does Memora generate the final answer?
It retrieves and formats memories for prompt injection, but the agent example leaves response generation to the host application. Your code must assemble the prompt and implement the final response logic.
Can several agents share memory without sharing everything?
Yes. The project describes a unified memory layer for agents in the same environment together with agent- or role-based scoping for isolation, privacy, and selective sharing.
Is a GPU necessary?
No GPU requirement is documented for installation, semantic retrieval, or prompted retrieval. A GPU is explicitly required for training the experimental GRPO retrieval policy.
How should a team evaluate it for long conversations?
Use the included LoCoMo and LongMemEval runners, overriding the model, memory store, cue index, and retrieval strategy through Hydra. No single production performance or cost result is supplied, so evaluation should use data and service settings close to the intended deployment.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts