Skip to main content
CogOS includes a first-party OpenClaw plugin (cogos-openclaw-plugin/) that integrates CogOS as a Context Engine, providing structured long-term memory for OpenClaw.

Quick Start

The plugin automatically extracts and recalls structured memories each turn.

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 /cogos command suite for manual memory management

Configuration

Configure via environment variables or openclaw.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:
Format:
  • First line: template_name description (name allows letters, numbers, _, -)
  • Following lines: domain_name: field1 | description, field2 | description
Or use JSON format: /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:
Configure paths in configs/cogos.yaml: