Skip to content

MemMachine

AI Agents & Assistants

An open‑source long‑term memory layer that lets AI agents persist and recall information across sessions with just a few lines of code.

Python Latest v0.3.9 · 16d ago Security brief →

Features

  • Multiple memory types: working (short‑term), episodic (long‑term conversational), and profile (user facts)
  • Developer‑friendly APIs: Python SDK, RESTful API, TypeScript SDK, and MCP server interfaces
  • Flexible storage backends – graph database for episodic memory, SQL for profiles
  • LLM‑agnostic – works with OpenAI, Anthropic, Bedrock, Ollama, etc.
  • Deployable self‑hosted (Docker/local) or as a managed cloud service

Recent releases

View all 28 releases →
v0.3.8 New feature
Notable features
  • New long-term episodic memory EventMemory based on VectorStore and SegmentStore
  • Support separate LLM models for agent, answer, and judge
Full changelog

What's Changed

  • Embedded VectorStore Implementation(s) by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1292
  • docs: regenerate openapi.json by @github-actions[bot] in https://github.com/MemMachine/MemMachine/pull/1385
  • Fix Installation Test CI by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1389
  • update legacy LoCoMo eval scripts to current MemMachine API by @1saac-k in https://github.com/MemMachine/MemMachine/pull/1272
  • New long-term episodic memory (named EventMemory to differentiate) based on VectorStore and (new) SegmentStore by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1205
  • feat: support separate LLM models for agent, answer, and judge in ben… by @cudaMancpy in https://github.com/MemMachine/MemMachine/pull/1376
  • Segmenter and Deriver should be async by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1394
  • Don't ensure ASCII in LLM-visible JSON strings by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1378

New Contributors

  • @cudaMancpy made their first contribution in https://github.com/MemMachine/MemMachine/pull/1376

Full Changelog: https://github.com/MemMachine/MemMachine/compare/v0.3.7...v0.3.8

v0.3.7 New feature
Notable features
  • Add strands-memmachine integration for Strands Agents
  • Improve vector store API again
  • Add SQL filter compilation for properties JSON
Full changelog

