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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agent-memory-setup-v2 - After installation, invoke the skill by name or use
/agent-memory-setup-v2 - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 156 downloads so far.
How do I install Agent Memory Setup v2 (Gemini Embeddings 2)?
Run "/install agent-memory-setup-v2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Agent Memory Setup v2 (Gemini Embeddings 2) free?
Yes, Agent Memory Setup v2 (Gemini Embeddings 2) is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Agent Memory Setup v2 (Gemini Embeddings 2) support?
Agent Memory Setup v2 (Gemini Embeddings 2) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Agent Memory Setup v2 (Gemini Embeddings 2)?
It is built and maintained by autosolutionsai-didac (@autosolutionsai-didac); the current version is v1.0.4.