Agent Memory Setup v2 (Gemini Embeddings 2)
/install agent-memory-setup-v2
Agent Memory Setup v2 — Gemini Embeddings 2
Create a 3-tier memory directory structure for OpenClaw agents and configure semantic search using Google Gemini Embeddings 2.
What This Skill Does
- Creates directory structure and stub files via a bash script (no network calls, no env reads, no dependencies)
- Provides configuration instructions for openclaw.json to enable Gemini-based memory search
Privacy Notice
⚠️ After setup, the agent's memory_search tool sends memory file content to
Google's Gemini embedding API for vectorization. This is how semantic search works —
files must be embedded to be searchable. The setup script itself makes no external calls.
Prerequisite
Google Gemini API key — free at https://aistudio.google.com/apikey
Setup
Step 1: Create directory structure
bash scripts/setup_memory_v2.sh /path/to/agent/workspace
Creates: memory/, memory/hot/, memory/warm/, stub .md files, heartbeat-state.json.
Step 2: Configure openclaw.json
Add under agents.defaults:
"memorySearch": { "provider": "gemini" },
"compaction": { "mode": "safeguard" },
"contextPruning": { "mode": "cache-ttl", "ttl": "1h" },
"heartbeat": { "every": "1h" }
Set API key: export GEMINI_API_KEY=your-key
Enable plugin: "lossless-claw": { "enabled": true }
Step 3: Restart
openclaw gateway restart
Memory Tiers
- 🔥 HOT (
memory/hot/HOT_MEMORY.md) — Active session state, pending actions - 🌡️ WARM (
memory/warm/WARM_MEMORY.md) — Stable preferences, references - ❄️ COLD (
MEMORY.md) — Long-term milestones and distilled lessons
Optional Plugin
Lossless Claw (@martian-engineering/lossless-claw) — compacts old context into
expandable summaries to prevent amnesia. Install separately:
openclaw plugins install @martian-engineering/lossless-claw
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-memory-setup-v2 - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-memory-setup-v2触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agent Memory Setup v2 (Gemini Embeddings 2) 是什么?
Create a 3-tier memory directory structure (HOT/WARM/COLD) for OpenClaw agents and configure the built-in memory-core plugin to use Google Gemini Embeddings... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 156 次。
如何安装 Agent Memory Setup v2 (Gemini Embeddings 2)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-memory-setup-v2」即可一键安装,无需额外配置。
Agent Memory Setup v2 (Gemini Embeddings 2) 是免费的吗?
是的,Agent Memory Setup v2 (Gemini Embeddings 2) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agent Memory Setup v2 (Gemini Embeddings 2) 支持哪些平台?
Agent Memory Setup v2 (Gemini Embeddings 2) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Memory Setup v2 (Gemini Embeddings 2)?
由 autosolutionsai-didac(@autosolutionsai-didac)开发并维护,当前版本 v1.0.4。