← 返回
AI智能 中文

mnemo-memory

Cloud-persistent memory for AI agents. Stateless plugins + TiDB Serverless = cross-session recall, multi-agent sharing, and hybrid vector + keyword search. W...
面向AI智能体的云端持久化记忆。无状态插件结合TiDB Serverless,实现跨会话记忆召回、多智能体共享,以及混合向量与关键词检索。
qiffang
AI智能 clawhub v0.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 512
下载
💾 12
安装
1
版本
#latest

概述

mnemo — Cloud-Persistent Memory for AI Agents \U0001F9E0

Your agents are stateless. Your memory shouldn't be.

Every AI agent session starts from zero. Context is lost, decisions are forgotten, and your agents keep rediscovering what they already knew. mnemo externalizes agent memory into TiDB Cloud Serverless — so agents stay disposable, but memory persists forever.

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│ Claude Code  │     │  OpenCode   │     │  OpenClaw   │
│   Plugin     │     │   Plugin    │     │   Plugin    │
└──────┬───────┘     └──────┬──────┘     └──────┬──────┘
       │                    │                    │
       └────────────────────┼────────────────────┘
                            │
                    ┌───────┴────────┐
                    │  mnemo-server  │  ← optional (team mode)
                    └───────┬────────┘
                            │
                    ┌───────┴────────┐
                    │   TiDB Cloud   │  ← zero-ops, free tier
                    │   Serverless   │
                    │                │
                    │  • VECTOR type │
                    │  • EMBED_TEXT  │
                    │  • HTTP API    │
                    └────────────────┘

What Problem Does This Solve?

Pain PointWithout mnemoWith mnemo
---------
Session amnesiaAgent forgets everything on restartMemory persists in the cloud
Machine-lockedMemory in local files, lost on device switchSame memory from any machine
Agent silosClaude can't see what OpenCode learnedAll agents share one memory pool
Team isolationTeammate's agent starts from scratchShared spaces with per-agent tokens
No semantic searchGrep through flat filesHybrid vector + keyword search
Concurrent conflictsLast write silently overwritesCRDT vector clocks detect & resolve

Why TiDB Cloud Serverless?

mnemo chose TiDB Cloud Serverless because it uniquely combines everything agent memory needs — in one service, at zero cost:

  • Native VECTOR type — Semantic search in the same table as your metadata. No separate vector database.
  • EMBED_TEXT() auto-embedding — TiDB generates embeddings server-side (e.g. tidbcloud_free/amazon/titan-embed-text-v2). No OpenAI API key required for semantic search.
  • HTTP Data API — Agents talk to TiDB via fetch/curl. No database drivers, no connection pools.
  • Free tier — 25 GiB storage, 250M Request Units/month. More than enough for individual use.
  • MySQL compatible — Migrate to self-hosted TiDB or MySQL anytime.

One database gives you relational storage + vector search + auto-embedding + HTTP access. No glue code. No infra.

Hybrid Search: Vector + Keyword

              Embedding configured?
              ┌─────────┴─────────┐
             Yes                  No
              │                    │
        Hybrid search        Keyword only
        (vector + keyword)   (LIKE '%q%')
              │                    │
    ┌─────────┴─────────┐         │
 Vector results     Keyword       │
 (ANN cosine)       results       │
    └─────────┬─────────┘         │
         Merge & rank         Direct results

Three embedding options — pick one or none:

  1. TiDB auto-embeddingEMBED_TEXT() generates vectors server-side. Zero config. Free.
  2. OpenAI / compatible API — Set MNEMO_EMBED_API_KEY. Works with Ollama too.
  3. No embedding — Keyword search works immediately. Add vectors later, no migration needed.

Multi-Agent Conflict Resolution (CRDT)

When multiple agents write to the same memory, mnemo uses vector clocks — no coordination required:

Agent A: clock {A:3, B:1}        Agent B: clock {A:2, B:2}
         \                                /
          └──── Server compares ─────────┘
                       │
               Neither dominates →
               Concurrent conflict!
                       │
            Deterministic tie-break
                       │
               Winner saved, clocks merged: {A:3, B:2}
ScenarioResult
------
A's clock dominates B'sA wins — B's write is stale
B's clock dominates A'sB wins — A's write is outdated
Concurrent (neither dominates)Deterministic tie-break — no data loss
No clock sent (legacy client)LWW fast path — backward compatible

Deletes are soft (tombstone + clock increment) — no ghost resurrection from agents that missed the delete.

Install for OpenClaw

npm install mnemo-openclaw

Add to openclaw.json:

{
  "plugins": {
    "slots": { "memory": "mnemo" },
    "entries": {
      "mnemo": {
        "enabled": true,
        "config": {
          "host": "<your-tidb-host>",
          "username": "<your-tidb-user>",
          "password": "<your-tidb-pass>"
        }
      }
    }
  }
}

Get a free cluster in 30 seconds at tidbcloud.com.

Optional — enable auto-embedding (no API key needed):

{
  "config": {
    "host": "...",
    "username": "...",
    "password": "...",
    "autoEmbedModel": "tidbcloud_free/amazon/titan-embed-text-v2",
    "autoEmbedDims": 1024
  }
}

Also Works With

PlatformInstall
------
Claude Code/plugin marketplace add qiffang/mnemos/plugin install mnemo-memory@mnemos
OpenCode"plugin": ["mnemo-opencode"] in opencode.json
Any HTTP clientREST API or TiDB HTTP Data API directly

5 Memory Tools

ToolWhat it does
------
memory_storeStore a memory (upsert by key, with optional CRDT clock)
memory_searchHybrid vector + keyword search across all memories
memory_getRetrieve a single memory by ID
memory_updateUpdate an existing memory
memory_deleteSoft delete with tombstone (CRDT-aware)

Two Modes, One Plugin

Direct ModeServer Mode
---------
ForIndividual developersTeams with multiple agents
BackendPlugin → TiDB ServerlessPlugin → mnemo-server → TiDB
DeployNothing — free tierSelf-host Go binary
FeaturesHybrid search, auto-embedding+ Space isolation, per-agent tokens, CRDT

Mode is inferred from config. Start personal, scale to team — no code change.

Links


Built for agents that need to remember. Powered by TiDB Cloud Serverless.

版本历史

共 1 个版本

  • v0.2.0 当前
    2026-03-30 13:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,222
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,359 📥 318,562
ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 418 📥 115,252