Openclaw Memory Tencentdb Setup logo

Openclaw Memory Tencentdb Setup

OrganizationPopular
TencentCloud
openclaw-memory-tencentdb-setup

用于在 OpenClaw 环境中安装、配置并验证 @tencentdb-agent-memory/memory-tencentdb 插件。当用户提到"安装记忆插件""配置 memory-tencentdb""开启长期记忆/召回"或出现相关报错时应触发。

Overview

PublisherTencentCloud
RepositoryTencentDB-Agent-Memory
Skill nameopenclaw-memory-tencentdb-setup
Stars
26.9K
Forks
2.5K
Bundled files
386
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 386 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by TencentCloud on GitHub. Read the source before you install it.

Installation

Install the Openclaw Memory Tencentdb Setup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TencentCloud/TencentDB-Agent-Memory.git /tmp/TencentDB-Agent-Memory
mkdir -p .claude/skills
cp -r /tmp/TencentDB-Agent-Memory/MemoryCore .claude/skills/openclaw-memory-tencentdb-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Openclaw Memory Tencentdb Setup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Openclaw Memory Tencentdb Setup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Openclaw Memory Tencentdb Setup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

目的

在不依赖外部托管记忆服务的前提下,为 OpenClaw 提供可持续的本地长期记忆能力(L0→L1→L2→L3),并完成从安装、配置到验收的一次性闭环。

适用场景

  • 用户要求在 OpenClaw 中安装或启用 memory-tencentdb
  • 用户需要配置召回、提取、画像、清理等参数
  • 用户反馈"插件已装但无记忆 / 无召回 / 无向量检索"

不适用场景

  • 用户只需要解释 memory 理念,不要求实际落地
  • 用户要接入非 OpenClaw 宿主(先确认目标框架)

标准工作流

1) 环境预检

先确认基础版本满足要求:

  • OpenClaw: >= 2026.3.13
  • Node.js: >= 22.16.0

执行:

bash
openclaw --version
node -v

若版本不满足,先升级再继续。

2) 安装插件

执行安装命令:

bash
openclaw plugins install @tencentdb-agent-memory/memory-tencentdb

如已安装则执行更新:

bash
openclaw plugins update memory-tencentdb

3) 写入最小配置

编辑 ~/.openclaw/openclaw.json,确保存在:

json
{
  "memory-tencentdb": {
    "enabled": true
  }
}

说明:该插件支持零配置启动;不补充其它字段也能运行基础能力。

4) 按需追加推荐配置(生产常用)

根据用户需求补充如下分组:

  • capture: 对话捕获与保留策略
  • extraction: L1 提取与去重
  • pipeline: L1→L2→L3 调度
  • recall: 召回数量、阈值、策略
  • persona: 场景与画像触发参数
  • embedding: 向量检索配置(远端 OpenAI 兼容)

推荐模板:

json
{
  "memory-tencentdb": {
    "capture": {
      "enabled": true,
      "excludeAgents": [],
      "l0l1RetentionDays": 90,
      "cleanTime": "03:00"
    },
    "extraction": {
      "enabled": true,
      "enableDedup": true,
      "maxMemoriesPerSession": 10,
      "model": "provider/model"
    },
    "pipeline": {
      "everyNConversations": 5,
      "enableWarmup": true,
      "l1IdleTimeoutSeconds": 600,
      "l2DelayAfterL1Seconds": 10,
      "l2MinIntervalSeconds": 900,
      "l2MaxIntervalSeconds": 3600,
      "sessionActiveWindowHours": 24
    },
    "recall": {
      "enabled": true,
      "maxResults": 5,
      "scoreThreshold": 0.3,
      "strategy": "hybrid"
    },
    "persona": {
      "triggerEveryN": 50,
      "maxScenes": 15,
      "backupCount": 3,
      "sceneBackupCount": 10,
      "model": "provider/model"
    },
    "embedding": {
      "enabled": true,
      "provider": "openai",
      "baseUrl": "https://api.openai.com/v1",
      "apiKey": "${EMBEDDING_API_KEY}",
      "model": "text-embedding-3-small",
      "dimensions": 1536,
      "conflictRecallTopK": 5
    }
  }
}

