Long-term memory via ChromaDB with local Ollama embeddings. Auto-recall injects relevant context every turn. No cloud APIs required — fully self-hosted.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install chromadb-memory或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install chromadb-memory⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/chromadb-memory/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: chromadb-memory description: Long-term memory via ChromaDB with local Ollama embeddings. Auto-recall injects relevant context every turn. No cloud APIs required — fully self-hosted. version: 1.2.0 author: matts homepage: https://github.com/openclaw/openclaw metadata: openclaw: emoji: "🧠" requires: bins: ["curl"] category: "memory" tags: - memory - chromadb - ollama - vector-search - local - self-hosted - auto-recall ---
Long-term semantic memory backed by ChromaDB and local Ollama embeddings. Zero cloud dependencies.
chromadb_search tool: Manual semantic search over your ChromaDB collection```bash docker run -d --name chromadb -p 8100:8000 chromadb/chroma:latest ```
```bash ollama pull nomic-embed-text ```
# 1. Copy the plugin extension
mkdir -p ~/.openclaw/extensions/chromadb-memory
cp {baseDir}/scripts/index.ts ~/.openclaw/extensions/chromadb-memory/
cp {baseDir}/scripts/openclaw.plugin.json ~/.openclaw/extensions/chromadb-memory/
# 2. Add to your OpenClaw config (~/.openclaw/openclaw.json):
{
"plugins": {
"entries": {
"chromadb-memory": {
"enabled": true,
"config": {
"chromaUrl": "http://localhost:8100",
"collectionName": "longterm_memory",
"ollamaUrl": "http://localhost:11434",
"embeddingModel": "nomic-embed-text",
"autoRecall": true,
"autoRecallResults": 3,
"minScore": 0.5
}
}
}
}
}
# 4. Restart the gateway
openclaw gateway restart
| Option | Default | Description | |--------|---------|-------------| | chromaUrl | http://localhost:8100 | ChromaDB server URL | | collectionName | longterm_memory | Collection name (auto-resolves UUID, survives reindexing) | | collectionId | — | Collection UUID (optional fallback) | | ollamaUrl | http://localhost:11434 | Ollama API URL | | embeddingModel | nomic-embed-text | Ollama embedding model | | autoRecall | true | Auto-inject relevant memories each turn | | autoRecallResults | 3 | Max auto-recall results per turn | | minScore | 0.5 | Minimum similarity score (0-1) |
minScore are injected into the agent's context as Auto-recall adds ~275 tokens per turn worst case (3 results × ~300 chars + wrapper). Against a 200K+ context window, this is negligible.
minScore to 0.6 or 0.7minScore to 0.4, increase autoRecallResults to 5autoRecall: false, use chromadb_search toolUser Message → Ollama (embed) → ChromaDB (query) → Context Injection
↓
Agent Response
No OpenAI. No cloud. Your memories stay on your hardware.
安装 Chromadb Memory Pub 后,可以对 AI 说这些话来触发它
Help me get started with Chromadb Memory Pub
Explains what Chromadb Memory Pub does, walks through the setup, and runs a quick demo based on your current project
Use Chromadb Memory Pub to long-term memory via ChromaDB with local Ollama embeddings
Invokes Chromadb Memory Pub with the right parameters and returns the result directly in the conversation
What can I do with Chromadb Memory Pub in my documents & notes workflow?
Lists the top use cases for Chromadb Memory Pub, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/chromadb-memory/ 目录(个人级,所有项目可用),或 .claude/skills/chromadb-memory/(项目级)。重启 AI 客户端后,用 /chromadb-memory 主动调用,或让 AI 根据上下文自动发现并使用。
Chromadb Memory Pub 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Chromadb Memory Pub 可免费安装使用。请查阅仓库了解许可证信息。
Long-term memory via ChromaDB with local Ollama embeddings. Auto-recall injects relevant context every turn. No cloud APIs required — fully self-hosted.
Chromadb Memory Pub 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Chromadb Memory Pub
Identifies repetitive steps in your workflow and sets up Chromadb Memory Pub to handle them automatically