Xpersona
I

Install Powermem Memory

CLAWHUB · Unverified

Step-by-step guide to install and configure the PowerMem long-term memory plugin (full path, options, troubleshooting). After setup, the plugin auto-captures...

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s178ft0b7rpjjaf7eayxm2d8j983g26g:install-powermem-memory
  1. Install using `clawhub skill install s178ft0b7rpjjaf7eayxm2d8j983g26g:install-powermem-memory` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/teingi/install-powermem-memory before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-teingi-install-powermem-memory/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

45,690 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: install-powermem-memory
description: Step-by-step guide to install and configure the PowerMem long-term memory plugin (full path, options, troubleshooting). After setup, the plugin auto-captures conversation highlights and auto-recalls relevant memories. This skill is self-contained and can be published independently of any minimal-install skill.
triggers:
  - "安装 PowerMem 记忆"
  - "安装 PowerMem 记忆插件"
  - "Install PowerMem memory"
  - "Install PowerMem memory plugin"
  - "配置 PowerMem 记忆"
  - "Configure PowerMem memory"
  - "PowerMem 是什么"
  - "什么是 PowerMem"
  - "What is PowerMem"
---

# 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 `<relevant-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:
   ```bash
   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 `<OpenClaw stateDir>/powermem/data/powermem.db` and **LLM + embedding** env vars derived from OpenClaw. Typical `stateDir` is `~/.openclaw` unless t

_meta.json

{
  "ownerId": "kn7crzfth353cxtqwze88g9hmd80edtb",
  "slug": "install-powermem-memory",
  "version": "0.2.0",
  "publishedAt": 1774319162807
}

config-reference.md

# Config & Commands Quick Reference

Quick reference for this skill folder. See **SKILL.md** for the full install flow.

---

## Before the plugin: PowerMem (Python)

- **Python 3.10+** — `python3 --version`.
- **Install** — `pip install powermem` (virtualenv recommended).
- **CLI (default)** — No `powermem.env` required for a minimal setup: the plugin injects **SQLite** (under the OpenClaw **state directory**) and **LLM + embedding** from OpenClaw (`agents.defaults.model` + provider keys), as long as `useOpenClawModel` is `true` (default).
- **`pmem` on PATH** — When you start `openclaw gateway`, the same environment should expose `pmem`, or set plugin `pmemPath` to the binary’s absolute path (e.g. inside a venv).
- **Optional `.env`** — Set `envFile` to a PowerMem `.env` if you want file-based overrides; if the file exists, it is loaded first, then OpenClaw-derived variables **override** the same keys (when `useOpenClawModel` is true).
- **HTTP (shared server)** — Run `powermem-server` with its own `.env`; plugin `mode: http` + `baseUrl`. Verify with `curl` on `/api/v1/system/health`.

---

## OpenClaw requirements (CLI + auto LLM)

- Configure **`agents.defaults.model`** (e.g. `openai/gpt-4o-mini`) and provider credentials in **`models.providers`** (and/or auth the way you normally do for the gateway).
- Gateway should expose plugin **`api.config`** and **`api.runtime.modelAuth`** (recent OpenClaw releases, e.g. 2026.3.x). If those are missing, rely on a full **`envFile`** or set **`useOpenClawModel: false`** and supply `LLM_*` / `EMBEDDING_*` yourself.

---

## SQLite data location (CLI, default)

- **`<stateDir>/powermem/data/powermem.db`**, where `stateDir` is from OpenClaw (`resolveStateDir`), typically `~/.openclaw` unless `OPENCLAW_STATE_DIR` / `--workdir` points elsewhere.

---

## Installing PowerMem (do this before the plugin)

- **Python 3.10+** required. Check with `python3 --version`.
- **Install**: `pip install powermem` (prefer inside a virtualenv).
- **HTTP mode**: Create a `.env` (copy from [PowerMem .env.example](https://github.com/oceanbase/powermem/blob/master/.env.example)), set at least database + LLM + Embedding. Start server in that directory: `powermem-server --port 8000`. Verify: `curl -s http://localhost:8000/api/v1/system/health`.
- **CLI mode**: Ensure `pmem` is on PATH (e.g. activate the venv where powermem is installed). Optional: `pmem config init` for `.env`.

---

## Plugin configuration

| Key | Default | Description |
|-----|---------|-------------|
| `mode` | `cli` | `cli` (local `pmem`) or `http` (`powermem-server`). |
| `baseUrl` | — | Required when `mode` is `http` (or omit `mode` and set non-empty `baseUrl` → HTTP). |
| `apiKey` | — | HTTP: optional PowerMem server API key. |
| `envFile` | — | CLI: optional path to PowerMem `.env` (only used if the file exists). |
| `pmemPath` | `pmem` | CLI: `pmem` executable path. |
| `useOpenClawModel` | `true` | Inject LLM/embedding from OpenClaw; default SQLite unde

powermem-intro.md

# PowerMem Introduction

Use this doc when the user asks "what is PowerMem", "why use PowerMem", or needs a product overview.

---

## What is PowerMem?

**PowerMem** ([GitHub: oceanbase/powermem](https://github.com/oceanbase/powermem)) is a **long-term memory engine** that gives AI applications persistent, retrievable memory. With the **memory-powermem** plugin it is usually used via the **CLI** (`pmem`) on the same machine as OpenClaw; you can instead run an **HTTP server** (`powermem-server`) for shared or team setups.

- **OpenClaw does not bundle Python**: The plugin runs `pmem` as a subprocess (CLI) or talks to a HTTP API (server mode). Install PowerMem with `pip` (or use Docker for server mode).
- **Data stays on the user’s machine** (typical setup): **SQLite** under the OpenClaw **state directory** (`<stateDir>/powermem/data/powermem.db`) when using plugin defaults—**no `powermem.env` file is required** for that layout. Larger deployments can still use OceanBase, PostgreSQL, etc., configured in PowerMem’s own `.env` or server config.

---

## Core Features

| Feature | Description |
|---------|-------------|
| **Intelligent extraction (Infer)** | On write, an LLM can summarize, dedupe, and structure content. Needs LLM + embedding configured—either injected from **OpenClaw** (default) or from a PowerMem `.env`. |
| **Ebbinghaus forgetting curve** | Adjusts retention / importance so less relevant memories fade over time. |
| **Multi-agent / multi-user isolation** | `userId`, `agentId`, etc. separate namespaces in the store. |
| **Vector search** | Embedding-based semantic search for recall. |

---

## Relationship with OpenClaw

- **OpenClaw**: Gateway, sessions, tools; the **memory slot** is filled by a plugin.
- **memory-powermem**: Implements that slot and forwards add/search/forget to PowerMem (CLI or HTTP).
- **PowerMem**: Stores data, runs extraction, search, and forgetting logic.

**Typical personal setup:** `pip install powermem`, ensure **`agents.defaults.model`** and provider keys are set in OpenClaw, install the plugin, use **CLI mode** with defaults (`useOpenClawModel: true`, no `envFile`). The plugin supplies SQLite paths and LLM/embedding env to each `pmem` call.

**Optional:** Point **`envFile`** at a PowerMem `.env` for advanced DB/provider tuning; OpenClaw can still override LLM-related keys when `useOpenClawModel` is true.

**HTTP mode:** Run `powermem-server`, set plugin `mode: http` and `baseUrl`.

---

## Advantages over OpenClaw file-based memory

OpenClaw can use **files as memory** (e.g. `memory/YYYY-MM-DD.md`, `MEMORY.md`). The **session-memory** hook snapshots to disk on `/new` or `/reset`. PowerMem + this plugin differ as follows:

| Aspect | File-based (typical) | PowerMem + plugin |
|--------|----------------------|-------------------|
| **Recall** | Fixed files or workspace search; relevance often by recency or simple search. | **Semantic recall**: top‑k memories per turn with score threshold and limits; fewer 

skill-card.md

## Description:

Step-by-step guide to install and configure the PowerMem long-term memory plugin (full path, options, troubleshooting). After setup, the plugin auto-captures conversation highlights and auto-recalls relevant memories. This skill is self-contained and can be published independently of any minimal-install skill.

This skill is ready for commercial/non-commercial use.

## Publisher:

[teingi](https://clawhub.ai/user/teingi)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to install, configure, verify, and troubleshoot PowerMem as an OpenClaw long-term memory plugin. It supports local CLI/SQLite setups and optional HTTP server deployments.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The HTTP setup can expose persistent conversation memory on all network interfaces when run on 0.0.0.0 with optional authentication.

Mitigation: Prefer local CLI/SQLite mode, or place the HTTP server behind strong authentication and network restrictions.

Risk: Auto-capture can store secrets, regulated data, or other sensitive conversation content.

Mitigation: Disable autoCapture when handling secrets or regulated data, and review memory contents and retention settings before deployment.

Risk: Unverified package or plugin versions can create supply-chain or compatibility risk during installation.

Mitigation: Use a virtual environment and pin or verify the PowerMem package and plugin versions before installing.

## Reference(s):

- [PowerMem GitHub Repository](https://github.com/oceanbase/powermem)
- [PowerMem Environment Example](https://github.com/oceanbase/powermem/blob/master/.env.example)
- [PowerMem Issues](https://github.com/oceanbase/powermem/issues)
- [memory-powermem Installation Guide](https://github.com/ob-labs/memory-powermem/blob/main/INSTALL.md)
- [ClawHub Skill Page](https://clawhub.ai/teingi/skills/install-powermem-memory)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown with inline bash code blocks and configuration snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Includes installation order, CLI and HTTP mode configuration, verification commands, and troubleshooting guidance.]

## Skill Version(s):

0.2.0 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Install Powermem Memory and adjacent AI workflows.