5) 关键配置规则(避免隐性失败)

  • embedding.provider = "none" 时,向量能力会禁用,仅保留关键词路径。
  • 若配置远端 provider(如 openai / deepseek),必须同时提供:
    • apiKey
    • baseUrl
    • model
    • dimensions
  • 上述任一缺失时,插件会继续运行,但自动降级为非向量模式。
  • l0l1RetentionDays
    • 0 表示不清理
    • 0 时建议 >=3
    • 若设为 1~2,需显式开启 allowAggressiveCleanup

6) 重启并验证生效

执行:

bash
openclaw gateway restart

检查项:

  • Gateway 日志中出现 [memory-tdai] 前缀
  • 数据目录已创建:~/.openclaw/state/memory-tdai/
  • 至少包含:conversations/records/scene_blocks/vectors.db

7) 功能冒烟测试

执行一次最小对话回路并验证:

  1. 连续对话 2~3 轮,提供可记忆信息(偏好、约束、背景)。
  2. 发起新一轮对话,观察是否出现召回上下文注入。
  3. 在 Agent 中调用:
    • tdai_memory_search
    • tdai_conversation_search
  4. 确认能检索到刚刚产生的内容。

故障排查速查

  • 插件无日志:检查 openclaw.jsonmemory-tencentdb.enabled 是否为 true,并确认已重启 Gateway。
  • 有记录无召回:检查 recall.enabledscoreThreshold 是否过高。
  • 无向量结果:检查 embedding 四元组(apiKey/baseUrl/model/dimensions)是否齐全。
  • 清理过猛导致历史过少:检查 l0l1RetentionDaysallowAggressiveCleanup
  • 配置已改但行为不变:确认修改的是 ~/.openclaw/openclaw.json,并再次重启 Gateway。

安全与合规约束

  • apiKey 视为敏感信息;不在聊天、日志、截图中明文扩散。
  • 优先使用环境变量注入密钥;配置示例中仅保留占位符。
  • 仅修改 memory-tencentdb 对应配置段,避免覆盖用户其它插件配置。

完成定义(Definition of Done)

在结束任务前,必须同时满足:

  • 插件安装/更新命令执行成功
  • openclaw.json 已存在有效 memory-tencentdb 配置
  • Gateway 已重启
  • [memory-tdai] 日志可见
  • 数据目录与关键文件已生成
  • 至少 1 次检索工具调用成功返回结果

交付话术模板

可在完成后向用户输出:

  • 已完成 memory-tencentdb 安装与配置,并重启 Gateway。
  • 已验证日志与数据目录生效,记忆链路可用。
  • 如需下一步优化,可继续调优 recall.scoreThresholdpipeline.everyNConversationspersona.triggerEveryNembedding 模型参数。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 140 more files.

Frequently asked questions

What does the Openclaw Memory Tencentdb Setup AI skill do?

用于在 OpenClaw 环境中安装、配置并验证 @tencentdb-agent-memory/memory-tencentdb 插件。当用户提到"安装记忆插件""配置 memory-tencentdb""开启长期记忆/召回"或出现相关报错时应触发。

Why use Openclaw Memory Tencentdb Setup on TypingMind?

Because you install it once and use it with any model. Openclaw Memory Tencentdb Setup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Openclaw Memory Tencentdb Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/TencentCloud/TencentDB-Agent-Memory/tree/feat/server_team/MemoryCore. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Openclaw Memory Tencentdb Setup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Openclaw Memory Tencentdb Setup?

As many as you like. As long as a model supports skills, you can use Openclaw Memory Tencentdb Setup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Openclaw Memory Tencentdb Setup AI skill free?

It is published on GitHub by TencentCloud. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