๐Ÿง  Give your AI a memory that never forgets โ€” free & open source

:jar: Your AI keeps forgetting you โ€” brew its memory instead

TencentDB Agent Memory: a free memory hub that distills every chat, doc and codebase into reusable memory your AI loads forever after ยท open source, 30.8K :star:

introduce yourself once. set the rules once. your AI remembers โ€” next week, next project, next agent

:brain: the repo, front and center โ†’ github.com/TencentCloud/TencentDB-Agent-Memory

setup in one breath: clone โ†’ one .env file โ†’ ./start-all.sh โ†’ paste the one-liner into your AI ยท full guide: docs

:jar: jar 1 ยท :speech_balloon: chat memory

  • :speaking_head: your preferences, facts and decisions survive between sessions โ€” โ€œI always want short answersโ€ is said once
  • :locked_with_key: each agent only sees the memories you allow it to see

:jar: jar 2 ยท :high_voltage: skills

  • :test_tube: when your AI finishes something tricky, the working recipe gets bottled โ€” with versions and trigger rules, not just a prompt paste
  • :recycling_symbol: any other agent can pick up that skill on day one instead of rediscovering it

:jar: jar 3 ยท :open_book: LLM-wiki

  • :books: your documents turn into a wiki every agent can consult โ€” no more re-reading the PDF from page one every session

:jar: jar 4 ยท :spider_web: code-graph

  • :world_map: your codebase becomes a map โ€” โ€œdonโ€™t refactor the auth module, mobile still uses itโ€ is remembered forever, not re-explained weekly

:teacup_without_handle: how the brewing works

  • :fallen_leaf: raw chats are distilled layer by layer: L0 conversation โ†’ L1 atoms (facts) โ†’ L2 scenarios (recipes) โ†’ L3 persona (who you are)
  • :floppy_disk: the result is a human-readable save file โ€” a brand-new agent loads your whole history in one call
  • :electric_plug: hookup is one URL swap: Claude Code, Codex, DeepSeek Harness, OpenClaw, OpenCode โ€” no plugins needed ยท your control panel: localhost:8125

:cherry_blossom: the memory garden โ€” pick your flavor, all free

  • :speaking_head: Mem0 (68.9K :star:) โ€” the simplest add-and-remember layer ยท tested at 92.5% recall with ~7K tokens instead of 25K
  • :mantelpiece_clock: Graphiti (32.8K :star:) โ€” time-travel memory: facts keep โ€œwas true then / true nowโ€ windows ยท game NPCs finally hold grudges properly
  • :herb: Cognee (33.2K :star:) โ€” docs + code + chats woven into one knowledge graph
  • :mirror: Basic Memory (4.6K :star:) โ€” memory as plain Markdown you can read, edit and back up yourself โ€” the no-black-box pick
  • :robot: Letta / MemGPT (25.4K :star:) โ€” the agent that manages its own brain, rewriting its memory and skills
  • :notebook: PMB โ€” a tiny SQLite memory for coding agents, no LLM needed to read it

โ–ธ one minimized window (click to open)

  • :bar_chart: the receipts โ€” long-session tests report โˆ’61% tokens on WideSearch, SWE-bench success 58โ†’64%, PersonaMem 48โ†’76% (vendor-published; an issue caught a math typo and it was fixed in public โ€” thatโ€™s how open source should behave)
  • :ice: the โ€œvector-DB killerโ€ defused โ€” it kills the mandatory separate vector-DB service (SQLite + keyword search by default, optional embeddings) โ€” it doesnโ€™t ban vectors, it de-gatekeeps them
  • :house: privacy, honestly โ€” โ€œlocal-firstโ€ means the memory stays home, but extraction still talks to whatever model you point it at โ€” use Ollama for a fully-local loop
  • :video_game: fun use โ€” agents sharing a family brain: appliance manuals, allergies, school calendars โ€” with private vs family visibility controls

โ–ธ the fine print, two lines

:toolbox: setup = Docker + two model configs โ€” one brain for extracting memories, one for serving your agent (a cheap one for memory, a strong one for work)

:locked_with_key: never pour secrets โ€” banking, passwords and private messages donโ€™t belong in any AIโ€™s memory jar

Your AI always had the brains. Now it finally keeps them.