Memori

Active
GitHub Python NOASSERTION

Description

Agent-native memory infrastructure that turns agent execution and conversation into structured, persistent state with an LLM-agnostic memory layer, MCP integration, and Python/TypeScript dual SDK support.

Key Features

  • Agent-native memory infrastructure converting conversations and execution into structured persistent state
  • LLM-agnostic design supporting OpenAI, Anthropic, and any model provider
  • Python/TypeScript dual SDK with MCP one-command integration for Claude Code/Cursor/Codex
  • 81.95% accuracy on LoCoMo benchmark using only 4.97% of full-context token footprint
  • Entity attribution system tracking memory provenance by user/agent/process
  • Memori Cloud zero-config deployment and BYODB self-hosted database modes

Use Cases

💡 Cross-session persistent memory and context recovery for AI agents
💡 Long-term tracking of user preferences and interaction history in customer service
💡 Shared coding conventions and project agreements across development teams
💡 Shared state and decision records in multi-agent collaboration
💡 Reducing LLM context window costs while maintaining reasoning quality

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (16.3k stars)
  • Responsive to issues, low backlog

⚠️ Limitations

  • No clear open-source license

Quick Start

```bash
pip install memori
# or
npm install @memorilabs/memori
```

Set `MEMORI_API_KEY` and `OPENAI_API_KEY` environment variables, then wrap your LLM client with Memori:
```typescript
import { Memori } from '@memorilabs/memori';
const mem = new Memori().llm.register(client).attribution('user_123', 'support_agent');
```
Conversations are automatically persisted and recalled. MCP integration: `claude mcp add --transport http memori https://api.memorilabs.ai/mcp/`

Related Projects

MemAgent

1.1k · Python
Stale B

A MemAgent framework that can extrapolate to 3.5M context tokens, along with a training framework for RL training of any agent workflow.

memoryagentrag +2
  • · Ultra-Long Context Processing: Extrapolate from 8K training context to 3.5M tokens with performance loss under 5%
  • · Reinforcement Learning Driven: Trained with RLVR (Reinforcement Learning from Verifiable Rewards), extends DAPO algorithm for end-to-end multi-turn conversation optimization
  • · Linear Time Complexity: Breaks through computational bottlenecks in long-text processing with linear resource scaling

memU

14.4k · Python
Active A

A memory system for 24/7 proactive agents with MCP protocol integration, providing long-term memory management, skill storage, and proactive reasoning capabilities for continuously running AI agents.

memoryagentmcp +2
  • · 24/7 proactive memory agent that continuously captures and understands user intent
  • · File-system-like memory structure with folders, files, symlinks, and mount points for organized knowledge
  • · Significantly reduces LLM token cost with smaller context windows (~1/10 of comparable usage)

EverOS

12.7k · Python
Active A

EverOS is a platform for building, evaluating, and integrating long-term memory for self-evolving agents, enabling AI agents to continuously accumulate experience and optimize themselves.

memoryagentpython +2
  • · Markdown as source of truth — all memory persists as .md files, editable with Obsidian/Git and version-controlled
  • · Lightweight three-piece storage — Markdown (truth) + SQLite (state/queue) + LanceDB (vector+BM25+scalar), no heavy dependencies
  • · Hybrid retrieval — BM25 + vector (HNSW/IVF-PQ) + scalar filtering in a single LanceDB query

HyperDB

1.4k · Python
Stale C

A hyper-fast local vector database for use with LLM Agents, providing lightweight vector storage and similarity search capabilities for embedding as instant memory and knowledge retrieval components in agent applications.

vector-databasepythonagent +2
  • · Hyper-fast local vector database designed specifically for LLM Agents
  • · C++ high-performance backend with hardware-accelerated operations via MKL BLAS
  • · Simple unified interface compatible with all major LLM agent frameworks