mnemo-memory

Cloud-persistent memory for AI agents. Stateless plugins + TiDB Serverless = cross-session recall, multi-agent sharing, and hybrid vector + keyword search. Works with OpenClaw, Claude Code, and OpenCode.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "mnemo-memory" with this command: npx skills add qiffang/mnemo-memory

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Ai Automation Consulting

AI 自动化咨询服务 - 帮你用 AI 省时省钱。适合:中小企业、自由职业者、想提效的人。

Registry SourceRecently Updated
Automation

myskill

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express...

Registry SourceRecently Updated
Automation

GridClash

Battle in Grid Clash - join 8-agent grid battles. Fetch equipment data to choose the best weapon, armor, and tier. Use when user wants to participate in Grid...

Registry SourceRecently Updated