memU is a memory harness for AI agents. Feed it raw data — conversations, documents, images — and it automatically builds a structured, queryable memory layer your agents can call at any time.
- Ingest anything: conversations, files, URLs, multimodal inputs
- Auto-structure: no manual tagging — memU extracts, categorizes, and cross-links memories automatically
- Agent-ready: retrieve relevant context in one call, reduce token cost by up to 10x
memU Bot — The enterprise-ready proactive AI assistant built on memU. Remembers everything, acts autonomously.
- One-click install, running in under 3 minutes
- Builds long-term memory and acts on user intent proactively (24/7)
- Reduces LLM token cost with compressed, structured context (~1/10 comparable usage)
Try now: memu.bot · Source: memUBot on GitHub
Raw Data → Structured Memory → Agent Context
Your Workspace memU Pipeline Agent
───────────────────── ───────────────────── ──────────────────
chat logs → ingest & parse → retrieve()
documents → extract & categorize → one call, typed results
images / audio → cross-link memories → 10x less tokens
URLs / APIs → build filesystem index → always up to date
- Ingest — feed memU your raw workspace: chat logs, docs, images, any modality
- Extract — facts, preferences, skills, and relationships are pulled out automatically
- Organize — memories are structured like a filesystem: hierarchical, browsable, linkable
- Retrieve — agents get back only the relevant context, scoped to user or task
memU treats memory like a file system — structured, hierarchical, and instantly accessible.
| File System | memU Memory |
|---|---|
| 📁 Folders | 🏷️ Categories (auto-organized topics) |
| 📄 Files | 🧠 Memory Items (extracted facts, preferences, skills) |
| 🔗 Symlinks | 🔄 Cross-references (related memories linked) |
| 📂 Mount points | 📥 Resources (conversations, documents, images) |
memory/
├── preferences/
│ ├── communication_style.md
│ └── topic_interests.md
├── relationships/
│ ├── contacts/
│ └── interaction_history/
├── knowledge/
│ ├── domain_expertise/
│ └── learned_skills/
└── context/
├── recent_conversations/
└── pending_tasks/
Just as a file system turns raw bytes into organized data, memU transforms raw interactions into structured, searchable, proactive intelligence.
If you find memU useful or interesting, a GitHub Star ⭐️ would be greatly appreciated.
| Capability | Description |
|---|---|
| 🗂️ Raw Workspace Ingestion | Automatically ingests conversations, documents, images, and multimodal data from any source |
| 🧠 Auto Memory Extraction | Extracts facts, preferences, skills, and relationships without manual tagging |
| 🤖 Agent-Ready Retrieval | One-call context loading — scoped, ranked, and ready for injection into any agent |
| 💰 10x Token Reduction | Compressed, structured memory eliminates redundant context and cuts LLM costs dramatically |
| 🎯 Intent Capture | Continuously understands and updates user goals and preferences across sessions |
| 🔄 24/7 Proactive Updates | Memory evolves in the background — agents always have fresh context without re-ingesting |
┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ USER QUERY │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
│ │
▼ ▼
┌────────────────────────────────────────┐ ┌────────────────────────────────────────────────┐
│ 🤖 MAIN AGENT │ │ 🧠 MEMU BOT │
│ │ │ │
│ Handle user queries & execute tasks │ ◄───► │ Monitor, memorize & proactive intelligence │
├────────────────────────────────────────┤ ├────────────────────────────────────────────────┤
│ │ │ │
│ ┌──────────────────────────────────┐ │ │ ┌──────────────────────────────────────────┐ │
│ │ 1. RECEIVE USER INPUT │ │ │ │ 1. MONITOR INPUT/OUTPUT │ │
│ │ Parse query, understand │ │ ───► │ │ Observe agent interactions │ │
│ │ context and intent │ │ │ │ Track conversation flow │ │
│ └──────────────────────────────────┘ │ │ └──────────────────────────────────────────┘ │
│ │ │ │ │ │
│ ▼ │ │ ▼ │
│ ┌──────────────────────────────────┐ │ │ ┌──────────────────────────────────────────┐ │
│ │ 2. PLAN & EXECUTE │ │ │ │ 2. MEMORIZE & EXTRACT │ │
│ │ Break down tasks │ │ ◄─── │ │ Store insights, facts, preferences │ │
│ │ Call tools, retrieve data │ │ inject │ │ Extract skills & knowledge │ │
│ │ Generate responses │ │ memory │ │ Update user profile │ │
│ └──────────────────────────────────┘ │ │ └──────────────────────────────────────────┘ │
│ │ │ │ │ │
│ ▼ │ │ ▼ │
│ ┌──────────────────────────────────┐ │ │ ┌──────────────────────────────────────────┐ │
│ │ 3. RESPOND TO USER │ │ │ │ 3. PREDICT USER INTENT │ │
│ │ Deliver answer/result │ │ ───► │ │ Anticipate next steps │ │
│ │ Continue conversation │ │ │ │ Identify upcoming needs │ │
│ └──────────────────────────────────┘ │ │ └──────────────────────────────────────────┘ │
│ │ │ │ │ │
│ ▼ │ │ ▼ │
│ ┌──────────────────────────────────┐ │ │ ┌──────────────────────────────────────────┐ │
│ │ 4. LOOP │ │ │ │ 4. RUN PROACTIVE TASKS │ │
│ │ Wait for next user input │ │ ◄─── │ │ Pre-fetch relevant context │ │
│ │ or proactive suggestions │ │ suggest│ │ Prepare recommendations │ │
│ └──────────────────────────────────┘ │ │ │ Update todolist autonomously │ │
│ │ │ └──────────────────────────────────────────┘ │
└────────────────────────────────────────┘ └────────────────────────────────────────────────┘
│ │
└───────────────────────────┬───────────────────────────────┘
▼
┌──────────────────────────────┐
│ CONTINUOUS SYNC LOOP │
│ Agent ◄──► MemU Bot ◄──► DB │
└──────────────────────────────┘
Build agents that remember every customer interaction and act on accumulated context
# Ingest customer workspace: emails, tickets, chat history
await service.memorize(resource_url="customer_workspace/", modality="conversation", user={"user_id": "acme-corp"})
# Agent retrieves full customer context before responding
context = await service.retrieve(queries=[{"role": "user", "content": {"text": "What does this customer need?"}}], where={"user_id": "acme-corp"})Agent learns your codebase, preferences, and past decisions automatically
# Ingest repo docs, past PRs, coding style guides
await service.memorize(resource_url="docs/architecture.md", modality="document")
# Agent has full project context without re-reading files
context = await service.retrieve(queries=[{"role": "user", "content": {"text": "How should I structure this module?"}}])Agent tracks market context and user investment behavior continuously
# MemU learns trading preferences from history
await service.memorize(resource_url="trading_history.json", modality="document")
# Proactive alerts grounded in personal context
context = await service.retrieve(queries=[{"role": "user", "content": {"text": "Any relevant market events today?"}}])memU's three-layer system enables both reactive queries and proactive context loading:
| Layer | Reactive Use | Proactive Use |
|---|---|---|
| Resource | Direct access to original data | Background monitoring for new patterns |
| Item | Targeted fact retrieval | Real-time extraction from ongoing interactions |
| Category | Summary-level overview | Automatic context assembly for anticipation |
👉 memu.so — Hosted service, zero setup, 7×24 continuous learning
For enterprise deployment: info@nevamind.ai
| Base URL | https://api.memu.so |
|---|---|
| Auth | Authorization: Bearer <token> |
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/v3/memory/memorize |
Ingest raw data and build memory |
GET |
/api/v3/memory/memorize/status/{task_id} |
Check processing status |
POST |
/api/v3/memory/categories |
List auto-generated categories |
POST |
/api/v3/memory/retrieve |
Query memory for agent context |
pip install -e .Requirements: Python 3.13+ and an OpenAI API key
Test with in-memory storage:
export OPENAI_API_KEY=your_key
cd tests && python test_inmemory.pyTest with PostgreSQL:
docker run -d --name memu-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=your_password \
-e POSTGRES_DB=memu \
-p 5432:5432 \
pgvector/pgvector:pg16
export OPENAI_API_KEY=your_key
cd tests && python test_postgres.pyfrom memu import MemUService
service = MemUService(
llm_profiles={
"default": {
"base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"api_key": "your_key",
"chat_model": "qwen3-max",
"client_backend": "sdk"
},
"embedding": {
"base_url": "https://api.voyageai.com/v1",
"api_key": "your_key",
"embed_model": "voyage-3.5-lite"
}
},
)from memu import MemoryService
service = MemoryService(
llm_profiles={
"default": {
"provider": "openrouter",
"client_backend": "httpx",
"base_url": "https://openrouter.ai",
"api_key": "your_key",
"chat_model": "anthropic/claude-3.5-sonnet",
"embed_model": "openai/text-embedding-3-small",
},
},
database_config={"metadata_store": {"provider": "inmemory"}},
)result = await service.memorize(
resource_url="path/to/file.json", # file path, URL, or directory
modality="conversation", # conversation | document | image | video | audio
user={"user_id": "123"} # optional: scope to a user or agent
)
# Returns immediately:
# { "resource": {...}, "items": [...], "categories": [...] }- Zero-delay: memories are available instantly after ingestion
- Automatic categorization — no manual tagging needed
- Cross-references existing memories for pattern detection
result = await service.retrieve(
queries=[{"role": "user", "content": {"text": "What are their preferences?"}}],
where={"user_id": "123"}, # scope filter
method="rag" # "rag" (fast) or "llm" (deep reasoning)
)
# Returns:
# { "categories": [...], "items": [...], "resources": [...], "next_step_query": "..." }| Method | Speed | Cost | Best For |
|---|---|---|---|
rag |
⚡ ms | embedding only | real-time agent context |
llm |
🐢 seconds | LLM inference | complex anticipation |
export OPENAI_API_KEY=your_key
python examples/example_1_conversation_memory.pyAutomatically extracts preferences, builds relationship models, and surfaces relevant context in future conversations.
python examples/example_2_skill_extraction.pyMonitors agent actions, identifies patterns in successes and failures, auto-generates skill guides from experience.
python examples/example_3_multimodal_memory.pyCross-references text, images, and documents automatically into a unified memory layer.
memU achieves 92.09% average accuracy on the Locomo benchmark across all reasoning tasks.
View detailed results: memU-experiment
| Repository | Description |
|---|---|
| memU | Core memory harness — ingestion, extraction, retrieval |
| memU-server | Backend with real-time sync and webhook triggers |
| memU-ui | Visual dashboard for browsing and monitoring memory |
Quick Links:
# Fork and clone
git clone https://github.com/YOUR_USERNAME/memU.git
cd memU
# Install dev dependencies
make install
# Run quality checks before submitting
make checkSee CONTRIBUTING.md for full guidelines.
Prerequisites: Python 3.13+, uv, Git
- GitHub Issues: Report bugs & request features
- Discord: Join the community
- X (Twitter): Follow @memU_ai
- Contact: info@nevamind.ai
⭐ Star us on GitHub to get notified about new releases!





