Basic Memory
Integrations

OpenClaw Plugin

Give OpenClaw agents persistent Basic Memory with composited search, auto-capture, slash commands, and bundled workflow skills.

The openclaw-basic-memory plugin connects Basic Memory to OpenClaw, giving agents persistent, searchable memory stored as plain Markdown files. Agents gain composited memory search, automatic context recall, conversation capture, slash commands, and bundled workflow skills — all with zero configuration. The plugin is open source — browse the source on GitHub.

Requires OpenClaw and a local Basic Memory installation. The plugin auto-installs the bm CLI on first startup if it's not already on your PATH.

Installation

Install the plugin and restart the gateway:

openclaw plugins install @basicmemory/openclaw-basic-memory
openclaw gateway restart

That's it — the plugin works with zero configuration by default.


Configuration

The plugin works out of the box with enabled: true. For advanced setups, configure via your OpenClaw plugin settings:

OptionDefaultDescription
projectBasic Memory project name
projectPathPath to project directory
memoryDirmemory/Directory for memory files
memoryFileMEMORY.mdPrimary memory file name
autoCapturetrueRecord conversation turns as daily notes
autoRecalltrueLoad active tasks and recent notes at session start
debugfalseEnable debug logging

How It Works

When your agent searches memory, the plugin queries three sources in parallel and merges the results:

  1. MEMORY.md — Text search of your primary memory file
  2. Knowledge Graph — Hybrid full-text + vector search across all notes
  3. Active Tasks — Scans memory/tasks/ for in-progress work

This means a single search returns context from structured notes, free-form memory, and active task tracking simultaneously.

Auto-Recall

At session start, the plugin automatically loads active tasks and recent notes so your agent has immediate context without you needing to ask.

Auto-Capture

Conversation turns are recorded as timestamped entries in daily notes, building a searchable log of your interactions over time.

Persistent Connection

The plugin maintains a long-lived Basic Memory process over stdio, avoiding startup overhead on each tool call.

Multi-Project & Cloud Access

Because the plugin uses the full Basic Memory stack, your OpenClaw agent has access to every project in your knowledge base — not just a single workspace. Use list_memory_projects to browse projects and switch between them on the fly.

This also means your agent benefits from local/cloud routing. You can keep the agent's own memory local while routing shared or team projects through Basic Memory Cloud, or run everything in the cloud for cross-device access. The agent uses the same tools either way — routing is transparent.

In practice, your OpenClaw agent gets:

  • Its own long-term memory — auto-captured conversations and task tracking that persist across sessions
  • Access to external projects — search and read notes from any project in your knowledge base
  • Local/cloud hybrid — mix local and cloud-routed projects depending on sensitivity, collaboration needs, or device portability

Agent Tools

The plugin exposes 14 tools to your OpenClaw agent:

ToolDescription
memory_searchComposited search across all memory sources
memory_getRetrieve a specific memory entry
search_notesFull-text and semantic search across notes
read_noteRead a note by title, permalink, or memory:// URL
write_noteCreate or update a note
edit_noteIncremental edits (append, prepend, find/replace)
delete_noteDelete a note from the knowledge base
move_noteMove a note with database consistency
build_contextNavigate the knowledge graph via memory:// URLs
list_memory_projectsList all projects with status
list_workspacesList available workspaces
schema_validateValidate notes against a schema
schema_inferInfer a schema from existing notes
schema_diffDetect schema drift

Slash Commands

CommandDescription
/bm-setupInitialize Basic Memory configuration
/rememberSave something to memory
/recallSearch and retrieve from memory
/tasksManage structured task notes
/reflectReview conversations and extract insights
/defragSplit bloated files, merge duplicates, restructure
/schemaSchema lifecycle — infer, validate, detect drift

Bundled Skills

The plugin ships with 6 pre-built skills that teach agents best practices for Basic Memory workflows:

SkillPurpose
memory-notesCore note format — frontmatter, observations, relations
memory-tasksStructured task tracking that survives context compaction
memory-schemaSchema lifecycle — infer, validate, detect drift
memory-reflectReview conversations, extract insights, consolidate knowledge
memory-defragSplit bloated files, merge duplicates, restructure hierarchy
memory-metadata-searchQuery notes by custom frontmatter fields
These are the same skills available in the standalone skills collection, bundled for convenience.

Next Steps

Agent Skills

Learn more about the individual skills bundled with the plugin.

MCP Tools Reference

Full reference for all Basic Memory MCP tools.

Local & Cloud Routing

Run some projects locally and others in the cloud.

Schema System

Understand schema validation for structured notes.

GitHub Repository

Source code, issues, and contributing guide.