{
 "kind": "tool",
 "slug": "langmem",
 "path": "tools/langmem/",
 "name": "LangMem",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Agent, MCP and tool libraries",
   "tools/agent-libraries/"
  ]
 ],
 "lead": "Prebuilt utilities for memory management and retrieval in LLM applications.",
 "chips": [
  {
   "label": "Agent, MCP and tool libraries",
   "path": "tools/agent-libraries/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install langmem"
 },
 "links": [],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Not stated",
   "status": "unknown",
   "sub": null,
   "quote": null,
   "note": "License from the package registry.",
   "src": ""
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Not checked yet",
   "status": "unknown",
   "sub": null,
   "note": "",
   "src": ""
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1 projects",
   "status": "info",
   "sub": "#119 of 192 in its category",
   "note": "Dependency in 1 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What LangMem does",
   "parts": [
    {
     "t": "prose",
     "text": "Prebuilt utilities for memory management and retrieval in LLM applications."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "LangMem popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "38",
       "of": "/ 100",
       "l": "Gid Score, #3404 overall"
      },
      {
       "n": "226K",
       "l": "downloads a week, pypi"
      },
      {
       "n": "1",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How LangMem is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "LangMem is a dependency in 1 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 20 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is LangChain (127 projects).",
      "Projects that use it most often also use LangChain (85.0%), python-dotenv (70.0%), LangGraph (55.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 85.0% of its projects",
       "v": "LangChain",
       "path": "tools/langchain-pypi/"
      },
      {
       "l": "In 70.0% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 55.0% of its projects",
       "v": "LangGraph",
       "path": "tools/langgraph/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "LangGraph Prebuilt",
       "path": "tools/langgraph-prebuilt/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "Mem0 (Python)",
       "path": "tools/mem0ai-pypi/"
      },
      {
       "l": "In 35.0% of its projects",
       "v": "aiohttp",
       "path": "tools/aiohttp/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about LangMem",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Agent, MCP and tool libraries",
       "path": "tools/agent-libraries/",
       "items": [
        {
         "text": "Model Context Protocol SDK (JavaScript)",
         "path": "tools/modelcontextprotocol/"
        },
        {
         "text": "Model Context Protocol SDK (Python)",
         "path": "tools/mcp/"
        },
        {
         "text": "FastMCP (Python)",
         "path": "tools/fastmcp-pypi/"
        },
        {
         "text": "Agent Client Protocol SDK",
         "path": "tools/agentclientprotocol-sdk/"
        },
        {
         "text": "LangChain.js",
         "path": "tools/langchain-npm/"
        },
        {
         "text": "Mastra",
         "path": "tools/mastra/"
        },
        {
         "text": "MCP Inspector",
         "path": "tools/modelcontextprotocol-inspector/"
        },
        {
         "text": "fastMCP (JavaScript)",
         "path": "tools/fastmcp-npm/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "LangMem",
       "me": true,
       "facts": [
        "Gid 38",
        "226K/wk"
       ]
      },
      {
       "name": "LangChain",
       "why": "Framework for composing applications with LLMs through chains and agents.",
       "path": "tools/langchain-pypi/",
       "facts": [
        "MIT",
        "Gid 89",
        "37.6M/wk"
       ]
      },
      {
       "name": "LangGraph",
       "why": "Framework for building stateful, multi-actor applications with LLMs.",
       "path": "tools/langgraph/",
       "facts": [
        "MIT",
        "Gid 80",
        "15.2M/wk"
       ]
      },
      {
       "name": "LlamaIndex",
       "why": "Framework to build RAG applications connecting LLMs to your custom data and documents.",
       "path": "tools/llama-index/",
       "facts": [
        "MIT",
        "Gid 59",
        "406K/wk"
       ]
      },
      {
       "name": "Mem0 (Python)",
       "why": "Long-term memory system for AI agents to retain and learn from interactions.",
       "path": "tools/mem0ai-pypi/",
       "facts": [
        "Apache-2.0",
        "Gid 53",
        "541K/wk"
       ]
      }
     ],
     "more": "Compare LangMem with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install langmem"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for LangMem yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi langmem"
  ],
  [
   "Category",
   "Agent, MCP and tool libraries"
  ],
  [
   "Gid Score",
   "37.8"
  ],
  [
   "Rank in category",
   "#119 of 192"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": null
}