Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

memoryaimemoryai 搜索

Agent Skill

memoryai 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

16,255

周安装

664

GitHub Stars

公开资料未说明

下载量

5,259
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memoryai(memoryai 搜索)
来源仓库:https://github.com/ch270035/memoryai
安装命令:
openclaw skills install memoryai
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install memoryai

简介

memoryai 为 AI Agent 提供持久长期记忆,支持无缝切换会话与零上下文丢失。

  • 适用于 OpenClaw 中需要跨会话一致性与深度上下文延续的任务。
  • 通过 clawhub 安装后,支持记忆存储、回忆与推理一体化。
  • 安装命令:openclaw skills install memoryai;需确保后端存储稳定可用。
  • 建议测试大批量记忆加载时的性能表现。

SKILL.md

name
memoryai
description
Persistent long-term memory for AI agents. Store, recall, reason, and seamlessly switch sessions with zero context loss.
version
1.0.0
metadata
{"openclaw": {"emoji": "🧠", "requires": {"bins": ["python3"], "env": ["HM_API_KEY", "HM_ENDPOINT", "OPENCLAW_DIR", "WORKSPACE"]}, "primaryEnv": "HM_API_KEY"}}

MemoryAI — A Brain for Your AI Agent 🧠

Every AI session starts from zero. Yours doesn't have to.

You spend 2 hours explaining your codebase, your preferences, your architecture decisions. The session ends. Tomorrow? Your AI has amnesia. You start over. Again.

MemoryAI fixes this permanently. It gives your AI agent a real long-term memory — one that remembers what you built, what you decided, what you prefer, and why. Not for hours. For weeks, months, even years.

See it in action:

Monday: "Our API uses /v1/ prefix, TypeScript with 2-space tabs, and we deploy via GitHub Actions." 3 weeks later: You say "write a new endpoint." Your AI already knows the prefix, the style, the pipeline. Zero repetition. It just *remembers.*

Your AI's memory works like yours:

  • 🔥 Hot — Daily drivers: active projects, current preferences. Instant recall, always sharp.
  • 🌤️ Warm — Important context: past decisions, completed tasks. Fades gently, snaps back when needed.
  • ❄️ Cold — Deep archive: old projects, historical conversations. Never deleted, always searchable.

The more your AI uses a memory, the sharper it stays. Unused memories age into cold storage — but a single recall brings them right back. Just like the human brain.

Zero dependencies. Pure Python stdlib. Every line of source code is readable, auditable, and yours to inspect.

What's new:

  • v1.0.0 — Context Guard v4: reads token usage directly from OpenClaw. No API dependency, cross-platform.
  • v0.5.0 — Zero-gap session handoff: switch sessions without losing a single thought.

Setup

  1. Get API key from https://memoryai.dev (free tier available)
  2. Edit {baseDir}/config.json:
{
  "endpoint": "https://memoryai.dev",
  "api_key": "hm_sk_your_key_here"
}

Or set env vars: HM_ENDPOINT and HM_API_KEY.

  1. Test: python {baseDir}/scripts/client.py stats

Commands

Store memory

python {baseDir}/scripts/client.py store -c "data to remember" -t "tag1,tag2" -p hot

Priority: hot (important, frequent recall) | warm (default) | cold (archive)

Optional parameters:

  • --memory-type <type>fact, decision, preference, error, goal, episodic
  • --retention <policy>forever, 6m, 1y, auto (default)

Recall memory

python {baseDir}/scripts/client.py recall -q "what was discussed?" -d deep

Depth controls how hard the brain tries to remember:

  • fast — Quick surface recall
  • deep — Thorough search, connecting related ideas
  • exhaustive — Deep concentrated effort

Stats

python {baseDir}/scripts/client.py stats

Compact (consolidate memories)

python {baseDir}/scripts/client.py compact -c "session transcript or context" -t "task description"

Like how the brain consolidates memories during sleep — distills a long session into key memories.

Restore context

python {baseDir}/scripts/client.py restore -t "what I was working on"

Wake up with full context for your current task.

Check context health

python {baseDir}/scripts/client.py check

Returns urgency: low | medium | high | critical

Reflect (auto-reflection)

python {baseDir}/scripts/client.py reflect --hours 24 --max-insights 5

Finds recurring patterns in recent memories and creates insight chunks.

Session Handoff (v0.5.0)

Zero-gap session switching — when context window fills up, seamlessly transition to a new session without losing any context.

