← 返回
未分类 Key 中文

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...
为 OpenClaw agents 创建三层记忆目录结构(HOT/WARM/COLD),并配置内置 memory‑core 插件使用 Google GeminiEmbeddings...
autosolutionsai-didac autosolutionsai-didac 来源
未分类 clawhub v1.0.4 1 版本 100000 Key: 需要
★ 1
Stars
📥 425
下载
💾 0
安装
1
版本
#latest

概述

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

  1. Creates directory structure and stub files via a bash script (no network calls, no env reads, no dependencies)
  2. 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

版本历史

共 1 个版本

  • v1.0.4 当前
    2026-05-03 07:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,507 📥 566,971
office-efficiency

Gamma App API

autosolutionsai-didac
通过 Gamma.app API 创建演示文稿、文档、社交帖子和网页。当被要求创建演示文稿、推销文稿、幻灯片、文档时使用。
★ 0 📥 753
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 859 📥 339,847