--- id: agent-framework-mem0 version: "1.0.0b260813" license: unclear license_treatment: permissive maintenance: active --- # agent-framework-mem0 — Mem0 integration for Microsoft Agent Framework. License: permissive · Maintenance: active · Downloads: 569.0K/mo ## What it is and what it does This package bridges Mem0's persistent memory service into Microsoft Agent Framework, allowing agents to maintain state across conversations. It provides a context provider that stores and retrieves memories scoped by application, agent, and user identifiers, enabling agents to learn and recall user preferences and conversation history across different sessions and threads. The package is a thin integration layer built on top of agent-framework-core and mem0ai. It handles memory scoping (separating write scope from retrieval scope) and offers configuration for both Platform and open-source Mem0 clients. Telemetry is disabled by default but can be enabled via environment variable before import. Use it for: - Build a customer support agent that remembers each user's past issues and preferences across multiple conversations. - Create a personal assistant agent that learns and recalls user habits, preferences, and context over weeks or months. - Develop multi-turn conversational agents where context from earlier threads informs responses in new sessions. - Implement per-user or per-agent memory isolation in a multi-tenant agent deployment. - Prototype agent memory features quickly using the Mem0 service without building custom persistence logic. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Integrates Mem0 persistent memory into Microsoft Agent Framework agents, enabling agents to remember user preferences and conversation context across sessions and threads. Yes, if you are building agents with Microsoft Agent Framework and need persistent memory across sessions. The package is actively maintained, has low install friction, carries a permissive MIT license, and integrates cleanly with agent-framework-core and mem0ai. Beta status is appropriate for a fresh integration; monitor for API changes as it stabilizes. ## Install pip install agent-framework-mem0 uv add agent-framework-mem0 poetry add agent-framework-mem0 ## Installing agent-framework-mem0 Before you install: Fresh release (0 days old) from an active Microsoft repository with 12804 stars. Low install friction with only two runtime dependencies. Beta status (Development Status :: 4) signals the package is still stabilizing. License in practice: MIT license (permissive) means you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice. Quickstart: pip install agent-framework-mem0 --pre from agent_framework.mem0 import Mem0ContextProvider provider = Mem0ContextProvider( api_key="your-key", user_id="user-id", search_user_id="user-id", ) Requires Python >= 3.10. Mem0 API key required to use the provider. Retrieval scope must be explicitly set (search_user_id, search_agent_id, or search_application_id) or no memories will be retrieved. Verify before relying: - Whether the Platform client (AsyncMemoryClient) is required for application_id scoping, or if OSS AsyncMemory client suffices for typical use cases. - Performance characteristics and memory storage limits when operating at scale across many users or agents. - Whether telemetry can be re-enabled after import or only before importing the module. ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 569.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags agent memory persistence, mem0 integration, agent framework context provider, persistent conversation memory, user preference memory for agents, multi-session agent memory, agent framework mem0, agent-framework, memory-persistence, mem0-integration [View on SkillFed](https://skillfed.io/packages/agent-framework-mem0) · [View on PyPI](https://pypi.org/project/agent-framework-mem0/)