On this page
On this page
Plugin guides
Knowledge
Knowledge is a bundled memory provider that gives your agents a linked, evidence-backed Markdown vault for people, organizations, projects, decisions, commitments, and source documents. Unlike flat notes, every saved claim and relationship keeps its supporting source excerpt, every change is journaled with automatic local Git checkpoints, and you can inspect everything in a read-only Knowledge explorer and project Timeline inside the Control UI.
Knowledge ships with OpenClaw and stays off until you select it as the memory
provider. Switching takes one config line, hot-reloads without a Gateway
restart, and leaves your existing memory-core files untouched.
What Knowledge does
When Knowledge owns the memory slot, it replaces flat memory files with a structured vault that your agent reads, updates, and cites automatically:
- Typed Markdown records with retained evidence: Pages (people, companies, projects, concepts, sources), claims (facts, preferences, decisions, commitments, events, beliefs), and typed relationships are stored as plain YAML-frontmatter Markdown files with hash-verified source excerpts.
- Control UI explorer and project Timelines: Browse and search your vault from the Knowledge sidebar page, inspect entity Timelines (one dated row per source with claim counts), follow backlinks, and open the chat side panel to see which records the agent read or updated in the current conversation.
- Scribes for ongoing capture: Start built-in Scribes
from the Scribes tab to learn from conversations, ingest Granola meetings
or Slack channels, import existing
memory-corenotes and Dreams (DREAMS.md), or run scheduled claim consolidation. - Automatic recall and optional recall gate: Agents get a compact standing
index of active pages and recent unfiled claims, can inject owner-approved
summaries (
knowledge_recall), and can optionally enable a Decision-model recall gate (starting inshadowmode so you can inspect scores before goinglive; note that the chosen Decision provider receives the user message and shortlisted page excerpts or labels). - History-preserving corrections and local Git checkpoints: Revise,
supersede, withdraw, or merge duplicate records without erasing history, and
rely on automatic local Git commits inside each vault whenever
gitis available.
Turn it on in one minute
Select Knowledge for the memory slot in your OpenClaw configuration:
That single change is enough:
- Hot reload, no restart required: Slot changes reload the plugin runtime without restarting the Gateway, and active turns hand over cleanly at their next model step.
- Zero data loss: Selecting Knowledge does not migrate, modify, or delete
your existing
memory-coredata. Switching back later leaves your Knowledge vault intact. - Immediate UI access: Open Knowledge in the Control UI sidebar right away (no Custom plugin UI Labs flag needed). To import your old notes, open Knowledge → Scribes and run Learn from Memory once.
Everyday workflows
Once enabled, you mostly interact with Knowledge through ordinary conversation and the Knowledge page in the Control UI:
- Capture decisions and preferences as you work: Tell your agent "Remember that we chose Postgres over SQLite for the billing service" or let it save final decisions, commitments, and preferences automatically before its final reply and before session compaction.
- Keep your vault current with Scribes: Open Knowledge → Scribes to
turn on Learn from conversations (once or daily), Learn from Granola
(meetings and transcripts), Learn from Slack (channels and threads),
Learn from Memory (one-time import of
MEMORY.md, daily notes, andDREAMS.md), or Knowledge Consolidation (weekly or nightly linking and page cleanup). - Explore projects and timelines: Open Knowledge in the sidebar to search by keyword, view entity pages with linked claims and dated Timelines, download retained original files, or click Ask on any record to start a chat with the exact record ID and revision attached.
- Correct the record without losing history: When a decision changes or two people pages turn out to be duplicates, ask the agent to correct, supersede, withdraw, or merge them. Originals and prior revisions stay inspectable in revision history and local Git.
- Share a vault across agents (optional): Each agent gets its own isolated
store by default. Add a named entry under
plugins.entries.knowledge.config.stores(or use Settings → Stores & sharing in the Control UI) to let multiple agents share one vault while preserving per-agent authorship.
How it relates to other memory plugins
Knowledge is a kind: "memory" plugin. Only one plugin owns
plugins.slots.memory at a time, so selecting Knowledge replaces memory-core
(or another memory plugin) as the active memory provider.
| Plugin | Role |
|---|---|
memory-core (default) |
MEMORY.md and daily notes, semantic and hybrid search, dreaming, memory_search/memory_get. |
memory-wiki |
Companion plugin. Compiles a wiki beside the active memory plugin; does not own the slot. |
memory-lancedb |
External memory provider with LanceDB vector search and auto-capture. |
knowledge |
Memory provider with typed records, mandatory evidence on claims, keyword retrieval, journaled writes, local Git history, and a native explorer. |
Knowledge does not use embeddings. Retrieval is keyword (SQLite FTS5) plus exact
identity lookup and structured date queries. Selecting Knowledge does not migrate,
change, or delete memory-core data. Switching back leaves the vault intact.
Enable Knowledge
Select Knowledge for the memory slot:
Selecting the memory slot is enough. A bundled memory plugin selected by
plugins.slots.memory is enabled even without a plugins.entries.knowledge
entry, and even when plugins.allow does not list it. It stays off if plugins
are globally disabled, if knowledge is in plugins.deny, or if
plugins.entries.knowledge.enabled is false. When the slot points elsewhere,
the memory-slot gate keeps Knowledge disabled.
Slot changes reload the plugin runtime without a Gateway restart. Knowledge
declares reload.turnHandover, so a reload does not wait for running agent
turns: each turn moves to the new version at its next model step
(reload-safe plugins). Verify the
runtime registration and the live service:
Open Knowledge in the Control UI sidebar. Native UI from enabled bundled
plugins does not need the Custom plugin UI Labs setting. The knowledge_*
tools appear after the tool catalog refreshes.
See Apply changes and inspect and Hot reload.
Configuration
All settings live under plugins.entries.knowledge.config. Every key is
optional.
| Key | Type | Default | Meaning |
|---|---|---|---|
operatorRead |
boolean | true |
Let authenticated operators with operator.read (or higher) inspect stores in the Control UI and operator RPC. |
writesEnabled |
boolean | true |
Allow agent writes. When false, write tools reject, the memory prompt omits save guidance, and no flush plan is offered. |
stores |
object | {} |
Named shared stores. Keys match ^[a-z][a-z0-9-]{0,47}$. Agents not listed use their own isolated store. |
stores.<name>.label |
string | the store key | Display name in the Control UI (1–80 characters). Not a path or identity. |
stores.<name>.agents |
string[] | required | Agent IDs that use this store (at most 100). An empty list keeps the store without members. |
pageBudgets.hubPercentile |
number | 90 |
Link-degree percentile at which a page is a hub and gets the smaller body budget. See Page budgets. |
maintenance.enabled |
boolean | true |
Run the scheduled maintenance pass. |
maintenance.schedule |
string | "30 3 * * *" |
Five-field cron expression for the pass. |
maintenance.timezone |
string | Gateway host zone | IANA time zone for the schedule. |
recallGate |
object | absent | Optional decision-model recall gate. Off when absent. See Recall gate. |
operatorRead and writesEnabled are plugin-wide gates. Changes to
plugins.entries.knowledge.config.stores do not reload the plugin; Knowledge
applies membership changes in place.
Stores and agent membership
Every agent has an effective knowledge store. By default each agent gets its
own isolated store. A named entry under stores assigns several agents to one
shared store. An agent can belong to at most one named store; an agent listed
twice is unavailable until the duplicate is removed, and is never resolved by
first match.
- Stores are created lazily on an agent's first authorized use. Inspecting a store in the Control UI never creates it.
- Tools take no store, agent, path, or scope argument. The store comes from the calling agent's host-resolved memory audience on every call.
- Removing a named store from configuration does not delete its data. The store stays in the inventory as unassigned.
- Shared stores record which agent published each revision, so authorship survives sharing.
Inside each store, owner-direct turns read and write the store's private
partition. Group and other conversation turns are confined to their own
conversation partition unless an owner grants the conversation read, or read and
save, access to the private partition. Operators can manage membership and
conversation access from Settings → Stores & sharing in the Knowledge page
(requires operator.admin).
See Stores and access for the storage layout, authority table, and limits.
Where Knowledge keeps data
Knowledge keeps all state under the Gateway state directory
(~/.openclaw by default, or $OPENCLAW_STATE_DIR):
The location does not depend on how the plugin was installed. Back up the
registry, each store's state.sqlite, and its vault/ directory together. A
Markdown-only or Git-only copy is not a complete backup.
Knowledge flushes file contents and synchronizes publication directories where the platform supports it. On Windows, directory flushing is not portable; Knowledge accepts only the filesystem helper's checked unsupported outcome, not other I/O errors. Journal recovery and exact retries handle interrupted processes, but a completed save is not a guarantee against loss of directory entries after a Windows power failure. Keep a complete backup of the store.
Writes and authority
- Agents publish through journaled operations with revision/hash preconditions
and exact-retry semantics. A
publishedreceipt means files were written. - Claims and relationships require retained, hash-verified evidence. Pages may omit it.
- Page bodies have a size budget sized to one or two default reads. Writes that would grow a page past it save nothing and explain how to split the page; claims are never limited. See Page budgets.
- Saved records are immediately available. There is no approval or acceptance step.
- Corrections, withdrawals, supersessions, and identity merges are explicit agent operations that preserve history. See Corrections and merges.
- The Control UI is read-only. Ask sends change requests to the agent in a new chat instead of editing records.
- Operators cannot save knowledge through operator read access. Changing store
assignments needs
operator.admin.
Tools
Knowledge registers 38 knowledge_* agent tools. Each tool acts only on the
caller's authorized store and partition.
| Area | Tools |
|---|---|
| Status and vocabulary | knowledge_status, knowledge_ontology, knowledge_diagnostics |
| Find and read | knowledge_lookup, knowledge_grep, knowledge_records, knowledge_record, knowledge_connections, knowledge_evidence_read |
| Dates | knowledge_timeline, knowledge_chronicle_day, knowledge_chronicle_since, knowledge_chronicle_last_seen |
| Remember and author | knowledge_remember, knowledge_save_page, knowledge_edit_body, knowledge_extract_section, knowledge_create_claim, knowledge_create_relationship, knowledge_annotate |
| Evidence files | knowledge_attach_file, knowledge_attach, knowledge_attachment, knowledge_reconcile_evidence |
| Ingestion | knowledge_publish_batch, knowledge_verify, knowledge_source_check |
| Lifecycle | knowledge_correct, knowledge_withdraw, knowledge_supersede, knowledge_merge, knowledge_unmerge, knowledge_relink |
| Automatic recall | knowledge_recall |
| History and recovery | knowledge_history, knowledge_revision, knowledge_mutation, knowledge_resume |
See Tools for inputs, limits, and pagination.
Bundled skills
Knowledge ships nine skills. They are agent workflows over the tools above, not an autonomous ingestion engine.
| Skill | Use |
|---|---|
knowledge-automation |
Create and verify scheduled ingestion through the host scheduler with a retained authorized worker. |
knowledge-capture |
Save decisions, preferences, facts, and short notes with attribution and readback. |
knowledge-claim-consolidation |
Consolidate claims (unlinked, on one page, or about one subject) and review pages for currency. |
knowledge-correct |
Correct or withdraw exact records and inspect affected knowledge. |
knowledge-entities |
Resolve and enrich people, companies, projects, and concepts with sourced profiles. |
knowledge-ingest |
Ingest documents, articles, and conversations; learn lessons from sets of sources (/learn). |
knowledge-meeting-ingest |
Ingest meeting transcripts with attendee enrichment, decisions, commitments, and chronology checks. |
knowledge-recall |
Answer from saved knowledge with inspectable citations. Read-only. |
knowledge-source-ingest |
Incrementally ingest enumerable sources with snapshot manifests and diffing. |
See Ingestion workflows.
Control UI
The Knowledge page has Recent and Browse views, keyword Search, entity pages with linked claims and evidence, typed connections, retained originals, and file history. Scribes starts and controls scribes. Settings holds Stores & sharing, Vocabulary, Vault status, and Maintenance. A Knowledge chat side panel lists the records an agent found, read, or changed in the current conversation.
See Control UI.
Local Git history
When writes are enabled and the git executable is available, Knowledge keeps a
local Git repository inside each store's vault. It commits each publication with
its retained evidence and checkpoints observed external edits. No remote, GitHub
account, or opt-in is needed. A failed Git step never undoes a saved record.
See Local history.
Scheduled maintenance
A daily pass (03:30 Gateway host time by default) links claims that
knowledge_remember saved without a subject to the one entity page they name.
It never calls a model or creates pages. It runs only while writesEnabled is
true. It uses the plugin service scheduler, not OpenClaw automations.
See Maintenance.
Lean resource policy
With the Gateway's lean resource profile, Knowledge starts its registry,
storage and maintenance initialization on first use rather than service startup.
Use includes a tool call, a provider/readiness request, or a prompt hook that
needs store facts; it is not limited to explicit human tool calls. Provisioning
and access rules are unchanged.
Watched storage stays resident so external edits keep notifying viewers across idle periods. Unwatched storage retires after 60 seconds with its whole operation lane settled, not between chunks of an upload. The registry retires after 60 seconds with no pending RPCs. Later demand waits for retirement to finish and reopens the worker; the first call is slower than a warm call.
Stop/restart joins maintenance initialization, active passes and schedule
persistence. On the next first use, maintenance loads its saved schedule and
catches up a missed pass. After activation, maintenance may visit every ready
configured store, including stores not otherwise used during that lifetime.
An unused lean service therefore does not run maintenance until first use.
standard retains eager maintenance initialization and resident worker lifetimes.
Knowledge does not share the core worker host.
Scribes
The Scribes tab starts conversations that keep a store up to date on their own: consolidating unlinked claims after maintenance, learning from conversations once or daily, and importing Memory once. Each follows a bundled skill; the Scribes tab sets up ongoing scribes as OpenClaw automations, which needs a Gateway administrator.
See Scribes.
Capabilities and limits
| Capability | Status |
|---|---|
| Scoped listing, evidence inspection, ontology validation | Implemented |
| Pages, claims, relationships, entity metadata | Implemented through agent tools; journaled with retry recovery |
| Revision/hash preconditions, receipts, history | Implemented |
| Keyword retrieval and exact identity lookup | Implemented (SQLite FTS5) |
| Structured date queries | Implemented |
| Original source file attachments | Implemented; chunked upload/download, no evidence-count cap |
| Correction, withdrawal, supersession, identity merge | Implemented as agent-only, history-preserving operations |
| Local Git history | Automatic when Git is installed and writes are enabled |
| Interrupted-write recovery and conflict retention | Implemented; not a complete backup/restore protocol |
| Read-only Control UI | Implemented; no direct write controls |
| Scheduled claim relink | Implemented, on by default |
| Embeddings / semantic search | Not implemented |
| Media extraction, OCR, transcription | Not implemented; originals are retained and downloadable |
| Connectors, sync daemons, ingestion scheduler | Not implemented; use knowledge-automation with host automations |
| Git remotes, push, or sync | Not implemented |
| Full backup/restore | Not implemented |
Knowledge does not replace workspace bootstrap files, dreaming, standing intents,
memory-core tools and CLI, or the file-oriented Memory UI.
Moving from a linked or path install
Earlier releases shipped Knowledge as a separate package installed with
openclaw plugins install or loaded from a checkout. That copy can still take
precedence over the bundled one:
- A path in
plugins.load.pathsalways wins over a bundled plugin.openclaw plugins install --linkadds such a path and also creates an install record. - A tracked global install from
openclaw plugins installwins over a packaged bundled copy. A bundled copy compiled inside a source checkout wins over a tracked install.
If Knowledge is only listed in plugins.load.paths with no install record,
remove that path. The slot and plugins.entries.knowledge settings stay as they
are.
If Knowledge has an install record, uninstalling it also clears its settings.
openclaw plugins uninstall removes plugins.entries.knowledge.config, resets
plugins.slots.memory to memory-core, and leaves an
plugins.entries.knowledge.enabled: false marker that also blocks the bundled
copy. Restore those settings afterwards:
-
Copy your
plugins.entries.knowledge.config(includingstores) somewhere safe. -
Preview and run the uninstall. It also removes a linked install's
plugins.load.pathsentry, but does not delete the linked checkout.bash -
Re-enable the plugin to replace the marker, then set
plugins.slots.memoryback to"knowledge"and restoreplugins.entries.knowledge.config.bash -
Confirm that the bundled copy is loaded:
bash
Vault data and plugin state live under <state dir>/knowledge/, not in the
install directory, so switching copies does not move or reset them. Store
membership is read from configuration, so restore stores before agents use
Knowledge again. Until then, agents from a named store use their own isolated
store, and a new empty one is created if none exists. The named store's data is
kept. See
Discovery precedence
and Uninstall.