← 返回
未分类 Key 中文

Supermemory

Long-term agent memory with atomic fact extraction, relational versioning, semantic search, and entity profiles. Extracts facts from conversations, tracks ho...
长期代理记忆,实现原子事实提取、关系版本控制、语义搜索和实体画像,自动从对话中提取事实并进行跟踪。
jared-goering jared-goering 来源
未分类 clawhub v0.2.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 632
下载
💾 3
安装
1
版本
#latest

概述

Supermemory

Long-term memory for AI agents. Extracts atomic facts from text, tracks relations between memories (updates, contradicts, extends), embeds locally for semantic search, and auto-builds entity profiles.

Setup

pip install openclaw-supermemory[local]
supermemory init        # creates ~/.supermemory/memory.db
supermemory serve       # starts API on :8642

Requires an LLM API key for fact extraction (default: Anthropic Haiku).

export ANTHROPIC_API_KEY=sk-...
# or configure via ~/.supermemory/config.yaml

Commands

Ingest (extract facts from text)

supermemory ingest "The project deadline moved to April 15. Sarah replaced Tom as lead." \
  --session meeting-notes --agent kit

LLM extracts atomic facts, categorizes them (person, decision, event, insight, preference, project), detects entities, and finds relations to existing memories. When a fact updates an existing one, the old memory is marked superseded.

Search

supermemory search "project deadline" --top-k 10
supermemory search "project deadline" --all          # include superseded
supermemory search "project deadline" --as-of 2026-03-01  # time travel

Entity operations

supermemory stats                # counts, categories
supermemory history Sarah        # version timeline
supermemory profile Sarah        # auto-built entity profile

API

GET  /api/health                 # status + memory count
POST /api/search                 # {"query": "...", "top_k": 10}
POST /api/ingest                 # {"text": "...", "session_id": "..."}
GET  /api/entities               # all known entities
GET  /api/entity/{name}          # entity memories + profile
POST /api/search_entities        # entity-aware cross-session search
POST /api/aggregate              # count/sum queries over event clusters

Search latency: ~32ms warm, ~8s cold start (embedding model load).

Agent integration

Recall at session start

Inject relevant context before the agent processes a message:

supermemory search "current projects and priorities" --top-k 5

Auto-ingest from responses

After meaningful agent turns, extract and store facts:

supermemory ingest "$RESPONSE_TEXT" --session $SESSION --agent $AGENT_ID

OpenClaw plugin (zero-config)

Install the supermemory-claw plugin for automatic memory injection and extraction with no agent code changes.

Architecture

  • Storage: SQLite with WAL mode (concurrent reads, single writer)
  • Embeddings: Local sentence-transformers (free, on-device) or API (OpenAI/Cohere/Voyage via litellm)
  • Extraction: LLM-based atomic fact extraction with relation detection (default: Haiku)
  • Entity system: Join tables, aliases, auto-merged profiles across sources
  • Multi-agent: Single DB with agent_id tagging, cross-agent semantic search

Cost

~$0.01-0.02 per ingest (3 LLM calls: extract, relate, profile). Search is free (local embeddings).

Links

版本历史

共 1 个版本

  • v0.2.1 当前
    2026-05-03 04:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,376 📥 320,195
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,225 📥 267,662
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,078 📥 808,672