Install
openclaw skills install sq-memoryEnables OpenClaw agents to store, recall, update, list, and forget persistent hierarchical memories across sessions via the SQ protocol.
openclaw skills install sq-memoryGive your OpenClaw agents permanent memory.
SQ is open-source software you can run yourself or use our hosted version.
OpenClaw agents lose all memory between sessions. Every restart = amnesia.
This skill connects your agent to SQ—persistent 11D text storage. Your agent can:
npx clawhub install sq-memory
Or manually:
git clone https://github.com/wbic16/openclaw-sq-skill.git ~/.openclaw/skills/sq-memory
Add to your agent's .openclaw/config.yaml:
skills:
sq-memory:
enabled: true
endpoint: http://localhost:1337
username: your-username
password: your-api-key
namespace: agent-name # Isolates this agent's memory
Your agent automatically gets new memory tools:
Store something for later:
remember("user/name", "Alice")
remember("user/preferences/theme", "dark")
remember("conversation/2026-02-11/summary", "Discussed phext storage...")
Retrieve stored memory:
const name = recall("user/name") // "Alice"
const theme = recall("user/preferences/theme") // "dark"
Delete memory:
forget("conversation/2026-02-11/summary")
List all memories under a coordinate:
const prefs = list_memories("user/preferences/")
// Returns: ["user/preferences/theme", "user/preferences/language", ...]
Memories are stored at 11D coordinates. The skill uses this convention:
namespace.1.1 / category.subcategory.item / 1.1.1
Example:
my-assistantmy-assistant.1.1/user.preferences.theme/1.1.1This means:
// In your agent's system prompt or skill code:
async function getUserTheme() {
const theme = recall("user/preferences/theme")
return theme || "light" // Default to light if not set
}
async function setUserTheme(newTheme) {
remember("user/preferences/theme", newTheme)
return `Theme set to ${newTheme}`
}
// Agent conversation:
User: "I prefer dark mode"
Agent: *calls setUserTheme("dark")*
Agent: "Got it! I've set your theme to dark mode."
// Next session (days later):
User: "What's my preferred theme?"
Agent: *calls getUserTheme()*
Agent: "You prefer dark mode."
// Store conversation summaries beyond context window:
async function summarizeAndStore(conversationId, summary) {
const date = new Date().toISOString().split('T')[0]
const key = `conversations/${date}/${conversationId}/summary`
remember(key, summary)
}
async function recallConversation(conversationId) {
const memories = list_memories(`conversations/`)
return memories
.filter(m => m.includes(conversationId))
.map(key => recall(key))
}
// Usage:
summarizeAndStore("conv-123", "User asked about phext storage, explained 11D coordinates")
// Later:
const history = recallConversation("conv-123")
// Agent can recall what was discussed even after context window cleared
Multiple agents can share memory at agreed coordinates:
Agent A (writes):
remember("shared/tasks/pending/task-42", "Review pull request #123")
Agent B (reads):
const task = recall("shared/tasks/pending/task-42")
// Sees: "Review pull request #123"
This enables true multi-agent workflows.
All functions are available in the sq namespace:
a.b.c/d.e.f/g.h.i or shorthand category/item{success: true, coordinate: "full.coordinate.path"}null if not found{success: true} or {success: false, error: "..."}"user/" matches all user memories)remember() (overwrites existing)"Connection refused" error:
endpoint in config (should be https://sq.mirrorborn.us)"Quota exceeded" error:
Memory not persisting:
Open source & MIT licensed:
Not a vector database:
Not Redis:
Built for agents:
Self-Host (Free):
git clone https://github.com/wbic16/SQ.gitcd SQ && cargo build --release./target/release/sq 1337http://localhost:1337Hosted (Convenience):
https://sq.mirrorborn.usBuilt by Mirrorborn 🦋 for the OpenClaw ecosystem