@zellin

Spark Memory

Intelligence layer that compounds. Records decisions, reflects overnight, detects patterns, captures sessions automatically — your agent gets smarter every day.

Current version
v0.2.2
code-pluginCommunitysource-linked

🧠 Spark Memory — Persistent Intelligence for OpenClaw Agents

Your agent forgets everything when the session ends. Spark fixes that.

Spark gives your OpenClaw agent a memory that compounds. Not flat storage — a brain that reflects, learns patterns, and gets smarter every day.

What Makes Spark Different

Featurememory-corememory-lancedbSpark
Store memories✅ (files)✅ (vectors)✅ (vectors)
Semantic search
Importance scoringStatic 0.7Dynamic (1-10)
Nightly reflection✅ Synthesizes patterns
Recency × Relevance scoring✅ Stanford formula
Cross-session learning✅ + reflection
Episode typesBasic categories7 types
Multi-user support✅ Org-scoped
Survives device loss✅ Cloud-backed
Selective captureTrigger-based✅ Intelligence-based

Install

openclaw plugins install @zellin/spark-memory

Then configure in your OpenClaw settings:

{
  plugins: {
    slots: { memory: "spark-memory" },
    entries: {
      "spark-memory": {
        config: {
          apiKey: "your-spark-api-key",
          orgId: "your-org-id"
        }
      }
    }
  }
}

Setup

Set these environment variables (or add to your OpenClaw config):

export SPARK_API_KEY="your-api-key"    # Get one at https://zellin.ai
export SPARK_ORG_ID="your-org-id"       # Created when you sign up

How It Works

  1. Session starts → Spark recalls relevant memories from previous sessions
  2. During conversation → Spark records important facts, preferences, decisions
  3. Session ends → Spark saves a conversation summary
  4. Every night → Spark reflects on accumulated memories, synthesizes patterns, detects recurring behaviors
  5. Next session → Your agent is smarter than yesterday

Day 1: knows nothing. Day 30: knows your preferences, your clients, your patterns. Day 365: knows more about your operations than you remember yourself.

Architecture

Based on Stanford's "Generative Agents" paper with extensions:

  • Memory Stream (episodes) → Reflection (synthesis) → Patterns (recurring behaviors)
  • Retrieval scored by Recency × Importance × Relevance
  • Org-scoped: multiple users feed one shared memory
  • Cloud-backed: memories survive device changes

Free Tier

License

MIT

Source and release

Source repository

zellinun/spark-memory-plugin

Open repo

Source commit

93d4d13

View commit

Install command

openclaw plugins install clawhub:@zellin/spark-memory

Metadata

  • Package: @zellin/spark-memory
  • Created: 2026/03/24
  • Updated: 2026/05/21
  • Executes code: Yes
  • Source tag: main

Compatibility

  • Built with OpenClaw: 2026.3.24
  • Plugin API range: >=1.0.0
  • Tags: latest
  • Files: 7