SpacetimeDB Memory Integration for Openclaw

A high-performance WebAssembly-powered memory system that replaces static file storage with a robust database for AI agents.

kennethrajsimon
v1.1.7
Mar 11, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install spacetime-memory

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install spacetime-memory using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is SpacetimeDB Memory Integration?

The SpacetimeDB Memory Integration is designed to transform how agents handle long-term context within Openclaw Skills. By replacing traditional, static flat-file memory systems with a lightning-fast WebAssembly-powered mind-vault, this skill provides low-latency data access and persistent storage. It connects directly to a local SpacetimeDB instance, allowing developers to manage an agent's knowledge base with professional-grade database reliability.

This integration is essential for users who require their AI agents to maintain complex, searchable, and editable long-term memories without the performance bottlenecks of large text files. By utilizing the power of Openclaw Skills, this tool ensures your agent's memory is both scalable and highly performant.

SpacetimeDB Memory Integration Use Cases

  • Replacing static MEMORY.md and IDENTITY.md files with a searchable database infrastructure.
  • Building agents that require persistent context across thousands of interactions.
  • Performing granular CRUD operations on specific memory entries to maintain data accuracy.
  • Migrating legacy agent data into a modern WASM-powered architecture using Openclaw Skills scripts.

How SpacetimeDB Memory Integration Works

  1. The skill establishes a connection to a local SpacetimeDB instance via the configured URL and database name.
  2. Developers use the stdb_store tool to inject new information into the persistent mind-vault.
  3. The agent retrieves relevant context using stdb_search, which performs high-speed queries based on text or tags.
  4. When information becomes outdated, the stdb_edit or stdb_forget tools allow for precise updates or deletions.
  5. The legacy import script can be executed to transition existing workspace files into the new Openclaw Skills database format.

SpacetimeDB Memory Integration Setup

To get started with this memory integration, navigate to the skill directory and install the necessary dependencies:

cd ~/.openclaw/workspace/skills/spacetime-memory
npm install

You can also configure custom database settings via environment variables:

export SPACETIMEDB_URL="http://127.0.0.1:3001"
export SPACETIMEDB_NAME="stdb-memory-1vgys"

SpacetimeDB Memory Integration Data Schema & Taxonomy

The skill organizes memory data using a structured schema within SpacetimeDB to ensure high-speed retrieval. The following table describes the core data operations handled by Openclaw Skills:

Tool Name Operation Primary Fields
stdb_store Create content, tags
stdb_search Read query, tags
stdb_edit Update id, content, tags
stdb_forget Delete id

Legacy data is migrated from flat files like MEMORY.md and transformed into this structured format for better indexing.

SpacetimeDB Memory Integration Advanced Features

  • Full CRUD lifecycle support for agent memories.
  • destructive legacy migration script with safety safeguards to ensure data integrity.
  • Configurable database identity and endpoint for multi-tenant or custom environments.
  • WebAssembly-powered execution for near-instant memory recall within Openclaw Skills.
  • Tag-based filtering for advanced memory segmentation and retrieval.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*