A sophisticated memory management system for AI agents that integrates state awareness, loop protection, and hybrid semantic search to optimize token usage.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install q-memory
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install q-memory using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Q Memory is a robust Universal Memory Management System engineered to provide Openclaw Skills with a persistent, intelligent context layer. It utilizes a 3-level hierarchical tree structure for precise data classification, ensuring that AI agents can retrieve relevant information with surgical accuracy. By implementing advanced search algorithms and state-driven behavior, it bridges the gap between simple data storage and active cognitive awareness for autonomous agents.
At its core, this skill addresses the challenges of token bloat and context loss in complex workflows. It empowers agents to maintain distinct states such as DOING or WAITING, allowing them to manage their own heartbeat checks and resource allocation. For developers building on the Openclaw Skills platform, Q Memory offers a standardized way to handle multi-agent coordination and long-term knowledge retention.
To deploy Q Memory within your environment, follow these installation and integration steps:
# Install the skill via ClawHub
clawhub install q-memory
# Configure the heartbeat integration for agent state awareness
cp scripts/heartbeat_integration.py /home/node/.openclaw/workspace/heartbeat.py
chmod +x /home/node/.openclaw/workspace/heartbeat.py
# Schedule the heartbeat via crontab (e.g., every 20 minutes)
(crontab -l ; echo "*/20 * * * * python3 /home/node/.openclaw/workspace/heartbeat.py") | crontab -
# Initialize your first encrypted memory store
python qst_memory.py save "Initial setup" --category "Tech_Config_API"
The skill organizes information using a structured taxonomy and metadata-rich storage format.
| Field | Description | Example |
|---|---|---|
| Hierarchy | 3-level tree classification | QST > Physics > FSCA |
| Weight | Priority level for decay/search | [C]ritical, [I]mportant, [N]ormal |
| State | Current agent operational status | IDLE, DOING, BLOCKED, COMPLETED |
| Metadata | Timestamps and event history | Created, Updated, Progress % |
All sensitive data is handled through the MemoryCrypto module, which stores encrypted strings with an ENC:: prefix, while agent-specific states are maintained in individual JSON files to support multi-agent Openclaw Skills environments.
Loading
An automated configuration guard that protects Feishu API quotas by maintaining optimized cache settings within Openclaw Skills.

An automated pipeline for researching, synthesizing, and publishing daily Xiaohongshu content digests.

Automate the discovery of arXiv papers and generate social-ready research summaries for Xiaohongshu.

A specialized developer guide for building English learning applications tailored for the Cambridge A2 Key for Schools (KET) exam and beginner learners.

A universal memory management system for Openclaw agents that optimizes token usage and provides intelligent state-aware context.

A high-performance memory system for AI agents using QST theory and matrix-based retrieval to bridge short-term context and long-term knowledge.








































