Mem-LLM is a Python framework for building privacy-first, memory-enabled AI assistants that run 100% locally.
Project description
Mem-LLM
Mem-LLM is a privacy-first Python framework for building memory-enabled AI assistants that run locally.
What's New in v2.4.6
- Fixed critical memory, tool parsing, and backend compatibility issues.
- Improved SQL ordering and thread-safety behavior.
- Added missing runtime dependencies (
psutil,networkx). - Updated backend defaults:
- Ollama:
granite4:3b - LM Studio:
google/gemma-3-12b
- Ollama:
Quick Start
Install
pip install mem-llm
Ollama
from mem_llm import MemAgent
agent = MemAgent(backend="ollama", model="granite4:3b")
agent.set_user("alice")
print(agent.chat("My name is Alice."))
print(agent.chat("What is my name?"))
LM Studio
from mem_llm import MemAgent
agent = MemAgent(backend="lmstudio", model="google/gemma-3-12b")
agent.set_user("alice")
print(agent.chat("Summarize Python in one sentence."))
Core Features
- Persistent memory per user (JSON or SQLite)
- Multi-backend support (Ollama, LM Studio)
- Tool calling system (
@tool, built-in tools, validation) - Streaming responses
- Knowledge base integration
- Conversation analytics
- REST API and Web UI
Repository Layout
Memory LLM/- main package source and release filesquickstart/- step-by-step usage examples & tutorials
Links
- PyPI: https://pypi.org/project/mem-llm/
- Documentation: Memory LLM/README.md
- Changelog: Memory LLM/CHANGELOG.md
- Issues: https://github.com/emredeveloper/Mem-LLM/issues
License
Mem-LLM is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mem_llm-2.4.6.tar.gz
(115.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mem_llm-2.4.6-py3-none-any.whl
(133.7 kB
view details)
File details
Details for the file mem_llm-2.4.6.tar.gz.
File metadata
- Download URL: mem_llm-2.4.6.tar.gz
- Upload date:
- Size: 115.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d564ec8a1f0a92fb6f1c8b8b6ad54405059ade624e5ebe70b0f72fb3dbbd7ce
|
|
| MD5 |
e1340dcdd8b13082d3feb95df3fcd3ac
|
|
| BLAKE2b-256 |
88b0e1b755a70e5e0c2e253b6670b20deb9d8d0c23d0c38a4567bb4ef8e3c83f
|
File details
Details for the file mem_llm-2.4.6-py3-none-any.whl.
File metadata
- Download URL: mem_llm-2.4.6-py3-none-any.whl
- Upload date:
- Size: 133.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f1d6939d3901a422628bf892f011bfcf01be02ae606c1e52e9027244c0d9048
|
|
| MD5 |
829e59f35e49418bb432cde9f2284549
|
|
| BLAKE2b-256 |
978a4fe61e96ae0ebbfd3010a3e8de4f3e80918039babb07b42a8d9ec928ebad
|