ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

windows-local-embedding

在 Windows 上为 OpenClaw 配置本地 embedding / 本地记忆检索时使用。适用于:下载并接入 `nomic-embed-text-v1.5.Q8_0.gguf`、把 `memorySearch.provider` 改成 `local`、检查 `openclaw memory status --deep`、以及排查"模型下了但不生效""路径写错""provider 不是 local""本地依赖没通"这类问题。对虾宝或其他 Windows 环境的龙虾尤其适用。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/dadaniya99/windows-local-embedding
Or

Windows Local Embedding

处理 Windows 环境下的 OpenClaw 本地 embedding / 本地记忆检索

为什么先做成 Windows 专用?

不是因为本地 embedding 只能在 Windows 上用,而是因为这次最真实、最紧急的使用场景就是:

  • 虾宝是 Windows 环境
  • 之前一直没配成功
  • Windows 最容易卡在路径、转义、重启是否生效这些细节上

所以先把它做成 Windows 定向 skill,是为了先解决最容易卡住的真实问题。

快速判断

  • 用户说"本地 embedding 怎么配" → 用本 skill
  • 用户说"虾宝 Windows 上本地 embedding 没成功" → 用本 skill
  • 用户要下载 nomic-embed-text-v1.5.Q8_0.gguf 并接到 OpenClaw → 用本 skill
  • 用户已经改了配置,但 provider 不是 local / 不生效 → 用本 skill

推荐流程

1. 先确认目标

默认目标不是 QMD,也不是复杂的外部向量数据库,而是:

  • OpenClaw 自带 memorySearch
  • provider = local
  • 本地 GGUF embedding 模型可用

2. 模型文件

下载完之后验证文件头是否为 GGUF(正确的 gguf 文件头部4字节是 ASCII 的 "GGUF"):

$fs = [System.IO.File]::OpenRead("你的文件路径\nomic-embed-text-v1.5.Q8_0.gguf")
$buf = New-Object byte[] 4
$fs.Read($buf, 0, 4) | Out-Null
$fs.Close()
[System.Text.Encoding]::ASCII.GetString($buf)  # 应该输出 GGUF

3. 安装 node-llama-cpp(应用商店版 OpenClaw 必须做这步)

应用商店版 OpenClaw 没有打包 node-llama-cpp,必须手动安装,否则本地 embedding 无法运行。

cd "D:\Program Files\OpenClaw\resources\openclaw"
npm install node-llama-cpp

安装过程较慢(需要下载预编译二进制,约 10-40 分钟),耐心等待。 出现 added xxx packages 即为成功,warn 和 vulnerabilities 提示可以忽略。

4. 配置 openclaw.json

C:\Users\Administrator\.openclaw\openclaw.json 中确认以下配置:

"memorySearch": {
  "provider": "local",
  "fallback": "none",
  "local": {
    "modelPath": "D:\\你的路径\\nomic-embed-text-v1.5.Q8_0.gguf"
  }
}

注意 Windows 路径里反斜杠要转义成 \\

5. 重启 OpenClaw

不是点 Dashboard 里的"连接"按钮——那只是重连 Dashboard,不会重载配置。

需要完全关闭 OpenClaw 应用再重新打开。

6. 验证是否生效

重启后用以下脚本验证(因为 openclaw memory status --deep CLI 在 Windows 上无输出,用这个代替):

// check_memory.mjs
const base = 'file:///D:/Program%20Files/OpenClaw/resources/openclaw/dist/';
const { n: callGateway } = await import(base + 'call-C5sk0PsH.js');
const result = await callGateway({
  method: 'doctor.memory.status',
  params: { deep: true },
  timeoutMs: 15000
});
console.log(JSON.stringify(result, null, 2));
node check_memory.mjs

成功的输出:

{
  "agentId": "main",
  "provider": "local",
  "embedding": {
    "ok": true
  }
}

装好之后怎么使用?

装好之后,它不会自动让记忆"变聪明",而是让 记忆检索底层改为本地运行

  1. 确保 MEMORY.mdmemory/ 里本来就有内容
  2. 正常和龙虾对话
  3. 当龙虾需要回忆旧事时,会通过本地 embedding 去捞记忆

最常见问题

1. 报错 node-llama-cpp is missing

应用商店版 OpenClaw 必须手动安装:

cd "D:\Program Files\OpenClaw\resources\openclaw"
npm install node-llama-cpp

2. 模型下载了,但没生效

优先排查:

  • 文件是否真的是 GGUF 格式(验证文件头)
  • 文件大小是否约 139MB(不是 496MB)
  • 路径和文件名是否写对
  • Windows 反斜杠是否转义成 \\
  • 改完是否完全重启了 OpenClaw(不是点"连接"按钮)

3. provider 不是 local

优先排查:

  • JSON 结构写错位置
  • 改错配置文件
  • 改完没重启

4. 效果一般

Metadata

Stars3409
Views0
Updated2026-03-25
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-dadaniya99-windows-local-embedding": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

evomap-gep

Connect any OpenClaw agent to the EvoMap collaborative evolution marketplace via the GEP-A2A protocol — no evolver required. Activate when the user or agent mentions EvoMap, wants to search for capsules or genes from other agents, publish a solution, or learn the GEP protocol. sender_id is auto-detected from MEMORY.md — each agent just saves their node ID once and the scripts handle the rest.

dadaniya99 3409

feishu-card

飞书互动卡片发送技能(国际版 Feishu 兼容)。当需要发送格式丰富的飞书卡片消息时使用。支持标题、Markdown 内容、颜色主题。关键:必须使用 schema 2.0 格式 + 双重 JSON stringify,否则国际版飞书(Feishu)无法渲染。

dadaniya99 3409

pdf-ocr

PDF扫描件转Word文档。支持中文OCR识别,自动裁掉页眉页脚,保留插图,彩色章节封面页保留为图片。使用百度OCR API(免费额度1000次/月)。当用户要求把扫描PDF转成文字/Word时触发。

dadaniya99 3409

sketch-illustration

插画图片生成技能,支持多种手绘风格。使用 Imagen 3(ZenMux API)生成插图,适合流程图、功能说明、PPT配图、教程配图、知识图和手绘信息图等场景。支持四种风格:A) Sketch 极简手绘风(Notion/Linear 风格,简笔人物,冷淡低饱和);B) Watercolor 奶油彩铅水彩风(暖色调,纸纹彩铅,适合PPT讲义);C) Flat Vector Retro 扁平矢量复古风(黑色轮廓线,几何简化,复古配色,适合NotebookLM PPT/课程封面);D) Doodle Infographic 白纸手绘知识图风(白纸背景、拟人角色、高信息密度、手账/课堂板书感,适合概念对比、方法论、拖延机制、知识卡片)。生成后自动上传发送到飞书。当用户要求生成插画、配图、手绘风格图、流程示意图、产品插图、PPT配图、知识图、信息图、手绘知识海报时触发此技能。

dadaniya99 3409

eudic-vocab

欧路词典生词本管理与每日测试技能。支持自动从欧路词典收藏夹出题、管理单词、删除已掌握词汇。适合每日背单词使用。

dadaniya99 3409