cogos-openclaw-plugin/) that integrates CogOS as a Context Engine, providing structured long-term memory for OpenClaw.
Quick Start
Features
- Auto-extract and auto-recall — extracts information into structured schemas and injects it into the system prompt each turn
- Schema-based memory — organizes knowledge into typed domains and fields
- Multi-schema management — create, switch, backup, and restore independent schema files
- Template system — bootstrap schemas from built-in, shared, or custom templates; full template CRUD via slash commands
- Agent tools — 5 registered tools for LLM-driven memory management
- Slash commands — full
/cogoscommand suite for manual memory management
Configuration
Configure via environment variables oropenclaw.json:
Example
openclaw.json:
Slash Commands
View & Recall
Memory Management
Schema Files
Template Management
Configuration
Creating Custom Templates via Slash Command
Create templates directly from the chat using the compact text format:- First line:
template_name description(name allows letters, numbers,_,-) - Following lines:
domain_name: field1 | description, field2 | description
/cogos templates create --json {"_meta":{"name":"..."},...}
Agent Tools
Five tools are registered for the OpenClaw agent:Context Engine Lifecycle
Data Flow
Data Storage
CogOS stores data under the OpenClaw Agent Workspace:configs/cogos.yaml: