← 返回 Skills 市场
teingi

Install Powermem Memory

作者 powermem · GitHub ↗ · v0.2.0 · MIT-0
cross-platform ✓ 安全检测通过
480
总下载
3
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install install-powermem-memory
功能描述
Step-by-step guide to install and configure the PowerMem long-term memory plugin (full path, options, troubleshooting). After setup, the plugin auto-captures...
使用说明 (SKILL.md)

PowerMem Memory Guide

This skill folder includes supplementary docs:

  • powermem-intro.md — What PowerMem is, features, vs file-based memory.
  • config-reference.md — Config keys, state dir, commands.

How It Works

  • Auto-Capture: After a conversation, the plugin sends valuable user/assistant text to PowerMem (optional infer / intelligent extraction).
  • Auto-Recall: Before each turn, it searches memories and can inject a \x3Crelevant-memories> block into context.

When User Asks to Install

Recommended order (TO C): (1) OpenClaw installed and default model + provider auth configured. (2) Python 3.10+ verified (python3 --version) before venv / pip install. (3) pip install powermem and pmem available to the gateway (PATH or pmemPath). (4) Install the memory-powermem plugin. No powermem.env is required for the default path.

The curl install.sh deploys the plugin and OpenClaw entries; with -y it may still create ~/.openclaw/powermem/powermem.env as an optional template—it does not run pip install powermem. That file is not required if the user relies on OpenClaw-injected LLM + default SQLite.

  1. Check OpenClaw
    openclaw --version. If missing: npm install -g openclaw, openclaw onboard.
    Ensure agents.defaults.model is set (e.g. openai/gpt-4o-mini) and the corresponding provider / API key works for normal chat—the plugin reuses that for PowerMem when useOpenClawModel is true (default).

  2. Check Python (required before venv / pip)
    PowerMem needs Python 3.10 or newer. Run python3 --version first; the minor version must be ≥ 10 (e.g. 3.10.x, 3.12.x). Optional strict check:

    python3 -c "import sys; assert sys.version_info >= (3, 10), 'Need Python 3.10+'; print(sys.version.split()[0], 'OK')"
    

    If it fails: upgrade Python or use a specific binary (e.g. python3.12) for all commands below instead of python3.

  3. Install PowerMem (CLI — default)

    • Venv recommended: e.g. python3 -m venv ~/.openclaw/powermem/.venv && source ~/.openclaw/powermem/.venv/bin/activate.
    • pip install powermem.
    • Defaults: Plugin injects SQLite at \x3COpenClaw stateDir>/powermem/data/powermem.db and LLM + embedding env vars derived from OpenClaw. Typical stateDir is ~/.openclaw unless the user uses another instance (OPENCLAW_STATE_DIR, --workdir).
    • Optional envFile: Path to a PowerMem .env for extra tuning. If the file exists, pmem loads it; OpenClaw-derived vars still override the same keys when useOpenClawModel is true.
    • useOpenClawModel: false: Disables injection; user must supply a complete PowerMem config via .env and/or environment variables.
    • Verify: pmem --version. If the gateway does not inherit the venv, set pmemPath to the absolute path of pmem.
  4. HTTP path (enterprise / shared server)

    • Same Python 3.10+ requirement as CLI; then pip install powermem, .env in server working directory, powermem-server --host 0.0.0.0 --port 8000.
    • Check: curl -s http://localhost:8000/api/v1/system/health.
  5. Install the plugin
    openclaw plugins install /path/to/memory-powermem, or install.sh from INSTALL.md.

  6. Configure OpenClaw

    CLI — minimal (recommended, matches plugin defaults):
    Do not set envFile unless you need a file. Example:

    openclaw config set plugins.enabled true
    openclaw config set plugins.slots.memory memory-powermem
    openclaw config set plugins.entries.memory-powermem.config.mode cli
    openclaw config set plugins.entries.memory-powermem.config.pmemPath pmem
    openclaw config set plugins.entries.memory-powermem.config.useOpenClawModel true --json
    openclaw config set plugins.entries.memory-powermem.config.autoCapture true --json
    openclaw config set plugins.entries.memory-powermem.config.autoRecall true --json
    openclaw config set plugins.entries.memory-powermem.config.inferOnAdd true --json
    

    CLI — optional .env override file:

    openclaw config set plugins.entries.memory-powermem.config.envFile "$HOME/.openclaw/powermem/powermem.env"
    

    (Only matters if that path exists; OpenClaw can still override LLM keys when useOpenClawModel is true.)

    HTTP:

    openclaw config set plugins.entries.memory-powermem.config.mode http
    openclaw config set plugins.entries.memory-powermem.config.baseUrl http://localhost:8000
    

    Optional: apiKey if the server uses auth.

  7. Verify
    Restart gateway, then in another terminal:

    openclaw plugins list
    

    Confirm memory-powermem is listed and its status is loaded. If it is missing or not loaded, fix install/slot config and restart the gateway before running LTM checks.

    openclaw ltm health
    openclaw ltm add "I prefer coffee in the morning"
    openclaw ltm search "coffee"
    

