Xpersona
M

Memoria

CLAWHUB · Unverified

Local-first, multi-agent persistent memory for AI assistants. Use it to install, operate, connect, diagnose, or update Memoria on macOS. Skill: Memoria Owner: nieto42 Summary: Local-first, multi-agent persistent memory for AI assistants. Use it to install, operate, connect, diagnose, or update Memoria on macOS. Tags: latest:3.35.0, local:3.4.3, memory:3.4.3, ollama:3.4.3, plugin:3.4.3, sqlite:3.4.3 Version history: v3.35.0 | 2026-07-17T18:30:39.536Z | user Memoria V1 public beta: local daemon, governed multi-agent memory, MCP, web UI, CLI, and OpenCla

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K 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 s175wpcpv5raa720vzvn701sc183gxt4:openclaw-memoria
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-nieto42-openclaw-memoria/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

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

legacy/SKILL.md

---
name: Memoria for OpenClaw
version: 3.34.0
description: "The most advanced memory system for AI agents. 24 cognitive layers, knowledge graph, procedural learning, dialectic queries, AI self-observation, auto skill creation, crash-safe WAL, async prefetch. Works with Claude, Cursor, Copilot, ChatGPT & any OpenClaw agent. 100% local-first (SQLite + Ollama), zero cloud cost, zero API keys required."
author: Primo Studio (@Nieto42)
license: Apache-2.0
homepage: https://github.com/Primo-Studio/openclaw-memoria
repository: https://github.com/Primo-Studio/openclaw-memoria
feedback: https://x.com/Nitix_
keywords:
  - memory
  - ai-agent
  - persistent-memory
  - long-term-memory
  - knowledge-graph
  - procedural-learning
  - vector-search
  - sqlite
  - ollama
  - lm-studio
  - local-first
  - cognitive
  - context
  - claude
  - cursor
  - copilot
  - chatgpt
  - openclaw
  - wal
  - vibe-coding
  - developer-tools
  - devtools
  - typescript
  - llm
  - automation
  - brain-inspired
  - multi-layer
  - fact-extraction
  - self-improving
tags:
  - memory
  - ai-agent
  - persistent-memory
  - long-term-memory
  - knowledge-graph
  - procedural-learning
  - vector-search
  - sqlite
  - ollama
  - lm-studio
  - local-first
  - cognitive
  - context
  - claude
  - cursor
  - copilot
  - chatgpt
  - openclaw
  - wal
  - vibe-coding
  - developer-tools
  - devtools
  - typescript
  - llm
  - automation
  - brain-inspired
  - multi-layer
  - fact-extraction
  - self-improving
  - self-observation
  - dialectic
  - auto-skill
  - prefetch
  - crash-recovery
  - async
env:
  - name: OPENAI_API_KEY
    required: false
    description: Optional — used as fallback for LLM extraction and embeddings when local models are unavailable. Never required for default operation.
  - name: OPENROUTER_API_KEY
    required: false
    description: Optional — used as fallback for remote LLM provider. Never required for default operation.
  - name: OPENCLAW_WORKSPACE
    required: false
    description: Auto-set by OpenClaw runtime — workspace path for memory files. Do not set manually.
