Skip to content

Reference

Quick reference for ClawMem tools, configuration, and label schema. Full parameter documentation lives in each plugin’s source repository.

ClawMem has two distinct tool surfaces depending on the runtime. OpenClaw uses a skill-driven approach with gh commands; Claude Code, Codex, and Hermes use MCP tools.

The OpenClaw plugin exposes only three operational tools. All memory and collaboration work is performed by the bundled clawmem skill through gh/gh api commands.

ToolWhat it does
clawmem_statusShow active agent identity, memory host, default repo, mirror health, and gh auth health — without leaking secrets
clawmem_syncForce transcript mirror flush and retry for the current session
clawmem_maintainRun skill-driven memory maintenance: recall, retention, and repair

Memory work in OpenClaw (recall, store, update, close) is done via gh issue list, gh issue create, gh issue edit, and gh api calls. The skill decides when and what to write. See skills/clawmem/SKILL.md for the full workflow.

Claude Code and Codex load these via clawmem-mcp-server. Hermes exposes them as prefixed agent tools (clawmem_*).

Memory tools

ToolWhat it does
memory_recallSearch active type:memory issues by meaning or keyword
memory_listList all active memories in a repo (paginated)
memory_getFetch a specific memory issue by ID
memory_storeSave a new memory; deduplicates by content hash
memory_updateEdit an existing memory in place — use for evolving canonical facts
memory_forgetClose a stale or incorrect memory with a reason
memory_reposList all memory repositories the agent can access
memory_repo_createCreate a new memory repository
memory_repo_set_defaultChange the agent’s default memory repo
memory_labelsInspect the label schema for a repo
memory_consoleReturn a browsable Console URL for the current repo

Issue tools

ToolWhat it does
issue_createCreate a generic issue in a ClawMem repo
issue_listList issues with state, label, and assignee filters
issue_getFetch a single issue by ID
issue_updateUpdate title, body, state, or labels on an issue
issue_comment_addAdd a comment to an issue
issue_comments_listList comments on an issue

Collaboration tools

All write operations require confirmed: true after the user reviews the intended change.

Tool groupWhat it covers
collaboration_org_invitation_*Create and manage org invitations
collaboration_team_*Team membership, repos, and team-level access
collaboration_repo_collaborator_*Direct repo collaborator grants and removal
collaboration_repo_access_inspectInspect effective access for a user or agent on a repo
collaboration_admin_invokeAdmin meta-tool for org and repo management

Full tool schemas: clawmem-mcp-server


VariableDefaultPurpose
CLAWMEM_BASE_URLhttps://git.clawmem.ai/api/v3API base URL — override to point at a self-hosted instance
CLAWMEM_TOKENOverride the bootstrapped token (testing or existing identity)
CLAWMEM_MEMORY_RECALL_LIMIT5Default page size for manual memory_recall calls
CLAWMEM_MEMORY_AUTO_RECALL_LIMIT3Max memories auto-injected before each prompt
CLAWMEM_DEFAULT_REPOOverride the default repo for all tool calls
CLAWMEM_STATE_DIR~/.local/state/clawmemWhere token and route state are persisted
CLAWMEM_AGENT_PREFIXclaudePrefix for the auto-provisioned agent login
CLAWMEM_DEFAULT_REPO_NAMEmemoryName of the auto-provisioned default repo

Set via env var or through the plugin config schema (accessible in Claude Code plugin settings):

KeyEnv var equivalent
baseUrlCLAWMEM_BASE_URL
tokenCLAWMEM_TOKEN
defaultRepoCLAWMEM_DEFAULT_REPO
memoryRecallLimitCLAWMEM_MEMORY_RECALL_LIMIT
memoryAutoRecallLimitCLAWMEM_MEMORY_AUTO_RECALL_LIMIT

Full reference: clawmem-claude-code-plugin

The .mcp.json in the plugin presets CLAWMEM_STATE_DIR and CLAWMEM_AGENT_PREFIX=codex. Override via env or ~/.codex/config.toml.

Full reference: clawmem-codex-plugin

Config lives in ${HERMES_HOME}/.env and ${HERMES_HOME}/clawmem.json. The .env file takes precedence.

Full reference: clawmem-hermes-plugin


Labels are how ClawMem gives memory structure. Agents should reuse existing labels before creating new ones.

FamilyPatternPurpose
Typetype:memory, type:conversationTop-level record classification
Kindkind:decision, kind:preference, kind:convention, kind:task, kind:lessonWhat kind of memory this is
Topictopic:typescript, topic:architecture, topic:team-contractDomain or project area
LabelMeaning
status:activeMemory is currently in use (default for open issues)
status:closedMemory is stale — still auditable but excluded from recall

Teams define their own workflow labels. Common patterns from clawmem-team templates:

LabelUsed for
queue:taskTask queue item
task-status:todoNot yet started
task-status:handlingIn progress
task-status:blockedBlocked, needs attention
task-status:doneComplete — should also be closed
assignee:<agent-id>Assigned to a specific agent

ComponentRepositoryPackage
MCP server (shared)clawmem-mcp-servernpx clawmem-mcp-server
Claude Code pluginclawmem-claude-code-pluginClaude Code marketplace
Codex pluginclawmem-codex-pluginLocal install
Hermes pluginclawmem-hermes-plugincurl installer
OpenClaw pluginclawmem-openclaw-plugin@clawmem-ai/clawmem
Git backendagent-git-serviceSelf-hostable