TokenEconomizer
코딩 에이전트를 위한 경험 기반 블랙박스 비용 제어
MemMachine은 고급 AI 에이전트를 위한 오픈소스 메모리 레이어로, 학습·기억·적응을 가능하게 하며 장기 대화 기억을 저장합니다
MemMachine is the open-source memory layer for advanced AI agents, enabling them to learn, remember, and adapt. Build personalized, context-aware applications that store long-term conversational memor
개발 도구Python · TypeScriptGitHub @MemMachine온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
Universal memory layer for AI Agents. It provides scalable, extensible, and interoperable memory storage and retrieval to streamline AI agent state management for next-generation autonomous systems.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
The open-source memory layer for AI agents.
Stop building stateless agents. Give your AI persistent memory with just 5 lines of code.
MemMachine is an open-source long-term memory layer for AI agents and LLM-powered applications. It enables your AI to learn, store, and recall information from past sessions—transforming stateless chatbots into personalized, context-aware assistants.README 전문 보기 ↗The open-source memory layer for AI agents.
Stop building stateless agents. Give your AI persistent memory with just 5 lines of code.
MemMachine is an open-source long-term memory layer for AI agents and LLM-powered applications. It enables your AI to learn, store, and recall information from past sessions—transforming stateless chatbots into personalized, context-aware assistants.
Get up and running in under 5 minutes:
Prerequisites: This code requires a running MemMachine Server. Start a server locally or create a free account on the MemMachine Platform.
pip install memmachine-client
from memmachine_client import import MemMachineClient
# Initialize the client
client = MemMachineClient(base_url="http://localhost:8080")
# Get or create a project
project = client.get_or_create_project(org_id="my_org", project_id="my_project")
# Create a memory instance for a user session
memory = project.memory(
group_id="default",
agent_id="travel_agent",
user_id="alice",
session_id="session_001"
)
# Add a memory
memory.add("I prefer aisle seats on flights", metadata={"category": "travel"})
# => [AddMemoryResult(uid='...')]
# Search memories
results = memory.search("What are my flight preferences?")
print(results.content.episodic_memory.long_term_memory.episodes[0].content)
# => "I prefer aisle seats on flights"
For full installation options (Docker, self-hosted, cloud), visit the Quick Start Guide.
MemMachine works seamlessly with your favorite AI frameworks:
| Framework | Description |
|---|---|
| LangChain | Memory provider for LangChain agents |
| LangGraph | Stateful memory for LangGraph workflows |
| CrewAI | Persistent memory for CrewAI multi-agent systems |
| LlamaIndex | Memory integration for LlamaIndex applications |
| AWS Strands | Memory for AWS Strands Agent SDK |
| n8n | No-code workflow automation integration |
| Dify | Memory backend for Dify AI applications |
| FastGPT | Integration with FastGPT platform |
MemMachine includes a native Model Context Protocol (MCP) server for seamless integration with Claude Desktop, Cursor, and other MCP-compatible clients:
# Stdio mode (for Claude Desktop)
memmachine-mcp-stdio
# HTTP mode (for web clients)
memmachine-mcp-http
See the MCP documentation for setup instructions.
For more information, refer to the API Reference Guide.
MemMachine's versatile memory architecture can be applied across any domain. Explore our examples to see memory-powered agents in action:
| Agent | Description |
|---|---|
| CRM Agent | Recalls client history and deal stages to help sales teams close faster |
| Healthcare Navigator | Remembers medical history and tracks treatment progress |
| Personal Finance Advisor | Stores portfolio preferences and risk tolerance for personalized insights |
| Writing Assistant | Learns your style guide and terminology for consistent content |
Are you using MemMachine in your project? We'd love to feature you!
MemMachine is a growing community of builders and developers. Help us grow by clicking the ⭐ Star button above!
We welcome contributions! Please see our CONTRIBUTING.md for guidelines.
@misc{luo2025agentlightningtrainai,
title={Agent Lightning: Train ANY AI Agents with Reinforcement Learning},
author={Xufang Luo and Yuge Zhang and Zhiyuan He and Zilong Wang and Siyun Zhao and Dongsheng Li and Luna K. Qiu and Yuqing Yang},
year={2025},
eprint={2508.03680},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2508.03680},
}
MemMachine is released under the Apache 2.0 License.