Skip to main content

Mem-LLM is a Python framework for building privacy-first, memory-enabled AI assistants that run 100% locally.

Project description

Mem-LLM

PyPI version Python 3.8+ License: MIT

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

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 files
  • quickstart/ - step-by-step usage examples & tutorials

Links

License

Mem-LLM is released under the MIT License.

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mem_llm-2.4.6-py3-none-any.whl (133.7 kB view details)

Uploaded Python 3

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

Hashes for mem_llm-2.4.6.tar.gz
Algorithm Hash digest
SHA256 6d564ec8a1f0a92fb6f1c8b8b6ad54405059ade624e5ebe70b0f72fb3dbbd7ce
MD5 e1340dcdd8b13082d3feb95df3fcd3ac
BLAKE2b-256 88b0e1b755a70e5e0c2e253b6670b20deb9d8d0c23d0c38a4567bb4ef8e3c83f

See more details on using hashes here.

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

Hashes for mem_llm-2.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3f1d6939d3901a422628bf892f011bfcf01be02ae606c1e52e9027244c0d9048
MD5 829e59f35e49418bb432cde9f2284549
BLAKE2b-256 978a4fe61e96ae0ebbfd3010a3e8de4f3e80918039babb07b42a8d9ec928ebad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page