security: |
  ## Data & Privacy
  - Memoria runs 100% locally by default. No data leaves your machine unless you explicitly configure a remote LLM.
  - All memory is stored in a local SQLite database in your OpenClaw workspace.
  - API keys (OPENAI_API_KEY, OPENROUTER_API_KEY) are optional fallbacks — never required.

  ## What Memoria reads
  - Workspace files: USER.md, COMPANY.md, projects/* — used for identity-aware relevance scoring.
    These files may contain personal or business information. Review them before enabling Memoria.
  - Conversation content: assistant messages and tool call results, to extract durable facts.
  - No files outside the OpenClaw workspace are read.

  ## What Memoria writes
  - A single SQLite database (memoria.db) in your workspace/memory/ folder.
  - Optional markdown summaries in workspace/memory/ folder.
  - No network requests unless a remote LLM fallback 

SKILL.md

---
name: openclaw-memoria
version: 3.35.0
description: Local-first, multi-agent persistent memory for AI assistants. Use it to install, operate, connect, diagnose, or update Memoria on macOS.
license: Apache-2.0
homepage: https://github.com/Primo-Studio/openclaw-memoria
repository: https://github.com/Primo-Studio/openclaw-memoria
---

# Memoria

Memoria keeps persistent, local memory for AI assistants. It provides a local daemon, a web UI, an MCP server, a CLI, and a thin OpenClaw adapter for automatic recall and capture.

## Use this skill when

- Installing or updating Memoria on macOS.
- Connecting an agent to its own persistent memory.
- Inspecting memory health, the local daemon, pairing, import, sharing, or local synchronization.
- Diagnosing why recall or capture is unavailable.

## Install

Memoria is a public beta. It requires Node.js 20+; Node.js 22 LTS is recommended. On macOS, Apple Command Line Tools are also required.

```sh
curl -fsSL https://raw.githubusercontent.com/Primo-Studio/openclaw-memoria/memoria-v1/scripts/install-memoria.sh | sh
```

The installer clones the `memoria-v1` branch, installs dependencies, builds the project, initializes and starts the local daemon, enables login autostart on macOS, and opens the local web UI.

## Everyday operations

```sh
memoria ui       # open the local interface
memoria doctor   # inspect daemon, storage, and provider health
memoria agents   # list connected agents
memoria update   # update the local checkout and restart the service
```

Use the UI's Agents screen to detect, pair, and import agents. For terminal pairing, run `memoria pair <agent-type>` and use the one-time command it returns.

## OpenClaw integration

The OpenClaw adapter is intentionally thin: it calls the Memoria daemon on localhost for recall before a prompt and capture after a turn. It needs a paired instance token. When enabling automatic capture, make sure the OpenClaw plugin entry allows conversation-hook access; the installer/onboarding configures this during connection.

If Memoria is unavailable, agents should continue normally without memory rather than failing the request.

## Privacy and safety

- Data is local by default in Memoria-managed SQLite storage.
- Remote LLM providers are optional; configure one only with the user's approval.
- Do not expose pairing codes, instance tokens, admin tokens, or local UI URLs containing tokens.
- Use the review and sharing controls before making memories available across agents or machines.
- Deleting memories is permanent; confirm the target before running a forget/delete operation.

apps/desktop/README.md

# Memoria — app bureau (Tauri v2)

Lanceur « double-clic » pour non-développeurs (spec §14, v1 pragmatique) :

1. vérifie qu'un **Node ≥ 20** existe sur la machine (PATH, emplacements usuels, nvm) ;
2. démarre le **daemon Memoria** s'il ne tourne pas (`packages/daemon/dist/bin.js`, détaché) ;
3. lit `<storage_root>/daemon.json` (port + admin_token) ;
4. bascule la fenêtre sur `http://127.0.0.1:<port>/ui/#token=…` — l'UI web servie par le daemon.

Toute la logique vit dans `src-tauri/src/lib.rs` (miroir Rust de `ensureDaemon`/`resolveStorageRoot`),
testée par `cargo test`. La page de lancement (`ui/index.html`) n'appelle que les 4 commandes
Tauri : `check_node`, `daemon_health`, `start_daemon`, `open_memoria`.

## Construire

```bash
export PATH="$HOME/.cargo/bin:$PATH"
cd apps/desktop/src-tauri
cargo check          # validation rapide
cargo test           # tests unitaires du lanceur
# bundle complet (nécessite cargo install tauri-cli) :
cargo tauri build    # → .app + .dmg dans target/release/bundle/
```

Prérequis du bundle : le daemon doit être buildé (`npm run build` à la racine du repo) et l'UI
web aussi (`npm run build -w @memoria/web`) — le daemon la sert sous `/ui/`.

## Localisation du daemon

Ordre de recherche du `bin.js` (voir `daemon_bin_candidates` dans lib.rs) :
1. `~/.memoria/config.toml` → `[daemon] bin = "/chemin/vers/bin.js"` (clé propre au lanceur) ;
2. installation npm globale (`npm root -g`) ;
3. clone de dev `~/openclaw-memoria/packages/daemon/dist/bin.js`.

## Reste à faire (v1.5)

- **Node embarqué** : binaire SEA (single executable) du daemon en sidecar Tauri — attention,
  `better-sqlite3` est un module natif : embarquer le `.node` à côté et le charger par chemin
  relatif. Tant que ce n'est pas fait, la machine doit avoir Node ≥ 20.
- **Signature + notarisation macOS** : réutiliser le process Primo (cf. Igara — certificat
  Developer ID + `notarytool`).
- Icône définitive (l'icône actuelle est générée par `scripts/gen-icon.py`).
- Auto-démarrage du daemon au login (launchd) plutôt qu'au premier lancement de l'app.

legacy/benchmarks/README.md

# Memoria Benchmarks

## Methodology

- **Dataset**: 10 synthetic sessions based on real workspace data (Primo Studio)
- **30 questions** across 6 categories:
  - **SSU** (Single-Session Understanding): fact lookup from one session
  - **SSA** (Single-Session Aggregation): combine facts from one session
  - **SSP** (Single-Session Procedure): how-to questions
  - **KU** (Knowledge Update): handle contradicting/updated information
  - **TR** (Temporal Reasoning): time-based questions
  - **MS** (Multi-Session): cross-session aggregation
- **Pipeline**: Extract (gemma3:4b Ollama) → Embed (nomic-embed-text-v2-moe) → Answer (GPT-OSS 20B LM Studio) → Judge (GPT-5.4-nano OpenAI)
- **Fair**: fresh DB each run, same questions, same models

## Results History

| Version | Accuracy | Retrieval | SSU | SSA | SSP | KU | TR | MS | Key Change |
|---------|----------|-----------|-----|-----|-----|-----|-----|-----|------------|
| v3.1.1 | 41.7% | 90.0% | 3/5 | 2/5 | 3/5 | 2/5 | 1/5 | 1/5 | Baseline (gemma3 judge) |
| v3.2.0 | 75.0% | 53.3% | 4.5/5 | 3/5 | 5/5 | 5/5 | 2.5/5 | 1.5/5 | Supersession + procedures |
| v3.3.0 | 75.0% | 43.3% | 5/5 | 3/5 | 4.5/5 | 5/5 | 3/5 | 2/5 | Query expansion (nano judge) |
| **v3.4.0** | **81.7%** | **50.0%** | **5/5** | **3.5/5** | **5/5** | **5/5** | **3.5/5** | **2.5/5** | **Fact Clusters** |

## Running

```bash
# Requires: Ollama (gemma3:4b + nomic-embed), LM Studio (GPT-OSS 20B), OpenAI API key
python3 benchmarks/bench-v34.py
```

## Files

- `bench-v34.py` — Latest benchmark script (v3.4.0)
- `results/` — JSON results from each run

legacy/core/README.md

# @primo-studio/memoria-core

**Standalone multi-layer cognitive memory engine** — works with or without OpenClaw.

## Features

- **21-layer cognitive architecture** — selective storage, embeddings, knowledge graph, topics, patterns, observations, procedural memory
- **Zero cloud dependency** — runs 100% local with Ollama, LM Studio, or any OpenAI-compatible API
- **Automatic fallback chain** — Ollama → OpenAI → LM Studio → FTS-only (never fails)
- **SQLite + FTS5** — blazing fast full-text search
- **Vector embeddings** — cosine similarity with nomic-embed-text, text-embedding-3-small, or custom models
- **Knowledge graph** — entity extraction, relations, Hebbian learning
- **Pattern detection** — consolidates recurring facts, 1.5x recall boost
- **Lifecycle management** — fresh → active → settled → dormant (automatic aging)
- **Contradiction detection** — replaces outdated facts with new information
- **Procedural memory** — learns from tool use, reflects on success patterns
- **Markdown sync** — bi-directional sync with .md files

## Installation

```bash
npm install @primo-studio/memoria-core
# or
pnpm add @primo-studio/memoria-core
```

## Quick Start

```typescript
import { Memoria } from '@primo-studio/memoria-core';

// Initialize with Ollama (local, free)
const memoria = await Memoria.init({
  dbPath: './my-app.db',
  provider: 'ollama',
  model: 'qwen3.5:4b',
  embeddingModel: 'nomic-embed-text-v2-moe'
});

// Store facts
await memoria.store('User prefers dark mode', 'preference', 0.95);
await memoria.store('User location: New York', 'savoir', 0.9);

// Recall facts
const results = await memoria.recall('What theme does the user like?');
console.log(results.facts);
// [{ id: 1, fact: 'User prefers dark mode', category: 'preference', confidence: 0.95, ... }]

// Natural language query (future: dialectic reasoning)
const answer = await memoria.query('Tell me about the user preferences');
console.log(answer);

// Stats
const stats = await memoria.stats();
console.log(stats);
// { totalFacts: 42, totalEmbeddings: 38, totalRelations: 15, ... }

// Close
memoria.close();
```

## Configuration

### Local (Ollama)

```typescript
const memoria = await Memoria.init({
  dbPath: './memoria.db',
  provider: 'ollama',
  model: 'qwen3.5:4b',
  embeddingModel: 'nomic-embed-text-v2-moe',
  baseUrl: 'http://localhost:11434'
});
```

### Cloud (OpenAI)

```typescript
const memoria = await Memoria.init({
  dbPath: './memoria.db',
  provider: 'openai',
  model: 'gpt-4o-mini',
  embeddingModel: 'text-embedding-3-small',
  apiKey: process.env.OPENAI_API_KEY
});
```

### LM Studio

```typescript
const memoria = await Memoria.init({
  dbPath: './memoria.db',
  provider: 'lmstudio',
  model: 'auto', // uses loaded model
  baseUrl: 'http://localhost:1234/v1'
});
```

### Custom Fallback Chain

```typescript
const memoria = await Memoria.init({
  dbPath: './memoria.db',
  fallback: [
    { type: 'ollama', model: 'qwen3.5:4b', baseUrl: 'http://localhost:11434' },
 

Sponsored

Ads related to Memoria and adjacent AI workflows.