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

Mem-LLM is a local-first Python library for memory-enabled AI assistants with multi-backend LLM support.

Highlights

  • Persistent user memory (JSON or SQLite)
  • Tool calling and built-in tools
  • Multi-backend support (Ollama, LM Studio)
  • Knowledge base and conversation analytics
  • Streaming chat responses
  • REST API and Web UI

Default Models

  • Ollama: granite4:3b
  • LM Studio: google/gemma-3-12b

Install

pip install mem-llm

Optional extras:

pip install mem-llm[api]
pip install mem-llm[databases]

Quick Start

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:

agent = MemAgent(backend="lmstudio", model="google/gemma-3-12b")

Links

License

MIT

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.5.tar.gz (114.4 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.5-py3-none-any.whl (133.4 kB view details)

Uploaded Python 3

File details

Details for the file mem_llm-2.4.5.tar.gz.

File metadata

  • Download URL: mem_llm-2.4.5.tar.gz
  • Upload date:
  • Size: 114.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mem_llm-2.4.5.tar.gz
Algorithm Hash digest
SHA256 b4e2e837b2f7cb80f552902ea5717464bc05b141185b29bf0d24eda34d04058d
MD5 b5e1a841c0796ac246fc887f7737efaf
BLAKE2b-256 aa9060454af65251dacf1e929023f03ab6fe7a95212873a79a708e661296d596

See more details on using hashes here.

File details

Details for the file mem_llm-2.4.5-py3-none-any.whl.

File metadata

  • Download URL: mem_llm-2.4.5-py3-none-any.whl
  • Upload date:
  • Size: 133.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mem_llm-2.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2217a7fd2d2df44abf7955fd1818082e8b0314d30b17172aa9d2fef4028e19c6
MD5 0bf3a0c325ad64d067c9346c5a077f4a
BLAKE2b-256 5efea55d731bdbd7692524b5611c07522b44e48d3f2d3d21f1dc77b0f7b64366

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