SelfMemory Documentation
Long-term memory for AI Agents with zero-setup simplicity
🚀 Quick Start
Install SelfMemory with a single command:
pip install selfmemory
Start using it immediately:
from selfmemory import SelfMemory
# Works out of the box!
memory = SelfMemory()
# Add memories
memory.add("I love pizza but hate broccoli", user_id="demo")
memory.add("Meeting with Bob tomorrow at 3pm", user_id="demo")
# Search memories
results = memory.search("pizza", user_id="demo")
print(results)
🔥 Key Features
- Zero Setup: Install and start using immediately - no configuration required
- Dual Architecture: Direct library usage OR managed client with REST API
- Advanced Search: Semantic similarity with vector embeddings
- Flexible Storage: File-based or MongoDB backend
- NVIDIA NeMo Integration: Use Mem0, Redis, or Zep as memory backends via NeMo Agent Toolkit
- Production Ready: Authentication, API keys, and dashboard integration
📚 Documentation Sections
For Developers
- Quick Start Guide: Get started with SelfMemory in 5 minutes
- Client Usage: Using SelfMemoryClient with the REST API
- Configuration: Advanced configuration options
Integrations
- NVIDIA NeMo Agent Toolkit: Use Mem0, Redis, or Zep as memory backends
For Platform Users
- API Keys: Managing your API keys
🏗️ Architecture
SelfMemory provides two usage modes:
- Direct Library Usage: Import and use the
SelfMemoryclass directly in your Python code - Client/Server Mode: Run a REST API server and connect with
SelfMemoryClient
Both modes support:
- Semantic search with embeddings (Ollama, OpenAI)
- Vector storage (Qdrant, ChromaDB)
- Metadata and tagging
- User isolation
💡 Use Cases
- Personal AI Assistants: Remember user preferences and conversation history
- Customer Support Bots: Maintain customer interaction history
- Research Tools: Store and retrieve research notes
- Team Collaboration: Shared memory across AI agents
🔗 Quick Links
🤝 Contributing
We welcome contributions! Check out our GitHub repository to get started.
📄 License
SelfMemory is licensed under the Apache 2.0 License.