Available Tools

Tool Description
memory_recall Search long-term memories. Params: query, optional limit, scoreThreshold.
memory_store Save text; optional infer. Params: text, optional importance.
memory_forget Delete by memoryId or by query search.

Configuration (summary)

Field Default Description
mode cli cli or http.
baseUrl Required for HTTP; if mode omitted and baseUrl set → HTTP.
apiKey HTTP server auth.
envFile Optional CLI .env (used only if file exists).
pmemPath pmem CLI binary path.
useOpenClawModel true Inject LLM/embedding from OpenClaw + default SQLite under state dir.
recallLimit 5 Max memories per recall.
recallScoreThreshold 0 Min score 0–1.
autoCapture / autoRecall / inferOnAdd true Auto memory pipeline and infer on add.

Daily Operations

openclaw gateway

openclaw ltm health
openclaw ltm add "Some fact to remember"
openclaw ltm search "query"

openclaw config set plugins.slots.memory none
openclaw config set plugins.slots.memory memory-powermem

Restart the gateway after slot or plugin config changes.

Troubleshooting

Symptom Fix
Python \x3C 3.10 Run step 2 first; upgrade Python or use python3.11 / python3.12 for venv and pip install. Do not skip the version check.
pip install powermem fails Confirm Python 3.10+, clean venv. See PowerMem issues.
pmem not found Activate venv or set pmemPath to the full binary.
openclaw ltm health unhealthy (CLI) Confirm agents.defaults.model and provider keys in OpenClaw; gateway version should expose plugin config + runtime.modelAuth. Or set useOpenClawModel: false and a full envFile.
Health OK but add/search errors Embedding/LLM mismatch for your provider—see gateway logs; try optional PowerMem .env from .env.example.
Wrong SQLite file / instance Data is under that OpenClaw instance’s stateDir (OPENCLAW_STATE_DIR / --workdir).
HTTP mode Server running, baseUrl correct, apiKey if enabled.
openclaw plugins list: no memory-powermem, or status is not loaded Re-run plugin install; set plugins.enabled true and plugins.slots.memory = memory-powermem; restart gateway; run openclaw plugins list again until memory-powermem shows loaded.
安全使用建议
This guide appears internally consistent, but review these points before installing: - Privacy & auto-capture: The plugin's defaults (autoCapture=true, autoRecall=true) will automatically store conversation highlights and inject memories. If you have privacy concerns, disable autoCapture or inspect what is stored and where (default: ~/.openclaw/powermem/data/powermem.db). - Credentials flow: If you leave useOpenClawModel=true, OpenClaw’s configured model/provider credentials may be provided to PowerMem (pmem process or server) so it can call LLM/embedding services. If you prefer isolation, set useOpenClawModel=false and supply a dedicated powermem.env or separate provider keys. - Verify upstream code before running helpers: The SKILL refers to an install.sh and the memory-powermem repo. Inspect any install scripts (install.sh) and the GitHub INSTALL.md before running them to ensure they do not perform unexpected network or filesystem actions. - Prefer virtualenv and local SQLite: Follow the guide’s venv recommendation and use the default SQLite local store for personal setups to limit network exposure. For server/enterprise deployments, configure API keys and server auth carefully. - Confirm network behavior: If you install powermem or run powermem-server, check whether powermem calls remote endpoints (LLM providers, telemetry). Review powermem docs/source (linked) and run powermem-server locally with health checks before pointing the plugin at it. If you want more confidence, provide the exact install.sh referenced (or the memory-powermem repo URL you plan to use) and I can review that script for suspicious commands or network downloads.
功能分析
Type: OpenClaw Skill Name: install-powermem-memory Version: 0.2.0 The skill bundle provides comprehensive documentation and step-by-step instructions for installing and configuring the PowerMem long-term memory plugin. It guides the AI agent through environment verification (Python 3.10+), package installation via pip, and OpenClaw configuration commands. The behavior described, such as auto-capturing conversation highlights and semantic recall, is consistent with the stated purpose of the plugin, and no evidence of malicious intent, data exfiltration, or unauthorized execution was found across SKILL.md, config-reference.md, or powermem-intro.md.
能力评估
Purpose & Capability
The name/description match the instructions: SKILL.md is a step-by-step installer and config guide for PowerMem and the memory-powermem plugin. All required actions (checking OpenClaw, installing Python/pmem, installing the plugin, setting OpenClaw config) are directly relevant to that purpose; nothing unrelated is requested.
Instruction Scope
Instructions explicitly tell the agent/operator to run CLI commands, create/activate a Python venv, pip install powermem, and configure OpenClaw (enable plugin, set pmemPath, toggles like autoCapture/autoRecall). Those steps are within expected scope. The doc recommends enabling autoCapture/autoRecall and describes that the plugin will send conversation highlights to PowerMem and can inject memories before replies — this is central to the plugin but is a privacy-relevant behavioral detail the user should be aware of.
Install Mechanism
This is an instruction-only skill with no install spec or code files that would write/execute downloaded artifacts. It recommends using pip and optionally an install.sh from the memory-powermem repo; the doc points to the upstream GitHub INSTALL.md rather than embedding or fetching arbitrary third-party binaries. No suspicious download URLs or extraction steps are present in the SKILL.md content provided.
Credentials
The skill does not request any environment variables itself, which is consistent for an instruction-only guide. However, it documents and recommends useOpenClawModel: true (the default), and explains that the plugin will inject OpenClaw LLM + embedding env vars into pmem subprocess calls or server mode. That behavior is expected for an 'intelligent extraction' memory plugin, but it means provider API keys configured for the gateway may be forwarded to PowerMem (and used to call external LLM/embedding providers). Users should understand this credential flow and the privacy implications of auto-capturing conversation contents.
Persistence & Privilege
The skill does not claim always:true and is not force-included. It recommends enabling the plugin and configuring plugin settings, but does not modify unrelated skills or system-wide agent settings beyond the plugin's entries. The guide notes optional creation of ~/.openclaw/powermem/powermem.env (a per-user file) and default SQLite under the OpenClaw state dir; these are standard persistence artefacts for such a plugin.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install install-powermem-memory
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /install-powermem-memory 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.0
- Improved installation instructions: now clarifies Python version checks must precede venv/installation, and describes the role of OpenClaw-injected configuration defaults. - Updated configuration guidance: split into CLI (default/minimal, optional .env) and HTTP (shared server) sections, highlighting when extra config files are needed. - Added more detail on plugin defaults (e.g., `useOpenClawModel: true`, default SQLite database location, automatic LLM/embedding settings). - Clarified plugin installation, verification steps, and updated troubleshooting for common issues (like Python version errors, missing binaries, and configuration order). - Stated that the plugin is now self-contained and can be published independently of minimal-install skills.
v0.1.1
- Clarified that PowerMem must be installed and running (or `pmem` CLI available) before installing this plugin; the install script does not install PowerMem itself. - Added instructions to verify Python 3.10+ and provided more detailed, step-by-step PowerMem server and CLI setup, including `.env` initialization and health checks. - Improved troubleshooting section with solutions for installation errors (e.g., Python version, virtualenv activation, dependency installation). - Updated plugin installation command to `openclaw plugins install memory-powermem`. - Emphasized proper order of installation, virtual environment advice, and clearer environment activation/path guidance.
v0.1.0
- Initial release of the install-powermem-memory skill. - Provides a step-by-step guide for installing and configuring the PowerMem memory plugin for OpenClaw. - Includes supplementary docs: product introduction and configuration reference. - Details setup for both HTTP (server) and CLI (local) modes. - Lists available memory tools and config options. - Covers installation, configuration, verification, daily operations, and troubleshooting steps.
元数据
Slug install-powermem-memory
版本 0.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Install Powermem Memory 是什么?

Step-by-step guide to install and configure the PowerMem long-term memory plugin (full path, options, troubleshooting). After setup, the plugin auto-captures... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 480 次。

如何安装 Install Powermem Memory?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install install-powermem-memory」即可一键安装,无需额外配置。

Install Powermem Memory 是免费的吗?

是的,Install Powermem Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Install Powermem Memory 支持哪些平台?

Install Powermem Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Install Powermem Memory?

由 powermem(@teingi)开发并维护,当前版本 v0.2.0。

💬 留言讨论