Official Cookbook for the Memori Python SDK
Practical examples and tutorials for adding persistent memory to your AI applications.
Memori is a Python SDK that adds persistent memory to any LLM application. With just a few lines of code, your AI can remember conversations, user preferences, and context across sessions.
from openai import OpenAI
from memori import Memori
client = OpenAI(...)
mem = Memori().openai.register(client)For full SDK documentation, visit the Memori SDK Repository.
# Install uv (if you haven't already)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone the cookbook
git clone https://github.com/MemoriLabs/memori-cookbook.git
cd memori-cookbook
# Install dependencies
uv sync# Install development dependencies
uv sync --extra dev
# Install pre-commit hooks
uv run pre-commit installWe welcome contributions! See CONTRIBUTING.md for guidelines.
- Memori SDK: https://github.com/MemoriLabs/Memori
- Documentation: https://memorilabs.ai/docs
- API Reference: https://memorilabs.ai/docs/api
- Discord: https://discord.gg/abD4eGym6v
- Issues: GitHub Issues
- SDK Issues: Memori SDK Issues
Apache 2.0 - See LICENSE for details.
Star us on GitHub to support the project