How it works:

  1. Old session sends its conversation to your configured MemoryAI endpoint (HTTPS)
  2. New session retrieves the old conversation + related long-term memories from the same endpoint
  3. Once the new session has enough context, the old session is archived into long-term storage

Start handoff (save old session)

python {baseDir}/scripts/client.py handoff-start -c '[{"role":"user","content":"..."},{"role":"assistant","content":"..."}]'

Or pipe from stdin:

echo '[ ... conversation ... ]' | python {baseDir}/scripts/client.py handoff-start

Restore handoff (new session reads old session)

python {baseDir}/scripts/client.py handoff-restore

Returns the old session conversation + related MemoryAI memories.

Options:

  • --no-memories — Skip related MemoryAI memories
  • --memory-limit N — Max related memories (default: 5)

Complete handoff (archive old session)

python {baseDir}/scripts/client.py handoff-complete

Archives the old session conversation into long-term MemoryAI storage and marks the handoff as done.

Check handoff status

python {baseDir}/scripts/client.py handoff-status

Returns whether there's an active handoff and its state.

Context Guard (Optional)

Background job to automatically monitor and compact memory when context gets too large.

To enable, ask the user for permission first, then create a cron job:

  • Name: context-guard
  • Schedule: every 15 minutes (everyMs: 900000)
  • Session: isolated
  • Delivery: none
  • Payload (agentTurn):
Run context check: python {baseDir}/scripts/client.py check
If urgency is 'high' or 'critical': run python {baseDir}/scripts/client.py compact -c "auto context guard backup" -t "context-guard"
Reply NO_REPLY.

Important: Always ask the user before creating the cron job.

When to Use

TriggerActionPriorityTags
Task completedstore outcomehotprojects
User says "remember this"store contenthotpeople
Research/search donestore findingswarmresearch
Technical decisionstore decisionhotdecisions
Error/lesson learnedstore lessonhoterrors
Need past contextrecall first
End of sessioncompact important context
Start of sessionrestore context for task
Context too highhandoff-start + handoff-restore
New session warm enoughhandoff-complete

Memory Lifecycle

Store → Active (hot) → Aging (warm) → Archive (cold)
         ↑                                    |
         └──── recalled = strengthened ───────┘

Rules

  • Recall only when the user asks about past work, previous decisions, or you need context you don't already have in this session
  • Do NOT recall on every message — only when relevant past context is actually needed
  • Store important outcomes after completing tasks (not after every message)
  • Present memories naturally — integrate recalled information into your responses rather than showing raw API output
  • Ask for user permission before enabling context guard or any background tasks
  • Use handoff commands transparently — session management runs in the background

Platform Compatibility

All core memory features work on any platform that can run Python 3.10+:

FeatureAll PlatformsOpenClaw Only
Store / Recall / Stats
Compact / Restore / Check
Session Handoff (manual)
Reflect
Context Guard (auto monitoring)
Auto session switch

On IDE platforms (Cursor, VS Code, Claude Code, Windsurf, Antigravity):

  • All memory commands work via client.py CLI
  • Session handoff can be triggered manually when context gets large
  • Context Guard is not available (requires OpenClaw cron system)

On OpenClaw:

  • Full feature set including Context Guard and automatic session switching
  • Context Guard uses OpenClaw's cron system for periodic health checks

Data & Privacy

What this skill reads locally:

  • context_check.py reads OpenClaw's sessions.json (under OPENCLAW_DIR, defaults to ~/.openclaw) to check token usage for Context Guard.
  • A small WAL file is written to WORKSPACE/memory/wal.json to track session handoff state.
  • OPENCLAW_DIR and WORKSPACE are optional env vars — they default to ~/.openclaw and ~/.openclaw/workspace respectively.

What this skill sends externally:

  • store, compact, handoff-start: sends user-provided content (memories, session transcripts) to the configured HM_ENDPOINT via HTTPS.
  • recall, restore, handoff-restore: retrieves previously stored data from the same endpoint.
  • No data is sent automatically — all transmissions require explicit CLI invocation or agent action.

Privacy controls:

  • All data is transmitted over encrypted HTTPS connections and stored in isolated, private databases.
  • Users can export all data via /v1/export and delete all data via DELETE /v1/data at any time.
  • client.py uses only Python stdlib (urllib) — no third-party dependencies. Source is fully readable and auditable.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.57%
按下载量换算5,026

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills