freshcrate
Skin:/
Home > Databases > powermem

powermem

PowerMem: Your AI-Powered Long-Term Memory — Accurate, Agile, Affordable. Also friendly support for the OpenClaw Memory Plugin.

Why this rank:Strong adoptionRecent releaseHealthy release cadence

Description

PowerMem: Your AI-Powered Long-Term Memory — Accurate, Agile, Affordable. Also friendly support for the OpenClaw Memory Plugin.

README

PowerMem

Persistent memory for AI agents and applications.

PyPI version PyPI downloads Python 3.11+ License Apache 2.0 GitHub Discord

English · 中文 · 日本語

PowerMem combines vector, full-text, and graph retrieval with LLM-driven memory extraction and Ebbinghaus-style time decay. It supports multi-agent isolation, user profiles, and multimodal signals (text, image, audio).

Use the Python SDK, CLI (pmem), or the HTTP API Server (with Dashboard at /dashboard/). An MCP server is also available. All share one .env. See .env.example and the configuration guide.

OpenClaw integration

OpenClaw can use PowerMem as long-term memory via the memory-powermem plugin.

openclaw plugins install memory-powermem

Requires the OpenClaw CLI to be installed.

PowerMem with OpenClaw

Quick start

Prerequisites: Copy .env.example to .env and set LLM and embedding credentials (the default database is SQLite; OceanBase can use embedded SeekDB — see .env.example). Alternatively, after installing PowerMem, run pmem config init to create .env interactively. See Getting started.

Install

pip install powermem

SDK example

Run from a directory that contains your configured .env:

from powermem import Memory, auto_config

config = auto_config()
memory = Memory(config=config)

memory.add("User likes coffee", user_id="user123")

results = memory.search("user preferences", user_id="user123")
for result in results.get("results", []):
    print(f"- {result.get('memory')}")

More patterns: Getting Started.

CLI (pmem, 1.0+)

pmem memory add "User prefers dark mode" --user-id user123
pmem memory search "preferences" --user-id user123

Interactive REPL (run separately; exits with exit or Ctrl+D):

pmem shell

Full reference: CLI usage.

HTTP API Server and Dashboard

Uses the same .env as the SDK. Dashboard is served under /dashboard/.

powermem-server --host 0.0.0.0 --port 8000

Use Docker or Compose as needed — see API Server and Docker & deployment.

Entry points

Mode Typical commands Docs
CLI pmem memory add / pmem memory search; pmem shell CLI usage
HTTP + Dashboard powermem-server --host 0.0.0.0 --port 8000; image oceanbase/powermem-server:latest; from repo root: docker-compose -f docker/docker-compose.yml up -d API Server
MCP Server (optional)

Requires uv and a configured .env in the working directory (see MCP Server).

uvx powermem-mcp sse

Also supports stdio and streamable-http.

Benchmark (LOCOMO)

PowerMem LOCOMO Benchmark Metrics

Compared to stuffing full conversation context on LOCOMO:

Dimension Result
Accuracy 78.70% vs. 52.9%
Retrieval p95 latency 1.44s vs. 17.12s
Tokens ~0.9k vs. ~26k

Capabilities

Interfaces and toolingPython integration; CLI (pmem); HTTP API / Dashboard; MCP (optional); IDE apps (VS Code / Cursor, Claude Code, and more).

Memory pipeline and retrievalSmart extraction and updates; Ebbinghaus-style decay; Hybrid retrieval (vector / full-text / graph); Sub stores and routing.

Profiles and multi-agentUser profile; Shared / isolated memory and scopes.

MultimodalText, image, audio.

Docs

  • Getting started — install, .env, and first Memory usage
  • Configuration — settings model, storage backends, environment variables
  • Architecture — major components, storage layout, and retrieval flow
  • API & services — REST, MCP, HTTP server, and Python-facing APIs
  • CLIpmem commands, interactive shell, backup and migration
  • Multi-agent — scopes, isolation, and cross-agent sharing
  • Integrations — LangChain and other framework wiring
  • Docker & deployment — images, Compose, and running the API server
  • Development — local setup, tests, and contributing

More topics: Sub stores, guides index.

Examples

  • Scenarios & notebooks — walkthroughs by use case (basic usage, multimodal, forgetting curve, and more)
  • LangChain sample — medical support chatbot (LangChain + PowerMem + OceanBase)
  • LangGraph sample — customer service bot (LangGraph + PowerMem + OceanBase)
  • IDE apps — VS Code extension and Claude Code plugin (link PowerMem to Cursor, Copilot, etc.)

Release highlights

Version Date Notes
1.1.0 2026-04-02 Embedded SeekDB for OceanBase storage without a separate database service; IDE integrations (VS Code extension, Claude Code plugin)
1.0.0 2026-03-16 CLI (pmem): memory ops, config, backup/restore/migrate, interactive shell, completions; Web Dashboard
0.5.0 2026-02-06 Unified SDK/API config (pydantic-settings); OceanBase native hybrid search; memory query + list sorting; user-profile language customization
0.4.0 2026-01-20 Sparse vectors for hybrid retrieval; profile-based query rewriting; schema upgrade & migration tools
0.3.0 2026-01-09 Production HTTP API Server; Docker
0.2.0 2025-12-16 Advanced profiles; multimodal (text/image/audio)
0.1.0 2025-11-14 Core memory + hybrid retrieval; LLM extraction; forgetting curve; multi-agent; OceanBase/PostgreSQL/SQLite; graph search

Support

License

Apache License 2.0 — see LICENSE.

Release History

VersionChangesUrgencyDate
powercontext-v0.1.0# PowerContext v0.1.0 **更广、更安全的上下文运行层 · A broader, safer context runtime** [中文](#中文) · [English](#english) ## 中文 ### 概览 PowerContext v0.1.0 将项目上下文从少数 Agent 集成扩展到更完整的 Agent 与框架生态,同时增强了配置、诊断、持久化、可观测性和网络安全边界。 这个版本让团队可以用同一套按 scope 隔离、保留证据链的 Memory 与 Handoff 能力连接更多工作环境;也让 Server 更容易安装、检查和安全部署。 ### 主要更新 #### 支持更多 Coding Agent 接入与框架集成 - Coding Agent 工具集成现在包含 Codex、Claude Code、DeepSeek Harness、OpenClaw、OpenCode、Pi Coding Agent 和 Hermes Agent。可以使用 `powercontext setup select`High8/31/2026
v0.0.2# PowerContext v0.0.2 — Work Continuity Across Agents PowerContext v0.0.2 expands durable project Memory into a practical work-continuity layer for human-agent and agent-to-agent collaboration. This release introduces a complete Work Contract → Handoff → Acknowledge → Task Outcome loop, adds official integrations for Claude Code, DeepSeek Harness, and Hermes Agent alongside Codex, and improves Memory reliability, observability, evaluation, and the Handoff Report experience. ## HighlightMedium8/20/2026
v0.0.1# PowerContext v0.0.1 PowerContext is PowerMem 2.0, the upgraded version of PowerMem. It turns human-agent work into durable, project-scoped context so that a new agent session can recover decisions, outcomes, current state, and next steps without relying on chat history alone. This initial release establishes the first end-to-end PowerContext workflow: capture useful work context, store it with provenance, recall it within a bounded project scope, and hand work over to another session High8/13/2026
v1.1.7## What's Changed * fix(ci): dispatch publish workflow without git checkout by @wayyoungboy in https://github.com/oceanbase/powermem/pull/1116 * feat(plugin): enable transcript inference by default; remove recall/remember skills by @lightzt99 in https://github.com/oceanbase/powermem/pull/1126 * Fix powermem-mcp help to exit without starting the server by @wayyoungboy in https://github.com/oceanbase/powermem/pull/1124 * fix(ci): avoid duplicate generated release notes by @wayyoungboy in https://gHigh6/30/2026
v1.1.5## What's Changed * Improve Claude Code plugin init flow by @wayyoungboy in https://github.com/oceanbase/powermem/pull/1024 * fix: clean up graph search tools and results by @wayyoungboy in https://github.com/oceanbase/powermem/pull/1012 * [uv] Use uvx for Claude plugin backend init by @wayyoungboy in https://github.com/oceanbase/powermem/pull/1030 * fix: make graph add relationship writes transactional by @wayyoungboy in https://github.com/oceanbase/powermem/pull/1011 * Fix unit test regressionHigh6/23/2026
v1.1.4## What's Changed * fix: handle multimodal image failures and native filter operators by @wayyoungboy in https://github.com/oceanbase/powermem/pull/982 * Fix SDK add when embedded seekdb is owned by server by @wayyoungboy in https://github.com/oceanbase/powermem/pull/973 * Expose filters on AgentMemory retrieval APIs by @wayyoungboy in https://github.com/oceanbase/powermem/pull/976 * ci: tolerate missing regression junit artifacts by @wayyoungboy in https://github.com/oceanbase/powermem/pull/999High6/13/2026
v1.1.2## What's Changed * build(deps-dev): bump vite from 7.3.1 to 7.3.2 in /dashboard by @dependabot[bot] in https://github.com/oceanbase/powermem/pull/896 * build(deps): bump lodash from 4.17.21 to 4.18.1 in /docs/website by @dependabot[bot] in https://github.com/oceanbase/powermem/pull/897 * feat: Add IDE integrations by @Teingi in https://github.com/oceanbase/powermem/pull/365 * docs: rewrite readme by @PsiACE in https://github.com/oceanbase/powermem/pull/374 * Fix SQLite filters key SQL injectionHigh6/8/2026
v1.1.1## What's Changed * build(deps-dev): bump vite from 7.3.1 to 7.3.2 in /dashboard by @dependabot[bot] in https://github.com/oceanbase/powermem/pull/896 * build(deps): bump lodash from 4.17.21 to 4.18.1 in /docs/website by @dependabot[bot] in https://github.com/oceanbase/powermem/pull/897 * feat: Add IDE integrations by @Teingi in https://github.com/oceanbase/powermem/pull/365 * docs: rewrite readme by @PsiACE in https://github.com/oceanbase/powermem/pull/374 * Fix SQLite filters key SQL injectionHigh4/24/2026
v1.1.0# PowerMem 1.1.0 **Release date:** April 2, 2026 ## Overview This minor release focuses on **embedded seekdb** support for OceanBase-backed deployments, so you can run PowerMem against a **local embedded database** without a separate database server. It also includes CLI and embedding configuration fixes. ## Quick start: from install to embedded seekdb A **minimal runnable path**: no Docker, no separate database service—only Python, `.env`, and your app or CLI. ### 1. Install High4/2/2026
v1.0.2## What's Changed * Powermem CLI Cases by @Ripcord55 in https://github.com/oceanbase/powermem/pull/369 * fix(cli): honor --env-file by loading POWERMEM_ENV_FILE in dotenv step by @Teingi in https://github.com/oceanbase/powermem/pull/371 **Full Changelog**: https://github.com/oceanbase/powermem/compare/v1.0.1...v1.0.2Medium3/23/2026
v1.0.1## What's Changed * pyobvector dependencies by @Ripcord55 in https://github.com/oceanbase/powermem/pull/361 * Merge benchmark code by @Evenss in https://github.com/oceanbase/powermem/pull/362 * Native hybrid search case modification by @Ripcord55 in https://github.com/oceanbase/powermem/pull/363 * fix(api): register search router before memories by @Teingi in https://github.com/oceanbase/powermem/pull/367 **Full Changelog**: https://github.com/oceanbase/powermem/compare/v1.0.0...v1.0.1Low3/19/2026
v1.0.0## Why We're Shipping the CLI and Dashboard We believe that in the Agent era, the products that pull ahead will not be the ones with only a UI for humans to click. They will be the ones that deliver **two layers at once**: a layer where **Agents** can connect, execute, and orchestrate with low friction; and a layer where **humans** can understand the whole picture, form judgment, and consume results. The **CLI** is the operation surface for Agents and automation. The **Dashboard** is the cognLow3/16/2026
v0.5.3## What's Changed * fix lists bug by @Evenss in https://github.com/oceanbase/powermem/pull/268 **Full Changelog**: https://github.com/oceanbase/powermem/compare/v0.5.2...v0.5.3Low2/26/2026
v0.5.2## What's Changed * prompts: LANGUAGE DO NOT translate by @Teingi in https://github.com/oceanbase/powermem/pull/248 * Enhance memory listing functionality with pagination and sorting support by @Evenss in https://github.com/oceanbase/powermem/pull/246 * fix search bug by @Evenss in https://github.com/oceanbase/powermem/pull/253 * Enhance PGVectorConfig for flexible database connection settings by @Evenss in https://github.com/oceanbase/powermem/pull/257 **Full Changelog**: https://githuLow2/12/2026
v0.5.1## What's Changed 1. Default role filters removed in UserMemory profile extraction: - include_roles default changed from ["user"] to None - exclude_roles default changed from ["assistant"] to None 2. Documentation updated to reflect the new defaults. ## Impact - Behavior change: Profile extraction will now, by default, not filter messages by role unless you explicitly pass include_roles and/or exclude_roles. - This may change extracted profiles for users who relied on the previous impliLow2/6/2026
0.5.0# PowerMem v0.5.0 Release Notes (2026-02-06) ## Highlights - **Unified configuration governance** across SDK/API Server (pydantic-settings based). - **OceanBase native hybrid search support**. - **Enhanced Memory query experience** with improved query handling and **sorting support** for memory list operations. - **User profiles** now support **custom native-language output**. ## What’s Changed ### Configuration & Settings - Unified configuration governance across the SDK and ALow2/6/2026
v0.4.0# PowerMem 0.4.0 Release Notes **Release Date:** January 20, 2026 We're excited to announce the release of PowerMem 0.4.0! This version introduces significant enhancements to our retrieval capabilities with the addition of sparse vector support, enabling even more accurate and efficient memory search. ## 🎉 What's New ### ✨ Sparse Vector Support PowerMem 0.4.0 introduces **sparse vector support**, a powerful enhancement to our hybrid retrieval system. Sparse vectors complement ourLow1/20/2026
v0.3.1# Release v0.3.1 ## 🎉 Overview This PR releases PowerMem v0.3.1, which includes bug fixes, new LLM provider support, and documentation improvements. ## ✨ What's New ### 🐛 Bug Fixes - **Fixed user profile extraction bug** (#172): Resolved an issue where user profile extraction was not working correctly in certain scenarios - **Fixed vector setting bug** (#170): Corrected a bug related to vector database configuration that was causing issues in vector retrieval operations ### 🚀Low1/13/2026
v0.3.0# PowerMem 0.3.0 Release Notes **Release Date**: January 9, 2026 We're excited to announce the release of PowerMem 0.3.0! This version introduces a production-ready HTTP API Server and comprehensive Docker support, making PowerMem accessible to any application that supports HTTP calls, regardless of programming language. ## 🎉 Major Features ### 🌐 Production-Ready HTTP API Server PowerMem now provides a fully-featured HTTP API Server built with FastAPI, exposing all core memory mLow1/9/2026
v0.2.1## What's Changed * fix(config):fix embedding_model_dims string bug by @Evenss in https://github.com/oceanbase/powermem/pull/128 **Full Changelog**: https://github.com/oceanbase/powermem/compare/v0.2.0...v0.2.1Low12/19/2025
v0.2.0# PowerMem 0.2.0 Release Notes **Release Date:** December 16, 2025 We're excited to announce the release of PowerMem 0.2.0! This version introduces powerful new features that enhance AI applications with advanced user profile management and comprehensive multimodal support, enabling more personalized and contextually rich AI experiences. ## 🎉 What's New ### 👤 Advanced User Profile Management PowerMem 0.2.0 introduces the **UserMemory** feature, providing intelligent user profileLow12/16/2025
v0.1.0## Highlights - **More Accurate**: **[48.77% Accuracy Improvement]** More accurate than full-context in the LOCOMO benchmark (78.70% VS 52.9%) - **Faster**: **[91.83% Faster Response]** Significantly reduced p95 latency for retrieval compared to full-context (1.44s VS 17.12s) - **More Economical**: **[96.53% Token Reduction]** Significantly reduced costs compared to full-context without sacrificing performance (0.9k VS 26k) # PowerMem - Intelligent Memory System In AI application deveLow11/14/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

agentic-rag📄 Enable smart document and data search with AI-powered chat, vector search, and SQL querying across multiple file formats.main@2026-09-09
PageIndex📑 PageIndex: Document Index for Vectorless, Reasoning-based RAGv0.2.14
txtai💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflowsv9.13.0
adk-pythonAn open-source, code-first Python toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.v2.8.0
DeepAnalyze🔍 Empower data scientists with DeepAnalyze, a tool that leverages large language models for automated data analysis and insights generation.main@2026-06-12

More from oceanbase

seekdbThe AI-Native Search Database. Unifies vector, text, structured and semi-structured data in a single engine, enabling hybrid search and in-database AI workflows.

More in Databases

milvusMilvus is a high-performance, cloud-native vector database built for scalable vector ANN search
onyxOpen Source AI Platform - AI Chat with advanced features that works with every LLM
memgraphHigh-performance open-source in-memory graph database for GraphRAG, AI memory, agentic AI, and real-time graph analytics. Cypher-compatible, built in C++.
sentry-sdkPython client for Sentry (https://sentry.io)