liliang-cn/cortexdb/cortexdb-memory-openclaw
Claude Code and agent skill by liliang-cn/cortexdb
- community
Checking that the SKILL.md file is still in the repository.
Give a Node.js agent (such as OpenClaw) durable, local-first memory plus a queryable SPARQL knowledge graph, backed by CortexDB through its gRPC sidecar and the cortexdb-client npm package. Use when a Node agent needs to remember facts about a user across turns/sessions, recall them by meaning, store entities and relations, or answer multi-hop questions — and when the user mentions CortexDB, agent memory, long-term memory, RAG, knowledge graph, OpenClaw, or "remember this".
Install
npx vskill@latest install liliang-cn/cortexdb/cortexdb-memory-openclawSKILL.md
CortexDB memory for a Node agent (OpenClaw)
Wire CortexDB in as the memory layer for a Node.js agent. CortexDB is a pure-Go, single-file database; the Node agent talks to it over gRPC via the cortexdb-client package. Beyond vector/lexical recall, it gives the agent a real knowledge graph (RDF + SPARQL) — the thing most agent-memory layers lack. It fits OpenClaw's local-first philosophy: one binary, one SQLite file, no separate service to stand up.
When to use this
- The agent should remember user facts/preferences across turns or sessions.
- The agent should recall memories by meaning, not exact match.
- The agent needs entities + relations and multi-hop questions ("who, among the
people Alice knows, works on X").
- You're integrating with OpenClaw (or any Node agent/skill).
Step 1 — Run the sidecar (once)
Enable vector/semantic recall by pointing it at any OpenAI-compatible embeddings endpoint (e.g. a local Ollama):
Step 2 — Install the client
Step 3 — The two core moves: remember + recall
Every RPC is a promise; request fields are camelCase. Memory scopes isolate data: scope: 'user' (per userId), scope: 'session' (per sessionId), or scope: 'global'.
Step 4 — Knowledge instead of plain memory (RAG)
Step 5 — The differentiator: a knowledge graph
Expose CortexDB as OpenClaw tools
OpenClaw skills teach the agent how and when to call tools. A ready-to-use helper module wraps the calls above into remember, recall, saveKnowledge, searchKnowledge, relate, and askGraph. recallContext uses the unified KnowledgeMemory facade to fuse scoped memory, durable knowledge, and graph facts:
scripts/memory-tools.js— import these and register them as OpenClaw tools,
or call them directly from a custom skill/plugin.
For automatic OpenClaw memory lifecycle integration, install the native plugin at plugins/openclaw-cortexdb-memory and select cortexdb-memory in plugins.slots.memory. The native plugin replaces OpenClaw's built-in memory-core slot; this skill alone does not.
In your skill's instructions, tell the agent: to remember a durable fact about the user, call `remember(text)`; to recall, call `recall(query)`; to record a relationship, call `relate(subject, predicate, object)`; to answer a structured "who/what is related to X" question, call `askGraph(sparql)`.
Install this skill into OpenClaw
OpenClaw follows the agentskills.io spec and discovers skills under <workspace>/skills, <workspace>/.agents/skills, ~/.agents/skills, and ~/.openclaw/skills.
--global installs to ~/.openclaw/skills. The skill becomes eligible automatically once the cortexdb-grpc binary is present and a sidecar is running.
Sub-clients (full surface)
client.knowledge, client.memory, client.graph (RDF/SPARQL/SHACL/inference/ ontology), client.graphrag, client.tools (generic dispatch, same shape as MCP), client.admin. Each RPC is available in both PascalCase (SaveMemory) and camelCase (saveMemory). Auth is a bearer token; pass { token } to connect.
Notes & gotchas
- Zero-key default: without an embedder the sidecar uses lexical retrieval —
good enough to start, no credentials needed.
- One file, one process: the sidecar owns one SQLite file. Isolate multiple
users via memory scopes (above), not multiple files.
- Plaintext localhost: the bearer token rides plain gRPC; fine on localhost,
add TLS / a reverse proxy for cross-machine use.
- No build step: the npm client loads the proto contract at runtime.
- Package and docs: https://www.npmjs.com/package/cortexdb-client ·
https://github.com/liliang-cn/cortexdb
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cortexdb-memory-openclaw/SKILL.md
Popularity
- Repository stars
- 249
- Repository forks
- 3
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/liliang-cn/cortexdb/cortexdb-memory-openclaw)