{"slug":"langmem","name":"LangMem","owner":null,"repo":null,"category":"memory-context","lang":"","blurb":"Open-source SDK from LangChain that gives LangGraph agents long-term memory (extraction, search, prompt optimization) in your own store.","use_cases":"[]","alternatives":[],"stars":0,"pushed_at":null,"synced_at":null,"kind":"api","one_liner":"Open-source SDK from LangChain that gives LangGraph agents long-term memory (extraction, search, prompt optimization) in your own store.","website":"https://langchain-ai.github.io/langmem/","docs_url":"https://langchain-ai.github.io/langmem/","signup_url":"https://github.com/langchain-ai/langmem","pricing_model":"open-source","pricing_note":"Free open-source; runs in your infra on your existing LangGraph store (Postgres/SQLite/in-memory); managed service on waitlist","auth_type":"none","agent_signup":"self-serve-instant-key","agent_signup_note":"No signup or API key exists at all — it's an open-source library; an agent can `pip install langmem` and use it immediately against its own store (no human, no credentials).","mcp_server":"","sdks":["Python"],"code_sample":"{\"lang\":\"python\",\"code\":\"from langgraph.store.memory import InMemoryStore\\nfrom langmem import create_manage_memory_tool, create_search_memory_tool\\n\\nstore = InMemoryStore(index={\\\"dims\\\": 1536, \\\"embed\\\": \\\"openai:text-embedding-3-small\\\"})\\nmanage_memory = create_manage_memory_tool(namespace=(\\\"memories\\\",))\\nsearch_memory = create_search_memory_tool(namespace=(\\\"memories\\\",))\\n# give these tools to your LangGraph agent; it reads/writes long-term memory in `store`\"}","tags":["memory","agents","langgraph","open-source","sdk"],"useCases":[],"codeSample":{"lang":"python","code":"from langgraph.store.memory import InMemoryStore\nfrom langmem import create_manage_memory_tool, create_search_memory_tool\n\nstore = InMemoryStore(index={\"dims\": 1536, \"embed\": \"openai:text-embedding-3-small\"})\nmanage_memory = create_manage_memory_tool(namespace=(\"memories\",))\nsearch_memory = create_search_memory_tool(namespace=(\"memories\",))\n# give these tools to your LangGraph agent; it reads/writes long-term memory in `store`"},"oneLiner":"Open-source SDK from LangChain that gives LangGraph agents long-term memory (extraction, search, prompt optimization) in your own store.","docsUrl":"https://langchain-ai.github.io/langmem/","signupUrl":"https://github.com/langchain-ai/langmem","pricingModel":"open-source","pricingNote":"Free open-source; runs in your infra on your existing LangGraph store (Postgres/SQLite/in-memory); managed service on waitlist","authType":"none","agentSignup":"self-serve-instant-key","agentSignupNote":"No signup or API key exists at all — it's an open-source library; an agent can `pip install langmem` and use it immediately against its own store (no human, no credentials).","mcpServer":""}