openclaw-memory

Provides profile-scoped SQLite/FTS5 storage for six types of persistent AI memories with CLI and Python access.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/cgk-platform/cgk --skill openclaw-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-memory
Source: https://github.com/cgk-platform/cgk/tree/main/openclaw-skills/openclaw-memory
Command: npx skills add https://github.com/cgk-platform/cgk --skill openclaw-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Unified, per-profile memory stores that persist across agent sessions using a local SQLite database. This enables durable recall, context continuity, and better collaboration across tasks.

Core Features & Use Cases

  • Six memory types (Users, Channel Memory, Longterm, Plans, Thoughts, Dreams) with full-text search across all memories.
  • Profile-isolated SQLite databases to keep memories segregated by profile.
  • CLI and programmatic access via Python scripts for deterministic memory operations.
  • Real-world use: store and recall customer interactions, channel decisions, and planning notes for campaigns.

Quick Start

Install the memory tool and run memory_cli.py to add and query memories for your profile.

Frequently Asked Questions about openclaw-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist agent memory across sessions using SQLite?

To persist agent memory across sessions using SQLite, this tool stores structured data in local, profile-isolated databases. It ensures durable recall and context continuity for six memory types, including Longterm and Plans.

What is the best way to achieve full-text search on agent memories?

The best way to achieve full-text search on agent memories is using SQLite with FTS5 indexing. This approach enables searchable persistent recall across all stored memory types for accurate cross-session retrieval.

Can I isolate memories by profile when managing multiple agents?

Yes, you can isolate memories by profile when managing multiple agents. The system uses profile-isolated SQLite databases to keep memories segregated, ensuring each agent maintains independent context continuity.

How do I add and query memories through a CLI for my agent profile?

To add and query memories through a CLI for your agent profile, run the provided Python memory_cli script. It exposes deterministic memory operations for storing and recalling structured JSON data locally.

What types of memories can I store for durable cross-session recall?

You can store six types of memories for durable cross-session recall: Users, Channel Memory, Longterm, Plans, Thoughts, and Dreams. Each type supports structured JSON storage with full-text search.

Does this memory management approach work without external database dependencies?

Yes, this memory management approach works without external database dependencies by using local SQLite. It provides a self-contained datastore for per-profile persistent memories, requiring no external server setup.