What's Changed

  • Add strands-memmachine integration for Strands Agents by @Viranshu-30 in https://github.com/MemMachine/MemMachine/pull/1330
  • fix(ts-client): Auto-select fetch adapter behind HTTPS proxies (#1269) by @alighazi288 in https://github.com/MemMachine/MemMachine/pull/1369
  • Build(deps-dev): Bump ty from 0.0.24 to 0.0.32 by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1354
  • Build(deps): Bump the npm_and_yarn group across 1 directory with 2 updates by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1368
  • Improve vector store API again by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1379
  • Add SQL filter compilation for properties JSON by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1291
  • Implement QdrantVectorStore by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1086
  • Build(deps-dev): Bump complexipy from 5.3.0 to 5.4.0 by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1372
  • Support batch size in embedder by @malatewang in https://github.com/MemMachine/MemMachine/pull/884
  • Build(deps-dev): Bump ruff from 0.15.11 to 0.15.12 by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1373
  • Delete session asynchronously by @malatewang in https://github.com/MemMachine/MemMachine/pull/1117
  • Decrease frequency of macOS Intel CI timeout by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1382

New Contributors

  • @Viranshu-30 made their first contribution in https://github.com/MemMachine/MemMachine/pull/1330
  • @alighazi288 made their first contribution in https://github.com/MemMachine/MemMachine/pull/1369

Full Changelog: https://github.com/MemMachine/MemMachine/compare/v0.3.6...v0.3.7

v0.3.6 Security relevant
Security fixes
  • Prototype-polluting assignment vulnerability
Notable features
  • Retry logic for LLM judge
Full changelog

What's Changed

  • docs: regenerate openapi.json by @github-actions[bot] in https://github.com/MemMachine/MemMachine/pull/1351
  • Build(deps): Bump the npm_and_yarn group across 2 directories with 5 updates by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1350
  • Build(deps): Bump the npm_and_yarn group across 1 directory with 3 updates by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1353
  • Build(deps-dev): Bump ruff from 0.15.10 to 0.15.11 by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1355
  • Build(deps-dev): Bump complexipy from 5.2.0 to 5.3.0 by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1356
  • Potential fix for code scanning alert no. 46: Prototype-polluting assignment by @sscargal in https://github.com/MemMachine/MemMachine/pull/1357
  • add retry logic for LLM judge and semantic memory consolidation by @sscargal in https://github.com/MemMachine/MemMachine/pull/1361
  • feat: add delete RUN_TYPE to retrieval-agent benchmarks by @sscargal in https://github.com/MemMachine/MemMachine/pull/1363
  • fix(server): preserve original LLM error in ExternalServiceAPIError by @sscargal in https://github.com/MemMachine/MemMachine/pull/1362
  • chore: add workflow to auto-close stale issues and PRs by @sscargal in https://github.com/MemMachine/MemMachine/pull/1358
  • security: bump vulnerable dependencies (Dependabot batch) by @sscargal in https://github.com/MemMachine/MemMachine/pull/1366
  • Increase complete integration test timeout by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1367
  • fix: use correct Neo4j config field name in sample configs by @sscargal in https://github.com/MemMachine/MemMachine/pull/1360

Full Changelog: https://github.com/MemMachine/MemMachine/compare/v0.3.5...v0.3.6

v0.3.5 Security relevant
Security fixes
  • Prevents cross-session memory leakage in autoRecall (#1318)
Notable features
  • Batch memory delete support in TypeScript client
  • Enhanced memmachine-compose.sh first-run setup wizard
  • LLM-friendly formatting helpers added to clients
Full changelog

What's Changed

  • Build(deps-dev): Bump pytest from 9.0.2 to 9.0.3 by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1321
  • fix(embedder): always chunk text before cluster_texts() when max_input t_length is None by @sscargal in https://github.com/MemMachine/MemMachine/pull/1328
  • Build(deps-dev): Bump ruff from 0.15.9 to 0.15.10 by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1320
  • fix(openclaw): prevent autoRecall cross-session memory leakage (#1318) by @sscargal in https://github.com/MemMachine/MemMachine/pull/1322
  • chore: bump Node 20 → 24 in GitHub Actions workflows by @sscargal in https://github.com/MemMachine/MemMachine/pull/1323
  • feat: enhance memmachine-compose.sh first-run setup wizard by @1saac-k in https://github.com/MemMachine/MemMachine/pull/1273
  • feat(ts-client): support batch memory delete by @yaleMemVerge in https://github.com/MemMachine/MemMachine/pull/1266
  • Build(deps-dev): Update testcontainers[neo4j,postgres] requirement from >=4.13.1 to >=4.14.2 by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1319
  • Add LLM-friendly formatting helpers to clients by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1311

New Contributors

  • @1saac-k made their first contribution in https://github.com/MemMachine/MemMachine/pull/1273

Full Changelog: https://github.com/MemMachine/MemMachine/compare/v0.3.4...v0.3.5

v0.3.4 Breaking risk
⚠ Upgrade required
  • Update all code references from Collection to VectorStoreCollection
Breaking changes
  • Collection type renamed to VectorStoreCollection
Security fixes
  • Archive path traversal vulnerability fixed
Notable features
  • Cluster engine for semantic message grouping
  • Stream chat completion response support
  • base_url support for Cohere rerankers
Full changelog

What's Changed

  • Security/fix archive path traversal by @o-love in https://github.com/MemMachine/MemMachine/pull/1287
  • Docs: Updating Quickstart for missing backticks and removing the Google ADK Integration Guide by @SarahScargall in https://github.com/MemMachine/MemMachine/pull/1294
  • Improve vector store API by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1201
  • Define vector similarity score direction and range by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1296
  • docs: sync platform openapi.json by @github-actions[bot] in https://github.com/MemMachine/MemMachine/pull/1282
  • Rename Collection --> VectorStoreCollection by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1301
  • text-embedding-3-small special token and intermittent failure fix by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1293
  • Index uid and timestamp properties by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1000
  • Get config from collection by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1302
  • Disable store in openAI API by @malatewang in https://github.com/MemMachine/MemMachine/pull/1275
  • Upgrade openclaw plugin by @malatewang in https://github.com/MemMachine/MemMachine/pull/1267
  • feat: support base_url for Cohere rerankers by @hyeongtakji in https://github.com/MemMachine/MemMachine/pull/1262
  • Fix deadlock due to non-reentrant lock pool by @edwinyyyu in https://github.com/MemMachine/MemMachine/pull/1312
  • refactor: modernize storage interface types by @o-love in https://github.com/MemMachine/MemMachine/pull/1239
  • Support Stream chat completion response by @malatewang in https://github.com/MemMachine/MemMachine/pull/1276
  • fix: NebulaGraph backend - enable concurrent operations and fix datet… by @wenhaocs in https://github.com/MemMachine/MemMachine/pull/1314
  • Build(deps-dev): Bump ruff from 0.15.7 to 0.15.9 by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1300
  • Bump the npm_and_yarn group across 1 directory with 4 updates by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1290
  • Build(deps-dev): Bump handlebars from 4.7.8 to 4.7.9 in /packages/ts-client in the npm_and_yarn group across 1 directory by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1295
  • docs: regenerate openapi.json by @github-actions[bot] in https://github.com/MemMachine/MemMachine/pull/1315
  • feat: add cluster engine for semantic message grouping by @o-love in https://github.com/MemMachine/MemMachine/pull/1240
  • Bump the npm_and_yarn group across 1 directory with 5 updates by @dependabot[bot] in https://github.com/MemMachine/MemMachine/pull/1284

New Contributors

  • @hyeongtakji made their first contribution in https://github.com/MemMachine/MemMachine/pull/1262

Full Changelog: https://github.com/MemMachine/MemMachine/compare/v0.3.3...v0.3.4

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

About

Stars
3,103
Forks
181
Languages
Python TypeScript Shell
Downloads/week
194 ↓33%
NPM Maintainers
2
Contributors
43
TypeScript
Types included ✓

Install & Platforms

Install via
pip

Beta — feedback welcome: [email protected]