📖 The AI Tool Bible

TencentDB Agent Memory

Local long-term memory for AI agents using layered storage and Mermaid-based symbolic compression.

Free· MIT-licensed, self-hostedAgentsMulti-model7.2 / 10
Visit website →
Best for

Pick TencentDB Agent Memory if you are building long-horizon agents and need a self-hosted memory layer that compresses tool logs and persists user personas without third-party APIs.

Skip if

Skip it if you want a managed memory-as-a-service or a drop-in SDK for a single chatbot with short sessions.

TencentDB Agent Memory is an open-source memory layer for AI agents that rejects flat vector dumps in favor of a four-tier progressive pipeline (L0 Conversation, L1 Atom, L2 Scenario, L3 Persona). Short-term tool logs are offloaded to external files and condensed into a lightweight Mermaid canvas the agent can reason over, while long-term knowledge is distilled into structured personas and scenes with drill-down paths back to raw evidence. Hybrid retrieval combines BM25 and vector search over a local SQLite backend with zero external API dependencies.

It is aimed at developers building long-horizon autonomous agents where context bloat and irreversible summarization are real problems. Tencent publishes benchmark numbers on WideSearch, SWE-bench, AA-LCR, and PersonaMem showing token reductions in the 30-60% range and substantial accuracy gains when paired with the OpenClaw agent framework. The project is MIT-licensed, written primarily in TypeScript (Node 22+), and ships as an npm package with HTTP endpoints for capture, search, and recall.

Integrations include a first-party OpenClaw plugin and a Hermes Gateway adapter. Because everything runs locally, it is suitable for teams that cannot send agent traces to managed memory services, though it is not a hosted product and requires engineering effort to wire into an existing agent stack.

Editor's take

One of the more architecturally serious open-source memory projects we've seen, with concrete benchmarks instead of vibes. The Mermaid-canvas offloading trick is genuinely clever, and the L0-L3 pyramid is a saner mental model than flat vector dumps. Expect real integration work, especially outside the OpenClaw ecosystem.

— The AI Tool Bible editorial team

Pros

  • Fully local with no external API dependencies
  • Layered L0-L3 pyramid keeps both evidence and structure traceable
  • Mermaid-based symbolic memory measurably cuts token usage
  • MIT-licensed and benchmarked against SWE-bench and PersonaMem
  • First-party OpenClaw and Hermes integrations

Cons

  • ⚠️ Self-host only; no managed service
  • ⚠️ Tightest integration is with Tencent's OpenClaw framework
  • ⚠️ Requires Node 22+ and engineering work to retrofit into existing agents

Use cases

agent-memorylong-contextpersona-modelingtool-log-compressionlong-horizon-agents

Explore related

Compare with similar tools

All in Agents

LangGraph

Featured
Agents · BYO (Claude / GPT / open)
8.8

Stateful, graph-based agent orchestration from LangChain.

Freemium· Free open-source; LangGraph Platform paidstateful agentshuman-in-loop

CrewAI

Featured
Agents · BYO (Claude / GPT / open)
8.4

Python framework for multi-agent orchestration.

Freemium· Free open-source core; cloud platform paidmulti-agentorchestration

Ernie Bot

Agents · Baidu ERNIE 4.0 / ERNIE X1 / ERNIE Turbo (in-house)
8.7

Baidu's Mandarin-first ChatGPT rival, powered by the ERNIE model family

Freemium· Free tier for Ernie 3.5 access; Ernie 4.0 and premium features require a paid subscription (approximately CNY 59.9/month for individual plans); enterprise API pricing via Baidu AI Cloud Qianfan platform is metered per 1K tokens.Mandarin content writing and marketing copyChinese-language document Q&A and summarisation

Moveworks

Agents · Orchestrates multiple enterprise-ready LLMs (undisclosed mix, historically including OpenAI GPT and in-house models via its Reasoning Engine)
8.7

The enterprise AI assistant that searches, answers, and takes action across your business systems

Enterprise· Enterprise-only pricing; no public tiers. Quoted per organization based on employee count, integrations, and agent scope. Contact sales for a quote.IT service desk ticket deflectionHR policy Q&A and self-service

AWS Bedrock

Agents · Multi-model: Anthropic Claude, Meta Llama, Mistral, Cohere, AI21, Amazon Nova/Titan, DeepSeek, Stability, OpenAI GPT
8.6

Build and scale generative AI applications with foundation models

Paid· Pay-as-you-go per 1K input/output tokens per model; on-demand, batch, and provisioned throughput tiers. New AWS accounts get up to $200 in credits. Enterprise agreements via AWS.Enterprise RAG chatbot over private documentsMulti-step tool-using agents via AgentCore

Claude Agent SDK

Agents · Claude Opus / Sonnet
8.6

Anthropic's official SDK for building autonomous Claude agents.

Free· Free SDK; API usage billed at Claude ratesClaude agentstool use