[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"readme:memmachine":3},"\u003Ch1>MemMachine\u003C\u002Fh1>\n\u003Cdiv align=\"center\">\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FMemMachine\u002FMemMachine\u002Fmain\u002Fassets\u002Fimg\u002FMemMachine_Hero_Banner.png\" alt=\"MemMachine: Long Term Memory for AI Agents\" \u002F>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>The open-source memory layer for AI agents.\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>\u003Cem>Stop building stateless agents. Give your AI persistent memory with just 5 lines of code.\u003C\u002Fem>\u003C\u002Fp>\n\u003Cbr \u002F>\u003Cp>\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fmemmachine\u002Fmemmachine?display_name=release\" alt=\"GitHub Release Version\" \u002F>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FMemMachine\u002FMemMachine\" alt=\"GitHub License\" \u002F>\n\u003Ca href=\"https:\u002F\u002Fdeepwiki.com\u002FMemMachine\u002FMemMachine\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fdeepwiki.com\u002Fbadge.svg\" alt=\"Ask DeepWiki\" \u002F>\u003C\u002Fa>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1412878659479666810\" alt=\"Discord\" \u002F>\n\u003Cbr \u002F>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fpulls\u002Fmemmachine\u002Fmemmachine\" alt=\"Docker Pulls\" \u002F>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fdownloads\u002Fmemmachine\u002Fmemmachine\u002Ftotal?label=GitHub%20Downloads\" alt=\"GitHub Downloads\" \u002F>\n\u003Cbr \u002F>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fdm\u002Fmemmachine-client?label=PyPI%20Downloads%3A%20memmachine-client\" alt=\"PyPI Downloads - memmachine-client\" \u002F>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fdm\u002Fmemmachine-server?label=PyPI%20Downloads%3A%20memmachine-server\" alt=\"PyPI Downloads - memmachine-server\" \u002F>\u003C\u002Fp>\n\u003C\u002Fdiv>\u003Ch2>What is MemMachine?\u003C\u002Fh2>\n\u003Cp>MemMachine is an open-source \u003Cstrong>long-term memory layer\u003C\u002Fstrong> for AI agents and LLM-powered applications. It enables your AI to \u003Cstrong>learn, store, and recall\u003C\u002Fstrong> information from past sessions—transforming stateless chatbots into personalized, context-aware assistants.\u003C\u002Fp>\n\u003Ch3>Key Capabilities\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>\u003Cstrong>Episodic Memory\u003C\u002Fstrong>: Graph-based conversational context that persists across sessions\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Profile Memory\u003C\u002Fstrong>: Long-term user facts and preferences stored in SQL\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Working Memory\u003C\u002Fstrong>: Short-term context for the current session\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Agent Memory Persistence\u003C\u002Fstrong>: Memory that survives restarts, sessions, and even model changes\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Quick Start\u003C\u002Fh2>\n\u003Cp>Get up and running in under 5 minutes:\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Cstrong>Prerequisites:\u003C\u002Fstrong> This code requires a running MemMachine Server.\n\u003Ca href=\"https:\u002F\u002Fdocs.memmachine.ai\u002Fgetting_started\u002Fquickstart\" rel=\"nofollow ugc noopener\">Start a server locally\u003C\u002Fa> or create a free account on the \u003Ca href=\"https:\u002F\u002Fconsole.memmachine.ai\u002F\" rel=\"nofollow ugc noopener\">MemMachine Platform\u003C\u002Fa>.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cpre>\u003Ccode class=\"language-bash\">pip install memmachine-client\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cpre>\u003Ccode class=\"language-python\">from memmachine_client import import MemMachineClient\n\n# Initialize the client\nclient = MemMachineClient(base_url=\"http:\u002F\u002Flocalhost:8080\")\n\n# Get or create a project\nproject = client.get_or_create_project(org_id=\"my_org\", project_id=\"my_project\")\n\n# Create a memory instance for a user session\nmemory = project.memory(\n    group_id=\"default\",\n    agent_id=\"travel_agent\",\n    user_id=\"alice\",\n    session_id=\"session_001\"\n)\n\n# Add a memory\nmemory.add(\"I prefer aisle seats on flights\", metadata={\"category\": \"travel\"})\n# =&gt; [AddMemoryResult(uid='...')]\n\n# Search memories\nresults = memory.search(\"What are my flight preferences?\")\nprint(results.content.episodic_memory.long_term_memory.episodes[0].content)\n# =&gt; \"I prefer aisle seats on flights\"\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>For full installation options (Docker, self-hosted, cloud), visit the\n\u003Ca href=\"https:\u002F\u002Fdocs.memmachine.ai\u002Fgetting_started\u002Fquickstart\" rel=\"nofollow ugc noopener\">Quick Start Guide\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2>Integrations\u003C\u002Fh2>\n\u003Cp>MemMachine works seamlessly with your favorite AI frameworks:\u003C\u002Fp>\n\u003Cdiv align=\"center\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Framework\u003C\u002Fth>\n\u003Cth>Description\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FMemMachine\u002Fmemmachine\u002Fblob\u002FHEAD\u002Fintegrations\u002Flangchain\u002F\" rel=\"nofollow ugc noopener\">\u003Cstrong>LangChain\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Memory provider for LangChain agents\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FMemMachine\u002Fmemmachine\u002Fblob\u002FHEAD\u002Fintegrations\u002Flanggraph\u002F\" rel=\"nofollow ugc noopener\">\u003Cstrong>LangGraph\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Stateful memory for LangGraph workflows\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FMemMachine\u002Fmemmachine\u002Fblob\u002FHEAD\u002Fintegrations\u002Fcrewai\u002F\" rel=\"nofollow ugc noopener\">\u003Cstrong>CrewAI\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Persistent memory for CrewAI multi-agent systems\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FMemMachine\u002Fmemmachine\u002Fblob\u002FHEAD\u002Fintegrations\u002Fllamaindex\u002F\" rel=\"nofollow ugc noopener\">\u003Cstrong>LlamaIndex\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Memory integration for LlamaIndex applications\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FMemMachine\u002Fmemmachine\u002Fblob\u002FHEAD\u002Fintegrations\u002Faws_strands_agent_sdk\u002F\" rel=\"nofollow ugc noopener\">\u003Cstrong>AWS Strands\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Memory for AWS Strands Agent SDK\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FMemMachine\u002Fmemmachine\u002Fblob\u002FHEAD\u002Fintegrations\u002Fn8n\u002F\" rel=\"nofollow ugc noopener\">\u003Cstrong>n8n\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>No-code workflow automation integration\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FMemMachine\u002Fmemmachine\u002Fblob\u002FHEAD\u002Fintegrations\u002Fdify\u002F\" rel=\"nofollow ugc noopener\">\u003Cstrong>Dify\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Memory backend for Dify AI applications\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FMemMachine\u002Fmemmachine\u002Fblob\u002FHEAD\u002Fintegrations\u002Ffastgpt\u002F\" rel=\"nofollow ugc noopener\">\u003Cstrong>FastGPT\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Integration with FastGPT platform\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003C\u002Fdiv>\u003Ch2>MCP Server Support\u003C\u002Fh2>\n\u003Cp>MemMachine includes a native \u003Cstrong>Model Context Protocol (MCP)\u003C\u002Fstrong> server for seamless integration with \u003C\u002Fp>\n",1784240407581]